HP Integrity Virtual Machines Installation, Configuration, and Administration Version A.03.50

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 (page 110).
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:adapter-type:[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:adapter-type:vswitch:vswitch-name
The adapter-type can be either lan or avio_lan.
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.
NOTE: If the guest is configured with a number of VLAN devices, but it does not have a
sufficient amount of memory, some of the devices could be missing after the guest is booted. To
resolve this issue, increase the size of the guest memory with the hpvmmodify -r command.
For more information about creating and managing VLANs on virtual switches, see Section 8.4
(page 116).
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:adapter-type:hardware-address:
You can specify one of the following devices:
disk
dvd
tape
3.1 Specifying Virtual Machine Characteristics 35