HP vPars and Integrity Virtual Machines V6.1 Administrator Guide
# hpvmnet -S clan1 -h
hpvmnet: Halt the vswitch 'clan1'? [n]: y
Auto Port Aggregation (APA) can be configured on the VSP 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.
10.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 VSP IP address associated with the vswitch's network interface card.
• You change the network interface characteristics on the VSP; for example, by using the nwmgr
command to change checksum offloading (CKO).
When you restart a vswitch, it is not necessary to restart the guests using the vswitch.
10.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 VSP 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.
• 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 the lanscan command).
When this occurs, first ensure that the vswitch enters a stable state, then reset the guest interface
using nwmgr.
10.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.
NOTE: If you modify a vNIC from lan to avio_lan, or avio_lan to lan, you must restart the
vswitch.
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:
150 Creating virtual networks