HP-UX vPars and Integrity VM V6.3 Administrator Guide

# 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 VM.
To modify an existing VM:
# hpvmmodify P vm-name a network:adapter-type:[hardware-address]:vswitch:vswitch-name
The a option adds the specified vNIC to the VM.
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 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. 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 one of the following formats:
0xaabbcc001122 or aa-bb-cc-00-11-22. The MAC address that you enter is verified
to ensure that it does not conflict with any of the physical network adapter MAC addresses
of the VSP.
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 created 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 either dynamically or to a guest in offline mode:
# hpvmmodify -P host1 -a network:avio_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
.
.
.
The localnet vswitch can be used as a local network, and vNICs can be specified for a guest.
For example,
8.3 Managing vNICs 119