HP Integrity Virtual Machines Installation, Configuration, and Administration

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 destinations 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(1M)
command. If you do not include the -n option, a local vswitch is created, as described in
Section 8.2.1.1: “Local Networks” (page 101).
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
Deletes a virtual switch. You are asked to confirm this
action.
-d
Specifies the network interface on the VM Host that the
new vswitch will use. For example, to associate a vswitch
to lan0, enter -n 0.
-n nic-id
Specifies the port number. To display information about
all ports, enter p all.
-p n
Specifies the command function should proceed without
asking for confirmation. By default, the command requires
confirmation, and does not proceed without it.
-Q
Retrieves statistics.
-s
Specifies the name of the virtual switch. The vswitch name
is limited to 8 characters and must be unique on the VM
Host.
-S vswitch_name
100 Creating Virtual Networks