VMware

Scsi Namespace

The Scsi namespace provides commands for configuring the virtual SCSI adapters of a virtual machine.

List of commands:



List Command

dcli com vmware vcenter vm hardware adapter scsi list

Description

Returns commonly used information about the virtual SCSI adapters belonging to the virtual machine.

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 adapter scsi list --vm testId


Get Command

dcli com vmware vcenter vm hardware adapter scsi get

Description

Returns information about a virtual SCSI adapter.

Options

Option Name Type Required Description
vm string Yes Virtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine.
adapter string Yes Virtual SCSI adapter identifier. The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.ScsiAdapter.

Example

dcli com vmware vcenter vm hardware adapter scsi get --vm testId --adapter testId


Create Command

dcli com vmware vcenter vm hardware adapter scsi create

Description

Adds a virtual SCSI adapter to the virtual machine.

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 No Adapter type. If unset, a guest-specific default value will be used. Valid values are: {BUSLOGIC, LSILOGIC, LSILOGICSAS, PVSCSI}
bus int No SCSI bus number. If unset, the server will choose an available bus number; if none is available, the request will fail.
pci‑slot‑number int No Address of the SCSI adapter on the PCI bus. If the PCI address is invalid, the server will change it when the VM is started or as the device is hot added. If unset, the server will choose an available address when the virtual machine is powered on.
sharing string No Bus sharing mode. If unset, the adapter will default to NONE. Valid values are: {NONE, VIRTUAL, PHYSICAL}

Example

dcli com vmware vcenter vm hardware adapter scsi create --vm testId


Update Command

dcli com vmware vcenter vm hardware adapter scsi update

Description

Updates the configuration of a virtual SCSI adapter.

Options

Option Name Type Required Description
vm string Yes Virtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine.
adapter string Yes Virtual SCSI adapter identifier. The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.ScsiAdapter.
sharing string No Bus sharing mode. This option may only be modified if the virtual machine is not powered on. If unset, the value is unchanged. Valid values are: {NONE, VIRTUAL, PHYSICAL}

Example

dcli com vmware vcenter vm hardware adapter scsi update --vm testId --adapter testId


Delete Command

dcli com vmware vcenter vm hardware adapter scsi delete

Description

Removes a virtual SCSI adapter from the virtual machine.

Options

Option Name Type Required Description
vm string Yes Virtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine.
adapter string Yes Virtual SCSI adapter identifier. The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.ScsiAdapter.

Example

dcli com vmware vcenter vm hardware adapter scsi delete --vm testId --adapter testId