Name and
Placement
You specify the
display name and the location of the virtual machine by using the
CreateSpec
and
PlacementSpec
classes.
When you create your virtual
machine, use the
setName
method of the
CreateSpec
class to
pass as argument the display name of the virtual machine.
You must create also a
PlacementSpec
instance
that describes the location of the virtual machine in regards to the resources
of a given
instance. Use the
setPlacement(PlacementSpec
placement)
method of the
CreateSpec
class to set
the placement information for the virtual machine. You can set one or all of
the following vSphere resources: datastore, cluster, folder, host, and resource
pool.