A.56 create Vnic

Creates a VNIC on a virtual machine.

Syntax

create Vnic [ macAddress=value ] network=value name=value [ description=value ] on Vm instance

Where instance is:

{ id=value | name=value }

Description

This command creates a VNIC and associates it to a virtual machine.

Options

The following table shows the available options for this command.

Option

Description

network=value

The name or ID of the network to which the VNIC is to be assigned.

macAddress=value

Optional parameter to specify the MAC address for the VNIC. If no MAC address is provided, one is automatically assigned from the default range. To change the default range of MAC addresses, use the setVnicMacAddrRange command. To display the MAC address range, use the getVnicMacAddrRange command.

description=value

Optional description for the VNIC. value is a maximum of 4,000 characters.

Note

Any create command only creates a single instance of an object, and therefore only accepts a single object instance as an attribute. Providing more than one object of the same attribute type as a parameter always results in the last attribute value taking precedence.

Examples

Example A.75 Creating a VNIC

OVM> create Vnic name=00:21:f6:00:00:18 network=MyVMNetwork on Vm name=MyVM

See Also