instalación del VMHost al ultimo nivel de patches disponibles
QPKAPPS B.11.31.1103.361 Applications Patches for HP-UX 11i v3, March 2011
QPKBASE B.11.31.1103.361 Base Quality Pack Bundle for HP-UX 11i v3, March 2011
HWEnable11i B.11.31.1103.361a Hardware Enablement Patches for HP-UX 11i v3, March 2011
FEATURE11i B.11.31.1103.361b Feature Enablement Patches for HP-UX 11i v3, March 2011
Luego instalamos los siguientes patches especificos para VMs
PHKL_41227
PHSS_41191
PHSS_41413
PHSS_41543
PHSS_41550
Verificamos la instalacion del software y patches
vmhost1#check_patches
Obtaining information on installed patches
Checking for invalid patches
Checking object module checksums for active patch fileset 632 of 632
Checking patch filesets for active patch 351 of 351
Checking state for patch fileset 837 of 837
Checking patch_state for patch fileset 837 of 837
Checking load order of patch fileset 837 of 837
Running swverify on all patch filesets, this may take several minutes
RESULT: No problems found, review /tmp/check_patches.report for details.
Determinamos el disco para instalar las virtuales
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 3 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/disk/disk3 /dev/rdisk/disk3
/dev/disk/disk3_p1 /dev/rdisk/disk3_p1
/dev/disk/disk3_p2 /dev/rdisk/disk3_p2
/dev/disk/disk3_p3 /dev/rdisk/disk3_p3
disk 4 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/disk/disk4 /dev/rdisk/disk4
disk 5 64000/0xfa00/0x2 esdisk CLAIMED DEVICE TEAC DV-28E-N
/dev/disk/disk5 /dev/rdisk/disk5
Identificamos como libre al disk4
Creamos el vg para alojar las virtuales
pvcreate /dev/rdisk/disk4
vgcreate -V 2.2 -s 16 -S 256g vgvm /dev/disk/disk4
Volume group "/dev/vgvm" has been successfully created.
Volume Group configuration for /dev/vgvm has been saved in /etc/lvmconf/vgvm.conf
Levantamos el servicio de HPVM si es que no esta levantado
vmhost1#./hpvm start
NOTA que el siguiente error se dio al estar activo el Hyperthreading
ERROR: Integrity VM software cannot be started when hyperthreading is enabled
(getconf SC_HT_ENABLED). Use /usr/sbin/setboot -m off and reboot to enable
this system as an Integrity VM host.
Desactivamos el HT mediante ejecutando lo siguiente y luego rebooteamos
vmhost1#/usr/sbin/setboot -m off
Defino la vm con 4 vCPUs y un 50% Entitlement
vmhost1#hpvmcreate -P ttsprod -c 4 -e 50 -r 4G
Verifico la creación de la VM
vmhost1#hpvmstatus
[Virtual Machines]
Virtual Machine Name VM # OS Type State #VCPUs #Devs #Nets Memory Rmt Host
==================== ===== ======= ========= ====== ===== ===== ======= ========
ttsprod 1 UNKNOWN Off 4 0 0 4 GB -
Creo el switch virtual y lo asigno a la VM
vmhost1#hpvmnet -c -S vmlan1 -n 0
vmhost1#hpvmmodify -a network:avio_lan:vswitch:vmlan1 -P ttsprod
HPVM guest ttsprod configuration problems:
Warning 1 on item vmlan1: Vswitch 'vmlan1' is not active.
These problems may prevent HPVM guest ttsprod from starting.
hpvmmodify: The modification process is continuing.
Booteo el switch para iniciarlo
vmhost1#hpvmnet -b -S vmlan1
Verifico la asignacion de la NIC a la VM
vmhost1#hpvmstatus
[Virtual Machines]
Virtual Machine Name VM # OS Type State #VCPUs #Devs #Nets Memory Rmt Host
==================== ===== ======= ========= ====== ===== ===== ======= ========
ttsprod 1 UNKNOWN Off 4 0 1 4 GB -
Asigno un disco a la VM
vmhost1#hpvmmodify -P ttsprod -a disk:avio_stor::lv:/dev/vgvm/rlvttsprod
Configuro autoboot para la VM
vmhost1#hpvmmodify -P ttsprod -B auto
Creamos un LV para contener las imagenes instalables de HPUX
vmhost1#lvcreate -n lvimages -L 12000 vgvm
Logical volume "/dev/vgvm/lvimages" has been successfully created with
character device "/dev/vgvm/rlvimages".
Logical volume "/dev/vgvm/lvimages" has been successfully extended.
Volume Group configuration for /dev/vgvm has been saved in /etc/lvmconf/vgvm.conf
vmhost1#newfs -F vxfs -b 8192 /dev/vgvm/rlvimages
version 7 layout
12288000 sectors, 1536000 blocks of size 8192, log size 2048 blocks
largefiles supported
Agregamos la entrada en el fstab
...
/dev/vgvm/lvimages /var/opt/hpvm/ISO-images vxfs delaylog 0 2
Montamos y verificamos
vmhost1#mount /dev/vgvm/lvimages
vmhost1#bdf /var/opt/hpvm/ISO-images
Filesystem kbytes used avail %used Mounted on
/dev/vgvm/lvimages 12288000 18016 12174136 0% /var/opt/hpvm/ISO-images
Transferimos las imagenes ISO al VM host
Luego de transferir las imagenes al VM asignamos la imagen al guest
vmhost1#hpvmmodify -P ttsprod -a dvd:scsi::file:/var/opt/hpvm/ISO-images/hpux/HPUX11-31_Disk1.iso
vmhost1#hpvmstart -P ttsprod
hp(C) Copyright 2000 - 2010 Hewlett-Packard Development Company, L.P.
vmOpening minor device and creating guest machine container
Creation of VM, minor device 1
Allocating guest memory: 4096MB
allocating low RAM (0-80000000, 2048MB)
/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids/ec250e2e-434b-11e0-b105-00156004df18/vmm_config.next): Allocated 2147483648 bytes at 0x6000000100000000
locking memory: 0-80000000
con allocating high RAM (100000000-180000000, 2048MB)
/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids/ec250e2e-434b-11e0-b105-00156004df18/vmm_config.next): Allocated 2147483648 bytes at 0x6000000200000000
locking memory: 100000000-180000000
sole allocating datalogger memory: FF800000-FF810000 (64KB for 53KB)
/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids/ec250e2e-434b-11e0-b105-00156004df18/vmm_config.next): Allocated 65536 bytes at 0x6000000300000000
locking datalogger memory
allocating firmware RAM (fff00000-fff20000, 128KB)
/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids/ec250e2e-434b-11e0-b105-00156004df18/vmm_config.next): Allocated 131072 bytes at 0x6000000300020000
locked SAL RAM: 00000000fff00000 (8KB)
locked ESI RAM: 00000000fff02000 (8KB)
locked PAL RAM: 00000000fff04000 (8KB)
locked Min Save State: 00000000fff06000 (16KB)
locked datalogger: 00000000ff800000 (64KB)
Loading boot image
-Image initial IP=102000 GP=694000
Initialize guest memory mapping tables
Starting event polling thread
Starting thread initialization
Daemonizing....
P hpvmstart: Successful start initiation of guest 'ttsprod'
vmhost1#hpvmconsole -P ttsprod
vMP MAIN MENU
CO: Console
CM: Command Menu
CL: Console Log
SL: Show Event Logs
VM: Virtual Machine Menu
HE: Main Help Menu
X: Exit Connection
[ttsprod] vMP> co
Elegimos la opcion "Boot option maintenance menu"
Dentro del menu de mantenimiento, elegimos "Boot from file" y elegimos el Removable media que es el DVD
Dentro del menu de mantenimiento, elegimos "Boot from file" y elegimos el Removable media que es el DVD
A continuacion comenzara el booteo de instalacion de la VM
En la siguiente pantalla elegimos como enviroment al HP-UX Base Operating Enviroment
En software podemos quitar por ejemplo las man pages, fonts de otros idomas como chino,koreano,etc y algún software por ejemplo mozila.
Si es necesario podemos hacer cambios en el layout de los FSs
Una vez terminadas las modificaciones podemos comenzar la instalacion del OS
vmhost1\\#hpvmmodify -P ttsprod -d dvd:scsi::file:/var/opt/hpvm/ISO-images/hpux/HPUX11-31_Disk1.iso
hpvmmodify: WARNING (ttsprod): Removing the last target on bus 0 device 2 for the active guest.
hpvmmodify -P ttsprod -a dvd:scsi::file:/var/opt/hpvm/ISO-images/hpux/HPUX11-31_Disk2.iso
Después del cambio de la imagen apretar el 1 y enter y la instalación resumir
Luego de la instalación se produce un booteo, en el cual se reconfiguran los filesets instalados, y al fin de la instalacion deberiamos llegar a una pantalla similar a esta
Dentro del vmhost verificamos el estado de la virtual
vmhost1#hpvmstatus
[Virtual Machines]
Virtual Machine Name VM # OS Type State #VCPUs #Devs #Nets Memory Rmt Host
==================== ===== ======= ========= ====== ===== ===== ======= ========
ttsprod 1 HPUX On (OS) 4 2 1 4 GB -
vmhost1#
Como ultimo paso se instalan las herramientas de management del guest
# swinstall -s /tmp/hpvm_guest_depot.11iv3.sd
Luego de la instalación se reinicializara el server y tendremos la maquina creada.
Se puede instalar el virtual Server Manager para poder administrar las VM desde el SMH
Para verificar que el software esta instalado podemos ejecutar el siguiente comando
vmhost1#swlist -l product vmmgr
# Initializing...
# Contacting target "vmhost1"...
#
# Target: vmhost1:/
#
# Initializing...
# Contacting target "vmhost1"...
#
# Target: vmhost1:/
#
vmmgr A.6.0.0.88401 HP-UX Integrity Virtual Server Manager
muy bueno hugo!!
ResponderEliminargracias por compartir tus conocimientos!
sos muy generoso
das
Saludos Hugo Excelente aporto ,
ResponderEliminarQuisiera saber donde puedo descargar una ISO de HP UX y como podria virtualizarlo, si puedes dejame el enlace o alguna recomendacion.
Gracias de ante mano.