Thursday, October 14, 2010

HP-UX INTEGRITY VIRTUAL MACHINES(Integrity VM)

Now that I have started my first Technical Blog....

HP Integrity Virtual Machines (Integrity VM) is a virtualization or hypervisor technology within the HP Insight Dynamics – VSE that enables you to create multiple virtual servers or machines with shared resourcing within a single HP Integrity server or nPartition—each with its own 'guest' operating system instance, applications and users. Integrity VM provides automatic, dynamic, resource allocation, based on demand and entitlement.

Online VM Migration

Online VM Migration additionally enables a running VM, its guest OS, and all of its applications to be moved to a different VM Host without any service interruption. Services remain active with no OS reboots or application restarts. All I/O connections to storage and networks remain active during the migration, leaving the change transparent to applications and users.

Using Online VM Migration allows an administrator to do online maintenance (patch, update, or reconfigure) of VM Hosts, as well as balance server (host) loads, without interruption to the VM Host or virtual machines. The functionality can be used in conjunction with other HP tools, such as HP Serviceguard Solutions to provide improved availability and flexibility.

At a Glance

  • Current version: B.04.20.05
  • Hardware platforms: Any HP Integrity server (including blades, legacy, Integrity i2 blades and Superdome 2), with or without nPartitions
  • VM Host Operating Systems: HP-UX 11i v3 (on the new Integrity servers)
  • Shared resources: processor cores, I/O, tape and DVD changer
  • Virtualized resources: processor cores, I/O, memory, switch, vLAN
  • Dynamic: Automatic CPU & memory resource reallocation, memory migration, online VM migration
I have tried out 4.1 and hence I give the description for HPVM 4.1, however there is no much difference in the creation of the Host/Guest.

Download HPVM 4.1 from the below website:

https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=integrity_vm41

NOTE: The above is only a trial version. You will have to buy the full version. Also just fyi.. HPVM 4.2.5 is the latest version.

Having said that HPVM 4.1 is supported only on HPUX 11.31 and onwards.

Install the below patches from http://www.itrc.hp.com

PHSS_37312 (Integrity VM)

PHSS_37306 (VMagent)

Install the Integrity VM Media Kit

I am creating lvols cos I do not have any left on my Box.

# lvcreate -L 40960m -n lvol9 vg00

# lvcreate -L 40960m -n lvol10 vg00

# lvcreate -L 40960m -n lvol11 vg00

# lvcreate -L 40960m -n lvol12 vg00

Now I will create a VM Guest:

# hpvmcreate -P VM03A -O HPUX:11.31 -c2 -r1G

# hpvmmodify -P VM03A -a disk:scsi::lv:/dev/vg00/rlvol9

# hpvmmodify -P VM03A -a network:lan::vswitch:vswth01

# hpvmstart -P VM03A

(C) Copyright 2000 - 2007 Hewlett-Packard Development Company, L.P.

Initializing System Event Log

Initializing Forward Progress Log

Opening minor device and creating guest machine container

Creation of VM, minor device 2

Allocating guest memory: 1024MB

allocating low RAM (0-40000000, 1024MB)

/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids/8ad310ce-8fe0-11dd-8403-001f29f280f2

/vmm_config.next): Allocated 1073741824 bytes at 0x6000000100000000

allocating datalogger memory: FF800000-FF840000 (256KB for 155KB)

/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids/8ad310ce-8fe0-11dd-8403-001f29f280f2

/vmm_config.next): Allocated 262144 bytes at 0x6000000180000000

locking datalogger memory

allocating firmware RAM (fff00000-fff20000, 128KB)

/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids/8ad310ce-8fe0-11dd-8403-001f29f280f2

/vmm_config.next): Allocated 131072 bytes at 0x6000000180080000

locked SAL RAM: 00000000fff00000 (8KB)

locked ESI RAM: 00000000fff02000 (8KB)

locked PAL RAM: 00000000fff04000 (8KB)

locked Min Save State: 00000000fff06000 (8KB)

locked datalogger: 00000000ff800000 (256KB)

Loading boot image

Image initial IP=102000 GP=67E000

Initialize guest memory mapping tables

Starting event polling thread

Starting thread initialization

No NVRAM persistent variables on disk

Daemonizing....

hpvmstart: Successful start initiation of guest 'VM03A'

Assigning a Virtual dvd

hpvmmodify -P VM03A -a dvd:scsi::disk:/dev/rdsk/c1t0d0

hpvmmodify -P VM03B -a dvd:scsi::disk:/dev/rdsk/c1t0d0

hpvmmodify -P VM04A -a dvd:scsi::disk:/dev/rdsk/c1t0d0

hpvmmodify -P VM04B -a dvd:scsi::disk:/dev/rdsk/c1t0d0

I have now managed to create four Virtual Guests viz., VM03A,VM03B,VM04A,VM04B

Assign the LVOLS:

# hpvmmodify -P VM04A -a disk:scsi::lv:/dev/vg00/rlvol9

# hpvmmodify -P VM04B -a disk:scsi::lv:/dev/vg00/rlvol10

Now each VM has a disk.

Next is LAN.

Create a virtual switch on a physical NIC (here lan0), name it vswitch01:

# hpvmnet -c -S vswth01 -n 0

power on the vswitch:

# hpvmnet -b -S vswth01

assign the network:

# hpvmmodify -P VM04A -a network:lan::vswitch:vswth01

# hpvmmodify -P VM04B -a network:lan::vswitch:vswth01

start the VMs:

# hpvmstart -P VM04A

# hpvmstart -P VM04B

Connect to the vMP of the first VM:

# hpvmconsole -P VM04A

and proceed to install HP-UX via IGNITE-UX.

NOTE: You can install OS on the Guest using Disk/ISO/IGNITE.I have chosen IGNITE.

In my second blog we can discuss on IGNITE-UX.

USEFUL/HANDY LINKS


http://h10025.www1.hp.com/ewfrf/wc/document?lc=en&dlc=en&cc=emea_middle_east&docname=c01794546

http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c02018678/c02018678.pdf

http://h20000.www2.hp.com/bizsupport/TechSupport/DocumentIndex.jsp?lang=en&cc=us&taskId=101&prodClassId=10008&contentType=SupportManual&docIndexId=64255&prodTypeId=18964&prodSeriesId=4146186

Useful Integrity VM commands:

hpvmclone: Creates a cloned copy of a virtual machine. Runs on the VM Host.

hpvmcollect: Collects crash dumps, logs, system status, and configuration on host and guest. Runs on the VM Host and on guests.

hpvmconsole: Connects to the console of a virtual machine. Runs on the VM Host.

hpvmcreate: Creates a new virtual machine. Runs on the VM Host.

hpvmdevmgmt: Manages the device database. Runs on the VM Host.

hpvmmgmt: Manages the guest memory allocation. Runs on guests only.

hpvminfo: Displays information about the Integrity VM environment. Runs on the VM Host and on guests.

hpvmmigrate: Moves a virtual machine from one VM Host to another. Runs on the VM Host.

hpvmmodify: Renames or modifies the attributes of a virtual machine. Runs on the VM Host.

hpvmnet: Configures virtual network devices. Runs on the VM Host.

hpvmremove: Removes a virtual machine. Runs on the VM Host.

hpvmstart: Starts a virtual machine. Runs on the VM Host.

hpvmstatus: Displays status of one or more virtual machines. Runs on the VM Host.

hpvmstop: Stops a virtual machine. Runs on the VM Host.

p2vassist: Moves a system workload from a discreet server to a virtual machine. Runs on the VM Host.

All commands except hpvmconsole require superuser privileges




2 comments: