HP Integrity Virtual Machines Installation, Configuration, and Administration

connected to the physical network. For example, to create a local network vswitch named clan0,
enter the following commands:
# hpvmnet -c -S clan0
# hpvmnet -b -S clan0
All VNICs connected to that vswitch will then be on the same local network. The VM Host does
not communicate on local networks.
If you omit the -n option when you create a vswitch, the default is to use localnet. The
localnet vswitch can be used as a local network and VNICs can be specified for a guest. For
example:
# hpvmmodify -P compass1 -a network:lan::vswitch:clan0
This command adds a VNIC to the guest compass, which can be used to communicate with any
virtual machine connected to the localnet vswitch.
8.2.1.2 Configuring Guest Virtual Networks
You can define a VNIC for a guest using the hpvmmodify command. For example, the following
command adds a VNIC to the guest named compass1.
# hpvmmodify -P compass1 -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
.
.
.
NOTE: Never modify the guest configuration files directly. Always use the Integrity VM
commands to modify virtual devices and virtual machines. Failure to follow this procedure can
result in unexpected problems when guests are started.
The virtual network entry in the guest configuration file includes the guest information on the
left side of the equal sign (=), and VM Host information on the right. The data about the guest
LAN example includes the following information:
Bus 0 and device number 0 indicate the guest LAN hardware path.
lan(0,0)
Guest virtual MAC address.
0x00306E39F70B
The vswitch name is clan1.switch(clan1)
The VLAN port number is 4.
4
Entering the lanscan command on the guest compass1 results in the following:
# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/0/3/0 0x00306E39F70B 0 UP lan0 snap0 1 ETHER Yes 119
102 Creating Virtual Networks