HP Integrity Virtual Machines 4.3: Installation, Configuration, Administration

# hpvmdevmgmt -l gdev:/dev/rdisk/disk2
List all the restricted devices:
# hpvmdevmgmt -l rdev
List all the guest devices used by the guest phantom:
# hpvmdevmgmt -l gdev:depend:phantom
List all shareable guest devices (those with the attribute SHARE=YES):
# hpvmdevmgmt -l gdev,SHARE=YES
Allocate a 4 GB file:
# hpvmdevmgmt -S 4G /var/opt/hpvm/guests/mirage/disk_4G_file
Create attached (passthrough/esctl) devices:
# hpvmdevmgmt -I
Modify a guest device attribute on an ISO file from not shared to shared:
# hpvmdevmgmt -m gdev:/var/opt/hpvm/ISO-images/hpux/kit:attr:SHARE=YES
Add a restricted device entry:
# hpvmdevmgmt -a rdev:/dev/vg00/lvol8
Delete a restricted device:
# hpvmdevmgmt -d rdev:/dev/vg00/lvol8
Delete the guest mirage dependent from all guest devices:
# hpvmdevmgmt -d gdev:all:depend:mirage
Replace a guest device:
# hpvmdevmgmt -n gdev:/dev/vgvm/lvol5:/dev/rdisk/disk4
Share a tape device using a single initiator (single lunpath):
# hpvmmodify -P guest1 -a tape:avio_stor::attach_path:0/5/0/0/0/0.0x500110a0008b9de2.0x0
# hpvmmodify -P guest2 -a tape:avio_stor::attach_path:0/5/0/0/0/0.0x500110a0008b9de2.0x0
# hpvmdevmgmt -l gdev:0/5/0/0/0/0.0x500110a0008b9de2.0x0
0/5/0/0/0/0.0x500110a0008b9de2.0x0,lunpath1:CONFIG=gdev,EXIST=YES,SHARE=NO,DEVTYPE=ATTACHPATHLUN,AGILE_DSF=
/dev/rtape/tape5_BESTn:guest1,guest2:0x01.0x00.0x03.0x500110a0008b9de1_lunpath1
# hpvmdevmgmt -m gdev:0/5/0/0/0/0.0x500110a0008b9de2.0x0:attr:SHARE=YES
# hpvmdevmgmt -l gdev:0/5/0/0/0/0.0x500110a0008b9de2.0x0
0/5/0/0/0/0.0x500110a0008b9de2.0x0,lunpath1:CONFIG=gdev,EXIST=YES,SHARE=YES,DEVTYPE=ATTACHPATHLUN,AGILE_DSF=
/dev/rtape/tape5_BESTn:guest1,guest2:0x01.0x00.0x03.0x500110a0008b9de1_lunpath1
The hpvmdevmgmt -m command can also take the following form:
# hpvmdevmgmt -m gdev:lunpath1:attr:SHARE=YES
Where "lunpath1" is the Integrity VM- generated alias for the hardware path. The Integrity
VM-generated alias of the form "lunpath#" can be used as shorthand in device management
commands, but it cannot be used in hpvmcreate or hpvmmodify commands.
Share a tape device using different initiators (different lunpaths):
1. Add different paths to each guest:
# hpvmmodify -P guest1 -a tape:avio_stor::attach_path:0/4/1/0.0x500104f0004732d9.0x0
# hpvmmodify -P guest2 -a tape:avio_stor::attach_path:0/4/1/1.0x500104f0004732d9.0x0
Note that the two lunpath hardware paths in the previous example are through two different
initiators (0/4/1/0/ and 0/4/1/1/).
2. List the attributes of each path (Note the value of the AGILE_DSF attribute is the same for
both lunpaths.):
# hpvmdevmgmt -l gdev:0/4/1/0.0x500104f0004732d9.0x0
0/4/1/0.0x500104f0004732d9.0x0,lunpath3:CONFIG=gdev,EXIST=YES,SHARE=NO,DEVTYPE=ATTACHPATHLUN,AGILE_DSF=
/dev/rtape/tape6_BESTn:vme01,guest1:0x01.0x00.0x03.0x500104f0004732d8_lunpath3
# hpvmdevmgmt -l gdev:0/4/1/1.0x500104f0004732d9.0x0
0/4/1/1.0x500104f0004732d9.0x0,lunpath4:CONFIG=gdev,EXIST=YES,SHARE=NO,DEVTYPE=ATTACHPATHLUN,AGILE_DSF=
/dev/rtape/tape6_BESTn:guest2:0x01.0x00.0x03.0x500104f0004732d8_lunpath4
270