HP Integrity Virtual Machines Installation, Configuration, and Administration Version A.03.50

Table 9-6 Options to the hpvmdevmgmt Command
DescriptionOption
Lists an entry. To list all entries, enter the following
command:
# hpvmdevmgmt -l all
-l
{server|rdev|gdev}:entry_name:attr:attr_name=attr_value
Displays the version number of the hpvmdevmgmt
output format. The version number is followed by
the display specified by other options.
-v
Increases the amount of information displayed
(verbose mode).
-V
Creates a file for use as a virtual device. The size
argument must end in either M for megabyte or
G for gigabyte.
-S size filename
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:attribute_name=attr_value]
Deletes an entry.
-d {server|rdev|gdev}:entry_name[:param:arg]
Replaces a device.
-n
gdev:oldentry_name:newentry_name0[,newentry_name1]
For example, to use the hpvmdevmgmt command to display a list of the restricted devices, enter
the following command:
# hpvmdevmgmt -l rdev
/dev/rdsk/c10t0d4:CONFIG=rdev,EXIST=YES,DEVTYPE=DISK,
SHARE=NO::6005-08b4-0001-15d0-0001-2000-003a-0000
To make a device sharable among guests, enter the following type of command:
# hpvmdevmgmt -m gdev:/data/file.iso:attr:SHARE=YES
9.8.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. 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 only checked when booting a guest. If one guest is running with a
non-shared device and another guest attempts to boot using that same device, it is blocked. If
multiple guests require sharing 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 sharable so that two virtual machines (compass1
and compass2) 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 compass1 -a dvd:scsi::null:/var/opt/hpvm/ISO-images/hpux/
# hpvmmodify -p compass2 -a dvd:scsi::null:/var/opt/hpvm/ISO-images/hpux/
Only read-only devices can be shared among guests. Virtual DVDs and virtual network devices
can be shared. DVDs are not shareable unless you specify otherwise. Sharing virtual devices or
the hardware backing stores must be carefully planned in order to prevent data corruption.
9.8 Managing the Device Database 139