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

# hpvmnet -S myswitch -d
2. Create a new vswitch associated with lan1. For example:
# 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
Virtual switches (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.
If you use the hpvmmodify command to change the adapter type for a virtual NIC (vswitch
port).
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: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 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.
8.3 Managing vNICs 115