HP Integrity Virtual Machines Installation, Configuration, and Administration
# hpvmnet -S myswitch -c -n 1
3. Add a new VNIC to your guest using the new vswitch. For example:
# hpvmmodify -P guestname -a network:lan:,,:vswitch:myswitch
8.2.6 Starting vswitches
Vswitches start automatically when the VM Host system is started. You can start the vswitch
manually using the —b option to the hpvmnet command. For example, the following command
boots the vswitch named clan1:
# hpvmnet -S clan1 -b
You must restart a vswitch after the following events:
• The MAC address corresponding to the LAN number being used by the virtual switch is
changed on the VM Host (either by swapping the network adapter associated with the
vswitch or associating the vswitch with a different network adapter).
• The way the network adapter accepts and passes on packets to the next network layer is
changed. This can occur as a result of the using the ifconfig or lanadmin command to
set CKO/NOCKO on or off.
8.2.7 Halting vswitches
Use the hpvmnet -h command to halt a vswitch. For example:
# hpvmnet -S clan1 -h
hpvmnet: Halt the vswitch 'clan1'? [n]: y
Auto Port Aggregation (APA) can be configured on the VM Host to provide a highly available
LAN for the vswitch (APA in active/passive mode) or to increase the bandwidth of the vswitch
LAN (APA active/active mode). Before you stop APA, halt the vswitches associated with it. If
you do not bring down the vswitch first, the hpvmnet command reports an incorrect MAC
address for the vswitch.
8.3 Managing VNICs
After you create the vswitch, you can allocate it to one or more virtual machines for use by guest
operating systems and applications. To create a VNIC for a virtual machine, enter one of the
following commands:
• To create a new virtual machine with one vswitch:
# hpvmcreate -P vm-name -a network:lan:[hardware-address]:vswitch:vswitch-name
• To create a new virtual machine based on the configuration of an existing virtual machine:
# hpvmclone –P vm-name —a network:lan:[hardware-address]:vswitch:vswitch-name
The VNIC specified with this command is added to the new virtual machine.
• To modify an existing virtual machine:
# hpvmmodify –P vm-name —a network:lan:[hardware-address]:vswitch:vswitch-name
The —a option adds the specified VNIC to the virtual machine.
As with virtual storage devices, use the —a rsrc option to associate a guest virtual network device
with a vswitch. Before you use this option to associate the virtual network device with a vswitch,
create the vswitch using the hpvmnet command. The format of the rsrc parameter for network
devices is:
network:lan:[hardware-address]:vswitch:vswitch-name
The guest virtual network device information consists of the following fields, separated by colons:
• network
• lan
8.3 Managing VNICs 105