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

NOTE: Trunking software such as APA is supported only on the VM Host, not on the
guest.
Guest virtual network interface card (vNIC) — the virtual network adapter, as recognized
by the guest operating system.
Virtual switch (vswitch) — the virtual network switch maintained by the VM Host that is
associated with a pNIC and can be allocated to one or more guests.
Using redundant pNICs and APA, you can ensure high availability of the guest networks and
provide greater capacity for the VM Host system running many guests with network-intensive
applications.
You can configure HP-UX VLANs for the guests. VLANs isolates broadcast and multicast traffic
by determining which targets should receive that traffic, thereby making better use of switch
and end-station resources. With VLANs, broadcasts and multicasts go only to the intended nodes
in the VLAN.
8.2 Creating and Managing vswitches
The following sections describe how to create, modify, delete, and manage vswitches.
8.2.1 Creating vswitches
To allow guests to access network devices, you must create vswitches on the VM Host. This
section describes how to create a vswitch and verify that it has started.
To create vswitches, use the hpvmnet command. The following is the basic format of the hpvmnet
command to create a vswitch:
hpvmnet -c -S vswitch-name -n nic-id
This command format includes the following options:
-c indicates the creation of a vswitch.
-S vswitch-name specifies the name of the vswitch.
-n nic-id specifies the network interface on the VM Host that the new vswitch will use.
For example, n 0 indicates lan0. Network interfaces are displayed by the lanscan
command. If you do not include the -n option, a local vswitch is created, as described in
Section 8.2.1.1 (page 130).
The hpvmnet command also allows you to display and manage the vswitches on the VM Host.
Table 8-1 describes the options to the hpvmnet command.
Table 8-1 Options to the hpvmnet Command
DescriptionOption
Boots a vswitch. The vswitch must be booted before it can
accept network traffic. All vswitches are booted
automatically when Integrity VM is started.
-b
Creates a new vswitch.
-c
Halts one or all vswitches. You are asked to confirm this
action.
-h
Omits the confirmation dialog before halting, deleting,
or rebooting the vswitch. This option is intended for use
by scripts and other noninteractive applications (Force
mode).
-F
Deletes a virtual switch. You are asked to confirm this
action.
-d
128 Creating Virtual Networks