A.58 create Vnic

Creates a VNIC on a virtual machine.

Syntax

create Vnic network=value name=value [ macAddress=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.

name=value

A name to identify the VNIC.

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.

To set an empty description, use description="".

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.77 Creating a VNIC

OVM> create Vnic name=MyVNIC network=MyVMNetwork on Vm name=MyVM

See Also