HP Integrity Virtual Machines 4.3: Installation, Configuration, Administration

Table 8-7 Options to the hpvmdevmgmt Command (continued)
DescriptionOption
Creates passthrough device files (for example,
/dev/rscsi). Passthrough devices are used by
attached devices, such as tape devices, media
changers, and CD/DVD burners.
-I
Modifies an existing attribute or adds the attribute
if it does not already exist.
-m
{server|rdev|gdev}:entry_name[:attr:attr_name=attr_value]
Adds an entry.
-a
{server|rdev|gdev}:entry_name[:attr:attr_name=attr_value]
Deletes an entry.
-d {server|rdev|gdev}:entry_name[:param:arg]
Deletes one alias if a device has multiple aliases
defined.
-d gdev_alias:/dev/rdisk/disknn
Replaces a device.
-n
gdev:oldentry_name:newentry_name0[,newentry_name1]
Generates a report script that can be used after
inspection to fix various device database problems.
-r
For example, to display a list of the restricted devices, enter the following command:
# hpvmdevmgmt -l rdev
/dev/rdisk/disk4:CONFIG=rdev,EXIST=YES,DEVTYPE=DISK,
SHARE=NO::6005-08b4-0001-15d0-0001-2000-003a-0000
To make a device shareable among guests, enter the following command:
# hpvmdevmgmt -m gdev:/data/file.iso:attr:SHARE=YES
NOTE: Whenever you add a device that is going to be used in guest configurations to an
Integrity VM Host, run the hpvmdevmgmt -I command after adding the device to the host.
8.12.2.1 Sharing Devices
With Integrity VM, you can allow devices to be specified as either shared or not shared. By
default, vswitches are configured to be shared, and storage devices are configured to not be
shared. As administrator, you can configure a storage device to be shared by multiple guests.
The SHARE attribute is checked only when booting a guest. If one guest is running with a
nonshared device and another guest attempts to boot using that same device, the latter guest is
blocked. If multiple guests need to share devices, then the SHARE attribute for those devices must
be changed to SHARE=YES using the modify option (-m) with the hpvmdevmgmt command.
For example, to make the HP-UX iso.* images shareable so that two virtual machines (host1
and host2) can use them to install at the same time, enter the following commands:
# hpvmdevmgmt -m gdev:/var/opt/hpvm/ISO-images/hpux/:attr:SHARE=YES
# hpvmmodify -P host1 -a dvd:scsi::null:/var/opt/hpvm/ISO-images/hpux/
# hpvmmodify -P host2 -a dvd:scsi::null:/var/opt/hpvm/ISO-images/hpux/
Virtual DVDs and virtual network devices can be shared. DVDs are not shareable unless you
specify otherwise. Sharing of virtual devices or hardware backing stores must be carefully planned
in order to prevent data corruption.
To restrict the vswitch named myswitch so that it is no longer shareable, enter the following
command:
# hpvmdevmgmt -m gdev:myswitch:attr:SHARE=NO
This command restricts the vswitch called myswitch to use by one guest only.
8.12 Managing the Device Database 171