Previous Topic: dpmvc-addvmvdisk Command--Add Virtual Disk (Funclet)Next Topic: dpmvc-clone Command--Clone a VM (Funclet)


dpmvc-addvmvnic Command--Add Virtual NIC (Funclet)

The dpmvc-addvmvnic command adds a virtual NIC to a VM.

This command has the following format:

dpmvc-addvmvnic
[-datacenter_name datacentername]
-vm_name vmname
-vc_server vcservername
-devicetype {e1000 | vmxnet}
-network_name networkname
[-mac_address macaddress]
-wake_on_lan_enabled {no | yes}
-datacenter_name datacentername

(Optional) Specifies the data center where the VM is located.

-vm_name vmname

Specifies the VM.

-vc_server vcservername

Specifies the vCenter Server to access when you have multiple vCenter Servers. Optional for single vCenter Server environments.

-devicetype {e1000 | vmxnet}

Indicates the type of network device.

-network_name networkname

Specifies the virtual network the NIC must be connected to. You can distinguish the names of Standard Switches and Distributed Virtual Switches based on the following naming convention:

-mac_address macaddress

(Optional) Specifies the MAC (Media Access Control) address of the network device.

-wake_on_lan_enabled {no | yes}

Indicates whether to start the VM when LAN is enabled.

Example: Add a vNIC

This example adds a virtual NIC to a VM.

dpmvc-addvmvnic -vm_name myvm -vc_server myvcenterserver -devicetype vmxnet
-network_name net1 -wake_on_lan_enabled no