Академический Документы
Профессиональный Документы
Культура Документы
Discussion
View source
History
HTML
>>>
Abstract
This article explains the limitations of using USB DVD drives on Integrity Virtual Machine
Guests. This information applies to systems that uses USB DVD inserts instead of [SCSI |
IDE interfaces], like the rx2660, rx3600 and rx6600. This also applies to blade systems
like the BL860C and BL870C when using an external USB drive instead of the Blade
enclosure vMedia software.
Contents
[hide]
1 Abstract
2 Background
9 Apendix
10 Reference
11 Authors
Background
Integrity Virtual Machines 3.5 and 4.0 only support USB DVD of this platforms as virtual
disks, in other words, the HPVM guest will detect all it's virtual CD/DVD as USB units, but
USB units in the host cannot be used as backing store for HPVM guest, only the use of ISO
files is supported on this situation. Direct attachment of the USB device is not supported, in
most cases yields sub standard performance and I/O errors on the HPVM guest are common
(this I/O errors are actually time outs on the HPVM host USB subsystem.
The same procedures detailed here can be use to present [SCSI | IDE] DVD/CD drives to
HPVM guests.
# ioscan -fnk
Class I H/W Path Driver S/W State H/W Type
Description
=========================================================================
============
...
OO 3 0/0/2/1 UsbOhci CLAIMED INTERFACE
USB OHCI Interface
OO 4 0/0/2/1.0 UsbMiniBus CLAIMED INTERFACE
USB Composite Device
OO 6 0/0/2/1.0.0 UsbBulkOnlyMS CLAIMED DEVICE
USB Bulk Only
ext_bus 0 0/0/2/1.0.16 UsbScsiAdaptor CLAIMED INTERFACE
USB SCSI Stack Adaptor
target 0 0/0/2/1.0.16.0 tgt CLAIMED DEVICE
disk 2 0/0/2/1.0.16.0.0 sdisk CLAIMED
DEVICE TEAC DV-28E-V
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
...
Note that on HP-UX 11i v2 prior to the Update to USB Driver Support, the USV
DVD/CD devices Hardware Path will be attached to a USB OHCI Interface using the 00
USB Class driver through a UsbScsiAdaptor.
/dev/deviceFileSystem/Usb/MassStorage/dsk/disk@UnknownDevice-1659+9479=00
/dev/deviceFileSystem/Usb/MassStorage/rdsk/disk@UnknownDevice-
1659+9479=00
Is highly recommended to schedule downtime of the HPVM host to installing the USB
Driver Support updates detailed on the following guides:
This updates will provided USB 2.0 transfer speeds and provides agile device special files
to HP-UX 11i v3 systems. Other well know USB stack performance problem are also
corrected with this update dependencies. Check the previous guides for complete details.
The supported method is to create a ISO image of the bootable HP-UX installation media.
The unsupported method is to present USB drive directly to the HPVM guest with the
Update to USB Driver Support patches installed on the HPVM host. This second
approach is not widely tested, and some glitches are expected.
1. Copy the content of the installation media from the USB drive. The /var/tmp directory
is used through the example, but using the same convention directory convention
(/var/opt/hpvm/ISO-images of the Linux ISO images, chapter 6.2 of the Administration
Guide) is highly recomended.
# mkdir /var/tmp/iso
HPUX 11i v2
HP-UX 11i v3
# dd if=/dev/deviceFileSystem/Usb/MassStorage/rdsk/disk@UnknownDevice-
1659+9479=00 \
of=/var/tmp/iso/B.11.31.ISO bs=2048
# hpvmstatus -P tifa
[Virtual Machine Details]
Virtual Machine Name VM # OS Type State
==================== ===== ======= ========
tifa 2 HPUX Off
[Authorized Administrators]
Oper Groups:
Admin Groups:
Oper Users:
Admin Users:
[Memory Details]
Total Reserved
Memory Memory
======= ========
2 GB 64 MB
[Authorized Administrators]
Oper Groups:
Admin Groups:
Oper Users:
Admin Users:
[Memory Details]
Total Reserved
Memory Memory
======= ========
2 GB 64 MB
CO: Console
CM: Command Menu
CL: Console Log
SL: Show Event Logs
VM: Virtual Machine Menu
HE: Main Help Menu
X: Exit Connection
[tifa] vMP> CO
EFI Boot Manager ver 1.10 [14.62] [Build: Tue Jun 17 09:30:56 2008]
2. Move to the DVD EFI Filesystem (fs#) for the Virtual DVD
fs2:\> INSTALL.EFI
EFI Boot Manager ver 1.10 [14.62] [Build: Tue Jun 17 09:30:56 2008]
Cold Reset
Exit
IA64_EFI [Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun0,Lun0)/HD(Part1,Sig9
IA64_EFI [Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun0,Lun0)/HD(Part3,Sig9
Removable Media Boot [Acpi(PNP0A03,0)/Pci(2|0)/Scsi(Pun0,Lun0)]
Load File [Acpi(PNP0A03,0)/Pci(1|0)/Mac(CA65FD9224B9)]
Load File [EFI Shell [Built-in]]
Legacy Boot
Exit
4. Save Boot entry to NVRAM.
IA64_EFI [Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun0,Lun0)/HD(Part1,Sig9
IA64_EFI [Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun0,Lun0)/HD(Part3,Sig9
Removable Media Boot [Acpi(PNP0A03,0)/Pci(2|0)/Scsi(Pun0,Lun0)]
Load File [Acpi(PNP0A03,0)/Pci(1|0)/Mac(CA65FD9224B9)]
Load File [EFI Shell [Built-in]]
Legacy Boot
Exit
Cold Reset
Exit
EFI Boot Manager ver 1.10 [14.62] [Build: Tue Jun 17 09:30:56 2008]
Disabling 8259s
krs_read_mfs: Error 5 opening MFS.
Loaded ACPI revision 2.0 tables.
krs_read_mfs: Error 5 opening MFS.
Memory Information:
physical page size = 4096 bytes, logical page size = 4096 bytes
Physical: 2091584 Kbytes, lockable: 1421172 Kbytes, available:
1670652 Kbytes
Apendix
How to quickly mount an USB DVD | CDROM
1. Edit /etc/fstab and add a mount entry for the USB device special file.
...
/dev/deviceFileSystem/Usb/MassStorage/dsk/disk@UnknownDevice-1659+9479=00
/usbcd cdfs rr 0 2
# mkdir /usbcd
# mount /usbcd
If the HPVM Host administrator sets up multiple Virtual FileDVD images for the HPVM
guest, the HPVM Virtual Console command eject and insert media should be used to
select among the available ISO files assigned to the guest. The eject command changes the
Virtual FileDVD into a Virtual NullDVD device.
ISO files can be added to or removed from the file system directory for the Virtual
FileDVD by the HPVM Host Administrator. Once this ISO file directory is updated, use
an insert command to view all the newly available ISO files in the directory and to choose
one to be used for a new Virtual FileDVD. It is not necessary to change the file directory
between each eject and insert operation. The guest administrator can change the ISO files
provided in the file directory without any HPVM Host Administrator interaction.
Example:
Note that all the process is accomplish from the HPVM guest.
# diskinfo /dev/rdsk/c1t7d0
SCSI describe of /dev/rdsk/c1t7d0:
vendor: HP
product id: Virtual FileDVD
type: CD-ROM
size: 665600 Kbytes
bytes per sector: 2048
#
-------------------------------------------------------------------------
[1] 0/0/1/0.7.0 (0,1,7) dvd file
/var/opt/hpvm/ISO-images/hpux/IOTdisc
vMP> co
# diskinfo /dev/rdsk/c1t7d0
SCSI describe of /dev/rdsk/c1t7d0:
vendor: HP
product id: Virtual NullDVD
type: CD-ROM
size: 0 Kbytes
bytes per sector: 0
#
vMP> in
Insertable Guest Devices
Num Hw-path (Bus,Slot,Tgt) Gdev
--------------------------------------------
[1] 0/0/1/0.7.0 (0,1,7) dvd
vMP> co
# diskinfo /dev/rdsk/c1t7d0
SCSI describe of /dev/rdsk/c1t7d0:
vendor: HP
product id: Virtual FileDVD
type: CD-ROM
size: 3686144 Kbytes
bytes per sector: 2048
#
Reference
USB Support Update for HP-UX 11i v2 and v3