Creates a VNIC on a virtual machine.
Syntax
create Vnic
[
macAddress=
]
value
network=
value
name=
[
value
description=
]
value
on Vm
instance
Where
is:
instance
{
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 |
---|---|
| The name or ID of the network to which the VNIC is to be assigned. |
| 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. |
|
Optional description for the VNIC.
|
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