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

A VxFS file system can be created on top of a whole disk or logical volume. For files over 2 GB,
VxFS requires the file system be marked with a largefiles option. The mkfs command can
be used to create the VxFS file systems directly. Once the file systems are created, mount can be
used to mount them onto the VM Host file system. Alternatively, if using logical volumes to
create the file system on, the volume manager GUIs like sam can be used to create the file systems
and their mount points, when the logical volumes are created. In any case, once the file system
is mounted, empty files for Virtual FileDisk can be created using hpvmdevmgmt.
# mkfs -F vxfs -o largefiles /dev/dsk/c1t2d0
# mount /dev/dsk/c1t2d0 /fdev/frackA/
# hpvmdevmgmt -S 4G /fdev/frackA/disk1
In this example, the Virtual FileDisk resource statement is
disk:scsi::file:/fdev/frackA/disk1.
Multipath options for a Virtual FileDisk device are discussed in Section 7.2.1.3 (page 88).
7.2.2.3.4 Virtual DVDs
A Virtual DVD is an emulated SCSI DVD-ROM with virtual media that comes from a disc inside
of a CD/DVD drive on the VM Host. The VM Host CD/DVD drive is specified using an HP-UX
sdisk character device file.
While the Virtual DVD is read-only, the slowness of the physical VM Host CD/DVD drives
prohibits them from being shared across active virtual machines. Thus only one active virtual
machine at time should be given a particular Virtual DVD resource. Virtual DVD resources can
be changed dynamically between active virtual machines (see Section 7.3 (page 102)).
The Virtual DVDs, being read-only, do not require management to prevent conflicts writing to
the device. However, to prevent potentially sensitive information from being accessed by the
wrong virtual machine, make sure you know which virtual machine currently owns the device
before you load a CD/DVD. This information can be found on the VM Host with the hpvmstatus
commands.
The Virtual DVD resource statement takes the form of:
dvd:scsi::disk:/dev/rdsk/cXtYdZ
Where /dev/rdsk/cXtYdZ is an HP-UX character device file representing a VM Host CD/DVD
drive.
Typically, the HP-UX sdisk character file will already be created before booting the VM Host.
If it is not, it can be created and managed using the ioscan, insf, and rmsf utilities. For
example:
# ioscan -funC disk
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE HL-DT-STDVD+RW GCA-4040N
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
# diskinfo /dev/rdsk/c0t0d0
SCSI describe of /dev/rdsk/c0t0d0:
vendor: HL-DT-ST
product id: DVD+RW GCA-4040N
type: CD-ROM
size: 4300800 Kbytes
bytes per sector: 2048
In this example, the Virtual DVD resource statement is dvd:scsi::disk:/dev/rdsk/c0t0d0.
For a Virtual DVD to be recognized by a virtual machine, physical media must be present inside
the VM Host CD/DVD drive. If media is not added at virtual machine start time, it can be inserted
into the VM Host CD/DVD drive after the virtual machine is already up. A rescan by the guest
OS picks up the new media and adds the Virtual DVD to the virtual machine.
If for some reason the VM Host Administrator requires control of the VM Host CD/DVD drive
claimed by a virtual machine but has no media for the VM Host CD/DVD drive, then a Virtual
7.2 Configuring Integrity VM Storage 97