HP Integrity Virtual Machines 4.3: Installation, Configuration, Administration
7.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.
7.2.8 Restarting Vswitches
It is necessary to restart the vswitch when:
• You replace the physical network card associated with the vswitch.
• You change a VM Host IP address associated with the vswitch's network interface card.
• You change the network interface characteristics on the VM Host; for example, by using the
nwmgr command to change checksum offloading (CKO).
• You notice that there is no communication from an avio_lan interface to a lan interface
after booting the guest(s) while the vswitch is down.
When you restart a vswitch, it is not necessary to restart the guests using the vswitch.
7.2.9 Guest AVIO Interface Behavior
The following list describes the guest AVIO interface behavior when guest boots while vswitch
is down or resetting:
• If you boot a guest while the vswitch is not up, AVIO interfaces associated with the vswitch
might not be claimed in the guest. For example, this might occur if the guest is booted prior
to booting the vswitch or if the corresponding network interface on the VM Host is not
cabled. If you encounter this problem, first fix the vswitch state (that is, ensure that hpvmnet
displays its state as Up), and then execute the ioscan command in the guest. These actions
will claim the AVIO interfaces.
• After ioscan claims the AVIO devices in the guest, you might notice that the AVIO devices
cannot communicate with another VIO guest interface configured on the same vswitch.
When this occurs, invoke the hpvmnet -r option on the vswitch to restore connectivity.
• If the vswitch is in an unstable state while the guest is booting, guest AVIO interfaces might
fail initialization and move to the DOWN state (as displayed by thelanscan command).
When this occurs, first ensure that the vswitch enters a stable state, then reset the guest
interface using nwmgr.
7.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:adapter-type:[hardware-address]:vswitch:vswitch-name
• To create a new virtual machine based on the configuration of an existing virtual machine:
# hpvmclone –P vm-name -N clone-vm-name —a network:adapter-type:[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:adapter-type:[hardware-address]:vswitch:vswitch-name
The —a option adds the specified vNIC to the virtual machine.
130 Creating Virtual Networks