Installing and configuring HP SIM 5.x on HP Integrity VM (447783-002, January 2009)

C re a tin g
v irtu a l
sw itc h es
To provide network access for the g
u
ests, you m
u
st create virt
u
al network switches (vswitch) for them.
To create virtual switches, use the
hpvmnet
command.
The following is the basic command
u
sed to
create a vi
rt
u
al switch:
#
hpvmnet
c
S
switchname
n 1
-
c
indicates the create of a vswitch
-
S
switchname
specifies the name of the virtual switch
-
n 1
associates the new vswitch with
the physical network device lan1
For example, to create two vswitches
: v
s
wA and vswB, enter the following command:
#
hpvmnet
c S vswA
n1
#
hpvmnet
c
S vswB
n2
To verify the creation of the v
s
witch, enter the following command:
#
hpvmnet
To start the vswitch:
#
hpvm
net
S
switchname
b
#
hpvmnet
S switchname
b
Verify if the vswitches are up:
# hpvmnet
Name
N
u
mber
State
Mode
PPA
MAC Address
IP Address
======== ====== ======= ========= ====== ============== ==============
localnet
1
Up
Shared
N/A
N/A
vswA
2
Up
Shared
lan1
0x0016353c0daf
vswB
3
Up
Shared
la
n2
0x0016353c0dba
#
To delete a vswitch, first stop the vswitch and then enter the
hpvmnet
command with the
d option.
For example:
#
hpvmnet
S vswA
h
hpvmnet:
Halt the vswitch ‘vswA’ ? [n]: y
#
hpvmnet
S vswA
d
hpvmnet:
Remove the vswitch
‘vswA’ ? [n]: y
Note:
If you try to delete the vswitch without stopping the guest, a message displays “hpvmnet: The
vswitch is currently active. hpvmnet: Unable to continue.”
C re a tin g
a
g u e st
To create a guest, use the hpvmcreate command, specifying th
e guest characteristic options for the
virt
u
a
l devices, s
u
ch as network, storage, and DVD.
The following example creates a guest with 1CPU, 1GB RAM, access to the network using vswA, and
access to raw logical volume name rvdisk1.
#
hpvmcreate
P vm01
c1
r1G
a network:lan::vswitch:vswA
a
disk:scsi::lv:/dev/vg01/rvdisk1
-
P
indicates guest name
-
c
n
u
mber of virt
u
a
l CPU