HPVM Cook Book
HPVM Cook Book
HPVM Cook Book
7. Restting a vPar
# vparreset -p vpar1 [-h | -t] [-q] [-f]
Install vPar
1. Install via DVD Assign an LBA with a DVD attached to the vPar.
MON> vparload -p vpar2 -D 0
HPVM
Requirements on Host 50MB free space in /opt Swap: phisical memory size + 4GB 4.7 MB for each guest CPU number of and amount
hpvmcreate ... -e percent:max_persent
Memory overhead +/-7% Boot device of VM Host as restricted Commands /opt/hpvm/bin Logfile /var/opt/hpvm/common/hpvm_mon_log Kernel parameter: base_pagesize filecache_max 1% filecache_min 1% maxdsit_64bit
vmhost nproc PIDvm1 PIDvm2 . . PIDvmn | mvguest | | | vm1 | nproc | vm2 | nproc | vm3 | nproc
HPVM cookbook
1. Check configuration
# # # # # print_manifest lvlnboot -v lanscan swapinfo kctune
Example:
# vpvmcreate -P vm1 -e 20 -r 3G
Example:
# hpvmmodify -P vm1 -a disk:scsi::lv:/dev/vg01/rvol1 ^ could be hw path # hpvmmodify -P vm1 -a network:lan::vswitch:vswlan1 ^ could be bus.device.mac_address ex.: ,,aa-aa-aa-10-01-92
: aa-aa-aa-10-01-92
15. Set Start_Attr of the VM to auto to start the VM automatically on a server reboot
# hpvmmodify -P RHEL -B auto
Install a HPVM
1. Get information about the created HPVMs
# hpvmstatus -V [P vm1] | pg
2.
# cd /var/opt/hpvm # cd guests # ls -l # ... vm1 -> /var/opt/hpvm... # cd vm1 # pg vmm_config.current # pg log # cd console # pg ocnslog # cd ../..hpvmnet # cd vswlan1 # pg hpvmnet_config name = vswlan1 nic = 1 # cd ../common # pg command.log (history of hpvm commands) # cd ../ISO-images (iso images of the os i'd like to install) # cd /opt/hpvm # cd bin (hpvm commands)
Migrate a HPVM
Prerequisits
On the source host and the target host HPVM >= 4.1 must be installed Both servers must have access to the OS disk (as shown in the picture above) On both hosts execute the secsetup tool
# secsetup <otherhostname>
Migrate it
1. Prepare the hpvm on the target site along the prerequisits 2. Migrate the vm
# hpvmmigrate -o -P <hpvmName> -h <targetHostName>
hpvmmigrate: Connected to target host using 'targetHotname' hpvmmigrate: Starting guest 'myvm' on target host 'targetHostname' (C) Copyright 2000 - 2009 Hewlett-Packard Development Company, L.P. Opening minor device and creating guest machine container Creation of VM, minor device 1 Initialize guest memory mapping tables Starting event polling thread Online migration initiated by source 'sourceHostname' (ip-address) hpvmmigrate: hpvmmigrate: hpvmmigrate: hpvmmigrate: hpvmmigrate: Init phase completed successfully. Copy phase completed successfully. I/O quiesce phase completed successfully. Frozen phase completed successfully. Guest migrated successfully.