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

8.2.1.1 Local Networks
Virtual network communication may be limited to virtual machines on the VM Host system
through the use of vswitches that are not connected to a physical NIC. A virtual network such
as this is called a local virtual network or simply a local network (localnet). To create a local
network, a vswitch must first be created using hpvmnet without the -n option so that it is not
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:
112 Creating Virtual Networks