VM-Vpar Admin
VM-Vpar Admin
/var/opt/hpvm/guests/name/vmm_config.current
/var/opt/hpvm/guests/name/vmm_config.next
/var/opt/hpvm/guests/name/vmm_config.prev
Commands:
/opt/hpvm/bin
/var/opt/hpvm/common/hpvm_mon_log
/var/opt/hpvm/common/command.log
1 of 21 12/6/2020, 16:01
HP Integrity VM/vPar Administration https://vijaylondhe815.wordpress.com/2016/11/15/hp-integrity-vmvpar-...
/var/opt/hpvm/guests/name/log
/etc/rc.config.d/hpvmconf
# vparsratus
# hpvminfo
# more /var/opt/hpvm/common/hpvm_mon_log
# hpvmstatus –s
/var/opt/hpvm/common/hpvm_mgmtdb
To view entries:
# hpvmdevmgmt –l rdev|gdev|env|server|all
Or
# hpvmdevmgmt –l all
View the restricted devices listed in the HPVM device database. These are devices that are reserved for
2 of 21 12/6/2020, 16:01
HP Integrity VM/vPar Administration https://vijaylondhe815.wordpress.com/2016/11/15/hp-integrity-vmvpar-...
Example: Add /opt directory as restricted directory and change recursive a ribute for /opt directory
# hpvmdevmgmt –a rdev:/opt
# hpvmdevmgmt –l rdev:/opt
Resources on the VSP assigned to one or more vpar/vm as raw storage space.
# nwmgr
Or
# lanscan
# vparnet –c –S vswlan1 –n 1
Or
# hpvmnet –c –S vswlan1 –n 1
# vaprnet
Or
# hpvmnet
3 of 21 12/6/2020, 16:01
HP Integrity VM/vPar Administration https://vijaylondhe815.wordpress.com/2016/11/15/hp-integrity-vmvpar-...
List the devices in HPVM database. Find the entries related with new vswitch.
# vparnet –b –S vswlan1
-S : vswitch name
-r : restart vswitch
-h : halt vswitch
Check status
# vparnet
Or
# nwmgr
Name: vPar27
ID: 27
Memory: 2GB
4 of 21 12/6/2020, 16:01
HP Integrity VM/vPar Administration https://vijaylondhe815.wordpress.com/2016/11/15/hp-integrity-vmvpar-...
Name: VFinDB
Memory: 4GB
-x active_config=true | false
-e : cpu entitlement in %
(cpu entitlement is a minimum percentage of the CPU processing power that is guaranteed to the guest)
Add vNIC with a specific vMAC to the vPar, backed by a port on vswlan1
5 of 21 12/6/2020, 16:01
HP Integrity VM/vPar Administration https://vijaylondhe815.wordpress.com/2016/11/15/hp-integrity-vmvpar-...
DIO pNIC must be defined as a DIO device in the database before assigning
# ioscan –fnClan
A virtual server is up to having 256 AVIO storage devices. All storage devices is addressed from virtual
PCI buses. There are total seven PCI bus on each virtual server. Each PCI bus has eight slots into which
virtual PCI adapters can be placed.
1,1,2: PCI bus (0-6), PCI slot (0-7) , scsi target (0-14)
# vparmodify –p 27 -a disk:aviostor::file:/BootDisks/vPar27boot
Example3: Add a virtual disks backed by VSP physical disk or SAN LUN, with virtual hardware path
1/0/2/0.3.0 to VM
# hpvmmodify –p 2 –a disk:avio_stor:1,2,3:disk:/dev/rdisk/disk5
Or
6 of 21 12/6/2020, 16:01
HP Integrity VM/vPar Administration https://vijaylondhe815.wordpress.com/2016/11/15/hp-integrity-vmvpar-...
# hpvmmodify –p 2 –a disk:avio_stor::lv:/dev/vg4vPars/vFinDBLV
# hpvmdevmgmt –l gdev
# hpvmdevinfo -Vp 27
# vparstatus -vp 27
# vparconsole -p 27
# hpvmconsole -p 27
Powering Up a vPar or VM
# vparboot -p 27
# vparconsole -p 27
OR
# hpvmstart -p 28
# hpvmconsole -p 28
# vparstatus -p 27
#vparreset -p 27 –
7 of 21 12/6/2020, 16:01
HP Integrity VM/vPar Administration https://vijaylondhe815.wordpress.com/2016/11/15/hp-integrity-vmvpar-...
OR
Powering Down VM
# hpvmstatus -p 2
# hpvmstop -p 2
OR
Removing vPar/VM
# vparremove -fp 27
# vpvmremove -P vFinDB
After creation of virtual machine set primary boot path for vm/vPar
# setboot -p
# setboot
# hpvmstatus –s or # vparstatus –A
8 of 21 12/6/2020, 16:01
HP Integrity VM/vPar Administration https://vijaylondhe815.wordpress.com/2016/11/15/hp-integrity-vmvpar-...
Example: Move a core from the vPars/VM CPU pool to the VSP CPU Pools
# vparhwmgmt -p cpu -d 1
-L = Subnet mask
# passwd vPar27
# hpvmmodify -p 27 –u vPar27:oper
OR
# hpvmmodify -p 27 -u vPar27:admin
9 of 21 12/6/2020, 16:01
HP Integrity VM/vPar Administration https://vijaylondhe815.wordpress.com/2016/11/15/hp-integrity-vmvpar-...
NOTE:
Virtual Storage devices are assigned to vPar/VM dynamically they are hot pluggable but Virtual
adapters are not hot pluggable.
# vparmodify -p 27 -a dvd:aviostor::disk:/dev/rdisk/disk28
# vparmodify –p 27 –a dvd:aviostor::file:/ISOs/image1.iso
# vparmodify –p 27 –a dvd:aviostor::null:/ISOs
vMP> in
vMP> ej
-Not recommended for OS installations, guest reboot will cause media to eject.
Installing Guest OS
-hpvmstart and vparboot automatically boot from DVD before a R/W boot disk is installed
# vparmodify -p 27 –a dvd:aviostor::disk:/dev/rdisk/disk28
# vparmodify –p 27 –a dvd:aviostor::file:/var/iso/image_1203_dvd1.iso
Network Installations
-Create an entry for the vPars vNIC into /etc/booptab file of Ignite server
10 of 21 12/6/2020, 16:01
HP Integrity VM/vPar Administration https://vijaylondhe815.wordpress.com/2016/11/15/hp-integrity-vmvpar-...
Examples:
# hpvmnvram –p 27 -m 3:2
-d Delete entry 4
# hpvmnvram –p 47 –d 4
Vswitch ports may be assigned to VLAN before being assigned to vPars or VM’s
# hpvmmodify –p 27 –a network:aviolan::vswitch:vParsw0:portid:1
OR
# vparmodify –p 27 –a network:aviolan::vswitch:vParsw0:portid:2
11 of 21 12/6/2020, 16:01
HP Integrity VM/vPar Administration https://vijaylondhe815.wordpress.com/2016/11/15/hp-integrity-vmvpar-...
# hpvmmodify –p 27 –x ram_dyn_type=any \
-x ram_dyn_min=512M \
-x ram_dyn_max=1G \
-x ram_dyn_target_start=512M \
-x dynamic_memory_control=1
Other Options:
OR
On guest machine or vm
# hpvmmgmt -V –l ram
# vi /etc/rc.config.d/hpvmconf
Guest Configuration
On VM
12 of 21 12/6/2020, 16:01
HP Integrity VM/vPar Administration https://vijaylondhe815.wordpress.com/2016/11/15/hp-integrity-vmvpar-...
# hpvmmgmt -l cpu
# hpvmmgmt –c 2
Note: However disabled vCPU still appear in hpvmsar command, to changing actual number of vCPU
in VM configuration requires VM to be down at the time of modification.
-a network:aviolan::vswitch:vswlan1
-a mem::2048
-x active_config=false
# hpvmstatus
Note:
While creating template active_config a ribute set to false, because it just a template so resources are not
reserved to template.
When cloning a vPar, the clone fails when non sharable devices are configured. To clone vPar, all
devices assigned to existing vPar must be sharable
When cloning a VM, warning message will displays when non sharable devices are configured, but the
clone continues.
Converting a vPar to VM
# vparstatus
# vparmodify –p 27 –x vm_type=shared
# vparstatus
Converting VM to vPar
13 of 21 12/6/2020, 16:01
HP Integrity VM/vPar Administration https://vijaylondhe815.wordpress.com/2016/11/15/hp-integrity-vmvpar-...
# hpvmstatus
# hpvmmodify -p 27 –x vm_type=vpar
# hpvmstatus
/var/opt/hpvm/guests/Name
/var/opt/hpvm/common/hpvm_mon_log
Powered-up processes
/opt/hpvm/lbin/hpvmapp –d vPar27
/opt/hpvm/lbin/hpvmapp –d vPar1
Vswitches processes
/opt/hpvm/lbin/hpvmnetd –c –I vparsw0 –n 0 –p
/opt/hpvm/lbin/hpvmnetd –c –I localnet
On vsp xterminal
# xglance
Glance has the logical system report this report provides a list of virtual servers and displays
14 of 21 12/6/2020, 16:01
HP Integrity VM/vPar Administration https://vijaylondhe815.wordpress.com/2016/11/15/hp-integrity-vmvpar-...
information of them
Performance agent collects all metrics for virtual systems every 5 minutes. Edit the file /var/opt
/perf/parm to enable logical system class to collect virtual machine performance data.
# hpvmsar –a
# hpvmsar –S vswlan1 -n 2
Other options
-M vCPU data
-A all guests
Requirements:
Virtual machine backing stores likes SAN Lun’s are visible to source and target VSP
DIO Devices are labelled identically on source and target VSP
vswitch names used by the vPar or VM are identical on both VSP
Source and destination VSP network properly configured.
Online migration requires both VSP are having same processor family.
HPVM_OVMM_ENCRYPT_BY_DEFAULT
HPVM_OVMM_ENCRYPT_ALGORITHM
15 of 21 12/6/2020, 16:01
HP Integrity VM/vPar Administration https://vijaylondhe815.wordpress.com/2016/11/15/hp-integrity-vmvpar-...
Example:
On both VSP verify that /etc/hosts resolves only host-hpvm-migr to the private network address.
On VSP1:
# /opt/hpvm/bin/secsetup -r VSP2-hpvm-migr
On VSP2
# /opt/hpvm/bin/secsetup -r VSP1-hpvm-migr
On VSP1:
#hpvmmigrate -s -h VSP2-hpvm-migr
# vi /etc/opt/ssh/sshd_config:
#banner /etc/issue
banner none
# /sbin/init.d/secsh stop
# /sbin/init.d/secsh start
16 of 21 12/6/2020, 16:01
HP Integrity VM/vPar Administration https://vijaylondhe815.wordpress.com/2016/11/15/hp-integrity-vmvpar-...
Perform Pre-Migration compatibility checking between the local VSP and target VSP
# hpvmmigrate –s -h target_IP_or_hostname
-D = Delete vpar from source VSP; default is not to delete and disable runnable status
-N = Assign new name to vpar on the target VSP. If the vpar has same name on target VSP then its
UUID must have same and marked not runnable on target VSP.
-d = power down the vpar after resources verification phase of the migration completed successfully.
For online migration of VM it is necessary to Enable Runnable status and Online Migration status of VM
# vparconsole –p 27 OR # hpvmconsole –p 27
# shutdown –h now
#hpvmnet
Find shared LUN to be used as backing store on virtual server that will be migrated.
Verify the boot devices
# ioscan -m dsf
17 of 21 12/6/2020, 16:01
HP Integrity VM/vPar Administration https://vijaylondhe815.wordpress.com/2016/11/15/hp-integrity-vmvpar-...
Determine if DNS is used on VSP by checking /etc/resolv.conf file. Edit /etc/hosts file to add 2 lines
for private IP address for virtual machines.
Example:
# vi /etc/nsswitch.conf
#ioscan - C lan
Edit /etc/rc.config.d/netconf file to add private ip address that are mentioned in /etc/hosts files
# /sbin/init.d/net start
# ifconfig lan#
# vi /etc/opt/ssh/sshd_config:
#banner /etc/issue
banner none
# /sbin/init.d/secsh stop
# /sbin/init.d/secsh start
On VSP1:
# /opt/hpvm/bin/secsetup -r VSP2-hpvm-migr
18 of 21 12/6/2020, 16:01
HP Integrity VM/vPar Administration https://vijaylondhe815.wordpress.com/2016/11/15/hp-integrity-vmvpar-...
On VSP2
# /opt/hpvm/bin/secsetup -r VSP1-hpvm-migr
On VSP1
# hpvmmigrate -o -s -h VSP2_hostname
On VSP2
# hpvmmigrate –o –s –h VSP1_Hostname
On VSP1
# hpvmcreate -P vsg3 -r 2G
# hpvmstart -P vsg3
On VSP2
# hpvmstatus
On VSP1
NPIV:
Node Port ID Virtualization is multiple unique number of WWN registered to the VSP fibre channel
19 of 21 12/6/2020, 16:01
HP Integrity VM/vPar Administration https://vijaylondhe815.wordpress.com/2016/11/15/hp-integrity-vmvpar-...
physical HBA port, so that virtual server get unique vPort on VSP’s physical HBA.
SAN knows the vPort directly, storage visibility to the virtual servers without VSP visibility.
It is a client server software that is used to assign vWWN to virtual server virtual fibre channel adapters.
# ioscan –fnNC fc
# /opt/fcms/bin/fcmsutil /dev/fclp1
# cd /opt/guid/utils
# ./guid_server_prepare.sh
# /opt/guid/sbin/guidconfig -h bl86-220
Prepare the client side of the GUIDmgr server to install public key
# /opt/guid/bin/guid_client_prepare -a
# /opt/guid/bin/guidmgmt -L wwn
# ioscan -C fc -P wwid
20 of 21 12/6/2020, 16:01
HP Integrity VM/vPar Administration https://vijaylondhe815.wordpress.com/2016/11/15/hp-integrity-vmvpar-...
# shutdown -h now
vMP> X
# vparconsole -p 27 -a hba:aviostor::npiv:/dev/fcd0
Advertisements
REPORT THIS AD
This entry was posted in HP-UX. Bookmark the permalink.
Blog at WordPress.com.
21 of 21 12/6/2020, 16:01