The Device namespace provides commands for configuring the device order used when booting a virtual machine. The boot order may be specified using a mixture of device classes and device instances, chosen from among the following:
List of commands:
dcli com vmware vcenter vm hardware boot device get
Description
Returns an ordered list of boot devices for the virtual machine. If the list is empty, the virtual machine uses a default boot sequence.
Options
Option Name | Type | Required | Description |
---|---|---|---|
vm |
string | Yes | Virtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine. |
Example
dcli com vmware vcenter vm hardware boot device get --vm testId
dcli com vmware vcenter vm hardware boot device set
Description
Sets the virtual devices that will be used to boot the virtual machine. The virtual machine will check the devices in order, attempting to boot from each, until the virtual machine boots successfully. If the list is empty, the virtual machine will use a default boot sequence. There should be no more than one instance of Device.Entry for a given device type except ETHERNET in the list.
Options
Option Name | Type | Required | Description |
---|---|---|---|
vm |
string | Yes | Virtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine. |
type |
string | Yes | Virtual device type. Valid values are: {CDROM, DISK, ETHERNET, FLOPPY} |
nic |
string | No | Virtual Ethernet device. Ethernet device to use as boot device for this entry. When clients pass a value of this class as a parameter, the option must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet. When commands return a value of this class as a output, the option will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet. This option is optional and it is only relevant when the value of type is ETHERNET. |
disks |
string | No | Virtual disk device. List of virtual disks in boot order. When clients pass a value of this class as a parameter, the option must contain identifiers for the resource type: com.vmware.vcenter.vm.hardware.Disk. When commands return a value of this class as a output, the option will contain identifiers for the resource type: com.vmware.vcenter.vm.hardware.Disk. This option is optional and it is only relevant when the value of type is DISK. |
Example
dcli com vmware vcenter vm hardware boot device set --vm testId --type test