HP Integrity Virtual Machines Installation, Configuration, and Administration

vswitch-name is the name you assign to the vswitch. You must specify the name of the vswitch.
nic-id is the pNIC ID on the VM Host. If you omit the nic-id, the vswitch is created for the
localnet.
To start the vswitch, enter the hpvmnet -b command. For example:
# hpvmnet -b -S vswitch-name
For more information about using the hpvmnet command, see Section 8.2.1: “Creating vswitches”
(page 100).
To create the virtual machine and allocate the vswitch to it, use the a option to the hpvmcreate
command. For example:
# hpvmcreate -P vm-name -a network:lan:[hardware-address]:vswitch:vswitch-name
where hardware-address (optional) is the vNIC PCI bus number, device, and MAC address.
If you omit the hardware address, it is generated for you. HP recommends that you allow this
information to be automatically generated. In this case, omit the hardware-address value
from the command line, but retain the colon character separator. For example:
# hpvmcreate -P vm-name -a network:lan::vswitch:vswitch-name
On the guest, use standard operating commands and utilities to associate the vNIC with an IP
address, or use DHCP just as you would for a physically independent machine.
By default, vswitches are sharable; you can allocate the same vswitch to multiple virtual machines.
Virtual LANs allow virtual machines to communicate with other virtual machines using the
same VLAN, either on the same VM Host or on different VM Host systems. You associate the
VLAN port number with a vswitch, then allocate that vswitch to virtual machines that
communicate on that VLAN. For more information about HP-UX VLANs, see the manual Using
HP-UX VLANs.
For more information about creating and managing VLANs on virtual switches, see Section 8.4:
“Configuring VLANs” (page 106).
3.1.6.2 Creating Virtual Storage Devices
When you create a virtual machine, you specify the virtual storage devices that the virtual machine
uses. Virtual storage devices are backed by physical devices on the VM Host system (backing
stores). The VM Host system must have sufficient physical storage for the VM Host and for all
of the virtual machines.
Use the -a option to create and allocate the virtual device to the virtual machine. For example:
# hpvmcreate -a VM guest storage specification:VM Host storage specification
Where:
VM guest storage specification defines where and what storage is seen in the
virtual machine. This is formatted as:
device:scsi:pcibus,pcislot,scsitgt:
You can specify one of the following devices:
disk
dvd
tape
changer
burner
adapter-type is always scsi.
hardware-address (optional) specifies the virtual device PCI bus number, PCI slot number,
and SCSI target number. If you do not specify this information, it is generated automatically.
HP recommends that you allow the hardware address to be generated automatically. To
omit the hardware address, use the following format (including two colons):
3.1 Specifying Virtual Machine Characteristics 31