HP Integrity Virtual Machines 4.2: Installation, Configuration, and Administration
If the VM Host administrator gives access to the guest administrator to load and unload physical
media on the VM Host CD/DVD drive, the Virtual NullDVD can be set up with the following
form of the resource specification:
dvd:scsi::null:/dev/rdisk/disk#
where /dev/rdisk/disk# is an HP-UX esdisk character device file that points to the VM
Host CD/DVD drive. The legacy sdisk device file, /dev/rdsk/cXtYdZ, may also be used.
This is the same as setting up a Virtual DVD (see Section 7.2.2.3.4 (page 114)), except that the VM
Host CD/DVD might not contain media. The media is expected to come from the guest
administrator, who should have access to the VM Host to make such physical media changes.
For example:
# ioscan -NfunC disk
disk 7 64000/0xfa00/0x6 esdisk CLAIMED DEVICE
TEAC DW-224E
/dev/disk/disk7 /dev/rdisk/disk7
# diskinfo /dev/rdisk/disk7
SCSI describe of /dev/rdisk/disk7:
vendor: TEAC
product id: DW-224E
type: CD-ROM
size: 0 Kbytes
bytes per sector: 0
In this example, the Virtual NullDVD resource statement is
dvd:scsi::null:/dev/rdisk/disk7.
If the VM Host administrator does not want to give access to the VM Host CD/DVD drive to the
guest administrator, you can set up a Virtual NullDVD to a file system directory containing the
ISO files that the guest administrator wants to access. This resource statement would take the
following form:
dvd:scsi::null:/pathname
where /pathname is the file system directory where the ISO files are located.
This is the same as setting up a Virtual FileDVD (see Section 7.2.2.3.5 (page 115)), except that the
file is not specified. By specifying a file directory, the guest administrator can choose which ISO
files to use from the virtual console. The file directory must be a locally mounted VxFS file system.
NFS file systems are not supported. If the ISO files are world writable, they are not available
from the virtual console. For the following ISO files:
# ls -l /var/opt/hpvm/ISO-images/hpux
total 26409104
-rw-r--r-- 1 root sys 3774611456 Jul 11 16:59 0505-FOE.iso
-rw-r--r-- 1 root sys 4285267968 Jul 11 17:05 0512-FOE.iso
-rw-r--r-- 1 root sys 3149987840 Jul 11 18:42 0603-FOE-D1.iso
-rw-r--r-- 1 root sys 1629978624 Jul 11 18:51 0603-FOE-D2.iso
The Virtual NullDVD resource statement is
dvd:scsi::file:/var/opt/hpvm/ISO-images/hpux/.
You can configure the Virtual NullDVD to be sharable or have multipath options. If the Virtual
NullDVD device is configured to use the VM Host CD/DVD device, it is not sharable and no
multipath options are available. If the Virtual NullDVD is configured to use a file system directory,
it is sharable and you can use multipath options (see Section 7.2.1.3 (page 105)). To mark the
directory sharable across virtual machines, use the hpvmdevmgmt command. For example:
# hpvmdevmgmt -m gdev:/var/opt/hpvm/ISO-images/hpux/:attr:SHARE=YES
For more information about using the hpvmdevmgmt command, see Section 9.9 (page 161).
116 Creating Virtual Storage Devices