A.55 create VmCloneNetworkMapping

Maps the network that should be used by a virtual machine clone customizer.

Syntax

create VmCloneNetworkMapping network=value vnic=value name=value [ description=value ] on vmCloneCustomizer instance

Where instance is:

{ id=value | name=value }

Description

Creates a new network mapping for use by a virtual machine clone customizer. To create a clone network mapping, a virtual machine with an assigned VNIC must already exist within your environment.

Options

The following table shows the available options for this command.

Option

Description

network=value

The name or ID value of an existing network to which the cloned virtual machine should be connected.

vnic=value

The name or ID value of an existing VNIC that is attached to the existing virtual machine that is this clone customizer's parent.

name=value

A name to identify the clone network mapping.

Tip

To find this name after the network is mapped to a virtual machine clone customizer, use the list vmCloneNetworkMapping command. You need the name or ID of this to delete a network mapping from a virtual machine with the delete vmCloneNetworkMapping command.

description=value

Optional description for the clone network mapping object. value is a maximum of 4,000 characters.

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

{ id=value | name=value }

The instance of the object using either the id or name option, for example name=MyVMCloneCustomizer.

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.71 Creating a virtual machine clone network mapping

OVM> create VmCloneNetworkMapping name=MyCloneNet network=MyVMNetwork \
    vnic=0004fb0000070000277ecade9b897469 on VmCloneCustomizer name=MyVMCloneCustomizer

See Also