HP Integrity Virtual Machines 4.2: Installation, Configuration, and Administration

# 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:
network:adapter-type:[hardware-address]:vswitch:vswitch-name
The guest virtual network device information consists of the following fields, separated by colons:
network
adapter-type, which can be either lan or avio_lan
[hardware-address] (optional), formatted as bus,device,mac-addr. If you do not
specify the hardware address, or a portion of it, the information is generated for you. HP
recommends allowing Integrity VM to generate the hardware address. The hardware address
consists of the following information:
bus (virtual network device PCI bus number)
device (virtual network device PCI slot number)
mac-addr (the virtual network device MAC address) in either of the following formats:
0xaabbcc001122 or aa-bb-cc-00-11-22. The MAC address that you enter is
checked to make sure it does not conflict with any of the VM Host’s physical network
adapter MAC addresses.
vswitch
The virtual switch information is formatted as vswitch:vswitch-name (where
vswitch-name is the name assigned to the virtual network switch when you create it using
the hpvmnet command)
8.3.1 Adding vNICs
You can define a vNIC for a guest using the hpvmmodify command. For example, the following
command adds a vNIC to the guest named host1.
# hpvmmodify -P host1 -a network:lan:0,0,0x00306E39F70B:vswitch:clan1
The guest configuration file /var/opt/hpvm/guests/guestname/vmm_config.current
contains an entry for each guest virtual network device. When the guest is booted (through the
hpvmstart or hpvmconsole command), the guest LAN is configured as specified in the LAN
entry in the guest configuration file. For example:
.
.
.
# Virtual Network Devices
#
lan(0,0).0x00306E39F70B = switch(clan1).4
.
.
.
8.3 Managing vNICs 133