HP Integrity Virtual Machines 4.2: Installation, Configuration, and Administration

9.9.2 Using the hpvmdevmgmt Command
To list and modify the devices used by the VM Host and the virtual machines, use the
hpvmdevmgmt command.
Table 9-6 describes the options to the hpvmdevmgmt command.
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: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]
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.
9.9.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.
162 Managing Guests