Using DGX-2 System in KVM Mode
DGX-2 System User Guide
71
11.3.2 Creating a VM Using Available GPUs
Use nvidia-vm as explained in About nvidia-vm.
Syntax
nvidia-vm create --gpucount N --gpu-index X [--image] [options]
where
The allowed number of GPUs to assign to the VM, depending on availability.
Acceptable values: 1, 2, 4, 8, 16
For the purposes of the KVM, GPUs on the DGX-2 System are
distinguished by a zero-based, sequential index. gpu_index specifies the
starting index value for the group of sequentially indexed GPUs to be assigned
to the VM.
Allowed values for gpu_index depend on the number of GPUs assigned to the
VM, as shown in the following table.
Allowed values for gpu_index
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
(Optional) Specifies the KVM image to use as the basis for the VM. If not
specified, the latest version that is installed will be used. See the section
Managing the Images for instructions on how to install images and also how to
view which images are installed.
Optional parameters, including options to customize the default resource
allocation (vCPUs, memory, OS disk size):
See the man pages or the Help for a detailed list of options.
Command Help:
nvidia-vm create --help
Command Examples:
Basic command