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

Logical volume creation is relatively simple. Logical volumes are used widely on HP-UX systems.
The sam utility or the Veritas Enterprise Administrator can be used to create logical volumes.
With experience, you can use logical volume commands more quickly.
Creating files for virtual devices is not hard, but takes time. Files are usually placed on top of
logical volumes, so you might have to create a logical volume first. Use sam to accomplish this.
To create empty files for virtual disks, use the hpvmdevmgmt command (see Section 9.8 (page 138)).
To create ISO files from physical CD/DVD media for use in virtual DVDs, use the mkisofs or the
dd utility.
For attached devices, the effort and time to set them up is spent in the creation of the HP-UX
pass-through device files that point to the devices being attached. Once understood, making
HP-UX pass-through device files is a fast, simple process. If device drivers for the devices are
installed on the VM Host, use the hpvmdevmgmt command to quickly create the device files.
Otherwise, see scsi_ctl for information about creating pass-through device files using mknod.
7.2.2 Setting up Virtual Storage
When you add or modify a virtual device, you must enter a resource statement (rsrc). The
resource statement can specify either virtual network devices (as described in Chapter 8 (page 109)),
or virtual storage devices.
This section describes how to enter resource statements for use with the hpvmcreate command
(described in Chapter 3 (page 31)) and the hpvmmodify command (described in Chapter 9
(page 123)). The resource statement specifies the virtual storage device that will be seen by the
virtual machine and how it maps to the physical storage device on the VM Host.
The outline of a complete resource statement for specifying a virtual storage device is the
following:
VM guest storage specification:VM Host storage specification
Where:
VM guest storage specification defines where and what storage is seen in the
virtual machine (see Section 7.2.2.1: “VM Guest Storage Specification” (page 91))
VM Host storage specification defines where and how the virtual machine storage
is supplied on the VM Host (see Section 7.2.2.2 (page 92))
For examples of how to construct resource statements, see Section 7.2.2.3 (page 93).
7.2.2.1 VM Guest Storage Specification
All virtual storage is addressed from virtual PCI buses. There are 8 PCI buses on the Integrity
VM virtual platform. Each PCI bus has 8 slots into which virtual PCI adapters can be placed.
One such adapter, simply called scsi, is an emulated single-ported parallel SCSI MPT storage
adapter that can be used to connect 15 SCSI target devices to a virtual machine.
A VM Host administrator specifies this SCSI MPT adapter using the following:
device:scsi:pcibus,pcislot,scsitgt
Where:
device is one of the following: disk, dvd, tape, changer, or burner
pcibus is an integer from 0-6.
The virtual MPT adapters are only supported on PCI buses 0-6. PCI bus 7 is reserved for
other use.
7.2 Configuring Integrity VM Storage 91