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

Logical volume creation is relatively simple. Logical volumes are used widely on HP-UX systems.
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.
To create empty files for virtual disks, use the hpvmdevmgmt command (see Section 9.9 (page 161)).
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 passthrough 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), or
virtual storage devices.
This section describes how to enter resource statements for use with the hpvmcreate command
(described in Chapter 3) and the hpvmmodify command (described in Chapter 9). 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 following is an outline of a complete resource statement for specifying a virtual storage
device:
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 (page 108))
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 109))
For examples of how to construct resource statements, see Section 7.2.2.3 (page 110).
7.2.2.1 VM Guest Storage Specification
All virtual storage is addressed from virtual PCI buses. The Integrity VM virtual platform contains
8 PCI buses. 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 guest. An AVIO storage adapter is also
supported. The AVIO storage adapter supports up to 128 devices per adapter (and host) and
provides higher performance and guest storage manageability.
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 AVIO and MPT adapters are supported only on PCI buses 0-7.
108 Creating Virtual Storage Devices