Configure and Manage HP Virtual Machines
Configure and Manage HP Virtual Machines
Configure and Manage HP Virtual Machines
Machines
Lab Guide
Lab Guide
Contents
Introduction.............................................................................................. 3
New features and enhancements.............................................................4
Lab objectives.......................................................................................... 5
Resources................................................................................................. 7
Using the HP Virtual Labs.........................................................................8
What is HPVL?.............................................................................. 8
Verifying prerequisites.......................................................................8
Hardware and software requirements..........................................8
Testing lab access..............................................................................9
Accessing lab equipment...........................................................11
Exiting the lab............................................................................11
Getting help...............................................................................12
Notes for this lab.......................................................................12
Lab 7 — VM Access
VM Access.............................................................................................. 29
VM Access.............................................................................................. 29
Objectives........................................................................................ 29
Virtual Machine console...................................................................29
Task 1: Starting a VM using the console.....................................29
Task 2: Using Virtual MP shortcuts.............................................30
ii 14.21
Lab Guide
12.41 3
Introduction
HP Integrity Virtual Machines (VM) is a soft partitioning and virtualization
technology that provides operating system isolation, with sub-CPU
allocation granularity and shared I/O. Integrity VM can be installed on an
Integrity server, Integrity server blade, or hardware partition (nPartition)
running HP-UX. The Integrity VM environment consists of following two
types of components:
VM Host
Virtual machines (also called guests)
The VM Host virtualizes physical processors, memory, and I/O devices. It
allows you to allocate them as virtual resources to each VM.
VM are abstractions of real, physical machines. The guest operating
system runs on the VM just as it would run on a physical Integrity
server, with no special modification.
Integrity VM provides a small guest software package that aids in local
management of the guest's VM.
Lab objectives
After completing the labs, you should be able to:
Describe Integrity VM overview
Create a vswitch
Start a vswitch
6 14.21
Lab Guide
Install an operating system using a virtual DVD
Resources
You can download the following related documents from Business
Support Center Manuals.
HP Integrity Virtual Machines 4.3 System Administrator's Guide:
Installation, Configuration, and Administration
HP Integrity Virtual Machines 4.3: Release Notes
Ignite-UX Reference
Ignite-UX Installation Booting White Paper
Using Ignite-UX with Integrity VM White Paper
HP-UX Installation and Update Guide
HP-UX Reference
Managing Serviceguard
HP Auto Port Aggregation (APA) Support Guide
Using HP-UX VLANS
HP Integrity Virtual Machines Manager 4.1 Software: User Guide
HP Integrity Virtual Machines Manager 4.1 Software: Release Notes
HP Insight Dynamics —VSE 6.2: Integrity CMS Installation and
Configuration Guide
HP Insight Global Workload Manager 6.2 Software: User Guide
HP Insight Virtualization Manager 6.2 With Logical Server
Management: User Guide
HP Insight Capacity Advisor 6.2 Software: User Guide
HP Integrity Essentials Global Workload Manager: Workload
Management for HP Integrity Virtual Machines (a white paper)
The website Business Support Center Manuals also includes technical
papers about using virtual machines.
For a time-limited evaluation version of Integrity VM, search HP Business
Support Center (BSC).
8 14.21
Lab Guide
Follow the links to the Internal Program Site and Self-Paced Labs. This
lab has been moved to the External HPVL, so use the External HPVL
Scheduler to make a system reservation. The lab is also available for a
while longer on the Internal HPVL.
Verifying prerequisites
Verify that the PC you are using to access HPVL meets the following
requirements:
Note
Windows patch KB884020 required for XP SP2—available at
http://support.microsoft.com/?id=884020
Windows 2000
Windows ME
Windows 98
Note
Additional requirements
As an additional requirement:
You must have network access to the public Internet and specifically
to https://hpvl.usa.hp.com/
If you are behind a firewall (or accessing the Internet via a web
proxy gateway), you have permission to access SSL-protected sites
from outside your Intranet.
For Windows 7, Windows Vista, and Windows XP operating systems,
local administrative privileges are required to install ActiveX
components. ActiveX components are installed the first time you
connect to the HPVL.
Known incompatibilities
Following are the known incompatibilities:
Norton Firewall 2003 might be needed to be disabled
Windows XP Service Pack 2 requires Windows patch KB884020. This is
available at http://support.microsoft.com/?id=884020
10 14.21
Lab Guide
Note
You may be required to reboot after the installation on
Win95/98/ME and Win NT 4.0 systems. Installation on Win2K
and Win XP computers is completely transparent.
12 14.21
Lab Guide
8. Next, you can view the details and other equipment access
information.
Getting help
HPVL Help Desk
To get assistance, please use the form at:
http://hpvl.usa.hp.com/ticket.htm
Caution
Do not copy-paste commands.
14 14.21
Lab Guide
Objectives
After completing this lab, you should be able to:
Identify hardware & software requirements (Host)
Identify hardware & software requirements (for each virtual
machine)
Verify Integrity VM installation
Apply installation sanity check
Software:
Integrity VM SW (T2767CC)
Product includes HPUX 11i v3 (0505), Foundation OE for Host system
VMs run off-the-shelf HPUX 11i v3
Patch levels required:
PHSS_42973 1.0 HPVM B.04.30 CORE PATCH
16 14.21
Lab Guide
PHSS_42974 1.0 HPVM B.04.30 HPVM-VMSGTK
10. Use the following command to find and verify if HPVM bundle is
installed:
# swlist -l bundle | grep T2767CC
11. Use the following command to find and verify if HPVM product
patches are installed:
# swlist -l product | egrep '42973|42974'
12. Alternatively, you can use the bdf command to list the mounted file
systems:
# bdf
18 14.21
Lab Guide
13. HPVM installation has several dependencies. To install these
dependencies, use the following command.
For example, while installing T2767CC, dependencies have to be
installed.
# swlist -l product -d @
10.99.0.251:/hpvl_depot/ignite/Rel_B.11.31VM43
Note
Because of pre-installed packages, actual installation has not been
shown. The steps show how to check and verify the installed
packages which are needed for HPVM 4.3.
Verify SD installation
1. Use the verify command to verify SD installation.
# swverify T2767CC
20 14.21
Lab Guide
Resource Management
Lab 2
Objectives
After completing this lab, you should be able to:
Describe basic networking allocation for a virtual machine
Identify mass storage entities in a virtual machine
Define memory resource management
Outline CPU resource management and planning
Networking
You can allocate virtual network devices or virtual network interface
cards (vNICs) to the guest when you create the guest using the
hpvmcreate command or when you modify an existing guest using
the hpvmmodify command.
vNICs are added using the same option that is used to add storage
devices, but the format of the argument to the command option is
different. To add a vNIC to a guest, use the following command
option:
-a network:adaptertype:bus,device,mac-addr:vswitch:vswitch-
name:portid:portnumber
Mass storage
Several entities may be used for virtual SCSI device(s).
File on the Host – flexible deployment
Logical Volume – better performance
Disk (Partition) – best performance, least flexible
LUN/SAN – flexibility & SAN features
Any virtual SCSI may be ‘boot disk’
Independent of target entity it maps to
14.21 [Module, #], –21
Configure and Manage HP Virtual Machines Virtual Lab
Target entities may not be modified after starting VM
Memory
Memory Resources Management:
Each VM has physical memory allocated when it starts
Memory is locked down, and isolated from other VMs on the Host
Cannot be paged out – paging done by VM
Nearly all virtual memory access operations performed by VM’s
operating system
Special memory actions (e.g., TLB miss) assisted by Host
CPU
CPU Resource Management & Planning:
A VM may have multiple virtual CPUs
Each VM has a CPU entitlement
22 14.21
Lab Guide
Virtual Switch
Lab 3
Objectives
After completing this lab, you should be able to create, start, shut down,
and remove a Virtual Switch (vswitch).
Note
24 14.21
Lab Guide
2. The hpvmnet CLI also displays state of vswitches on the Integrity VM
Host.
# hpvmnet
16. The vswitch is now running. Use the hpvmnet command to display its
new state along with the MAC address of the physical device.
# hpvmnet
18. The vswitch is now halted and not available. Use the hpvmnet
command to confirm:
# hpvmnet
26 14.21
Lab Guide
Virtual Machine
Lab 4
Objectives
After completing this lab, you should be able to:
Create a Virtual Machine (VM)
Check the status of a VM
Task 1: Creating a VM
Use the following command to create a basic VM.
# hpvmcreate –P vm01 –e 17
20. Use the following command to examine detailed information for the
new VM:
# hpvmstatus –P vm01
28 14.21
Lab Guide
Virtual NIC
Lab 5
Objectives
After completing this lab, you should be able to add a virtual network
device and check its status.
Note
Never modify the guest configuration files directly. Always use
the Integrity VM commands to modify virtual devices and
virtual machines. Failure to follow this procedure can result in
unexpected problems when guests are started.
# hpvmstatus –P vm01
30 14.21
Lab Guide
Objectives
After completing this lab, you should be able to:
Add a virtual storage device
Check the status of virtual storage device
32 14.21
Lab Guide
VM Access
Lab 7
Objectives
After completing this lab, you should be able to:
Start the virtual machine (VM) using the console
Apply Virtual MP Shortcuts
2. Shortcut 2: The Enter menu item or [Q] to Quit option allows you to
start the server. Type ON to start the server/VM.
34 14.21
Lab Guide
36 14.21
Lab Guide
Objectives
After completing this lab, you should be able to:
Identify scenarios for operating system installation on a virtual
machine (VM)
Attach an ISO image using a virtual DVD
Apply continuing DVD installation
OS Installation on VM – Scenarios
Scenarios vary based on installation sources:
1. Ignite-UX Server
21. Virtual DVD (iso file)
22. Virtual DVD (physical DVD)
Now that you have some background, you can now go through the guest
operating system installation for virtual DVD (iso file) scenario.
HP Integrity HP-UX 11i v2 HP-UX 11i v2 HP-UX 11i HP-UX 11i HP-UX 11i
Servers May 2005 September v2 v2 v2
through 2006 December December December
December through 2007 2007 2007
2007 December
2007
HP Integrity HP-UX 11i v2 HP-UX 11i v2 HP-UX 11i HP-UX 11i HP-UX 11i
server May 2005 September v2 v2 v2
blades through 2006 December December December
December through 2007 2007 2007
2007 December
2007
HP Integrity Not Not HP-UX 11i HP-UX 11i HP-UX 11i
server supported supported v2 v2 v2
blades (i2– December December December
based)1 20072 2007 2007
HP Integrity Not Not Not HP-UX 11i HP-UX 11i
Superdome supported supported supported v2 v2
21 December December
2007 2007
HP Integrity Not Not Not HP-UX 11i HP-UX 11i
rx2800 i2 supported supported supported v2 v2
Servers December December
2007 2007
HP-UX 11i v3
HP Integrity HP-UX 11i v3 HP-UX 11i HP-UX 11i HP-UX 11i HP-UX 11i
Servers March 2007 v3 March v3 v3 March v3 March
through 2007 September 2008 2010
September through 2007 through through
2008 September through Septembe Septembe
2009 March r 2010 r 2011
2010
HP Integrity Not HP-UX 11i HP-UX 11i HP-UX 11i HP-UX 11i
server supported v3 March v3 v3 March v3 March
blades 2007 September 2008 2010
through 2007 through through
September through Septembe Septembe
38 14.21
Lab Guide
2009 March r 2010 r 2011
2010
40 14.21
Lab Guide
Virtual disk, with virtual bus (0), dev(1), target(2) explicitly specified
and mapped to logical volume:
-a disk:scsi:0,1,2:lv:/dev/vg01/rlvol2
Note
Target storage must not be modified on host or the store
system while the VM is on.
Task 1: Locating and attaching an iso image
A Virtual File DVD is an emulated SCSI DVD with virtual media that
comes from a VM Host ISO file. The VM Host ISO file is specified using
the absolute pathname to the ISO file. The file can be on a VxFS file
systems locally mounted on the VM Host.
To locate and attach an iso image, perform the following steps:
1. Use the ls command to view files and directories:
# ls
3. Use the ls command to view files and directories in the iso images:
# ls
24. To check the status of the VM, use the following command:
#hpvmstatus –P vm01
Note
42 14.21
Lab Guide
Defining virtual DVD using physical DVD option is not
available.
Note
If virtual machine is already ON, you need to reboot it using
reset command or using PC-> OFF -> y and pressing Enter in
Console menu.
3. To switch on the VM, enter on for the Enter menu item or [Q] to Quit
option.
4. To power up the system, enter Y for the System will be powered on.
Confirm? (Y/N) option.
44 14.21
Lab Guide
6. In the Please select a boot option, select EFI Shell [Built-in]. The
details are displayed.
Note
Use ^ and v to change the option(s). Press Enter to select an
option.
Note
If the above screen comes after starting the Virtual Machine
without interruption, then skip step 7 to 9.
46 14.21
Lab Guide
9. Next, type install.efi and press Enter to start the booting process.
10.Once the booting process is completed, you will need to change the
terminal window dimensions as suggested to 80x24.
48 14.21
Lab Guide
50 14.21
Lab Guide
13.In the HP-UX installation menu, select Install HP-UX and press Enter
to continue with the typical HP-UX installation process.
52 14.21
Lab Guide
18.The Configuration screen loads with the relevant details displayed in
the correct sequence.
54 14.21
Lab Guide
19.Once the configuration is completed, the Installation screen displays
details of the installation packages.
56 14.21
Lab Guide
22.Once the VM is re-booted, the operating system installation is
completed and displayed.
23.The Welcome to HP-UX screen appears. For Are you ready to link this
system to a network, type n and press Enter.
58 14.21
Lab Guide
25.Next, the System name screen appears. Type the system name and
press Enter.
27.Next, the time zone enabler screen is displayed. For the Enter the
number for your location <1-7> then press [Enter] option, select
your preferred time zone and press Enter.
60 14.21
Lab Guide
28.In the Select your time zone from the following list: option, select
accordingly, type y, and press Enter.
29.Once you have selected your preference, type y and press Enter in
the displayed screen.
30.In the next screen, type y to set the root password and then press
Enter.
31.Next, type your selected password and re-enter for verification. Next,
press Enter.
62 14.21
Lab Guide
33.In the confirmation screen, type y and press Enter.
35.Next, set the local language by typing the number assigned to your
preferred language and press Enter.
64 14.21
Lab Guide
37.Next, simply press Enter to continue.
66 14.21
Lab Guide
Objectives
After completing this lab, you should be able to:
Monitor VM activity
Use tools available in a VM
68 14.21
Lab Guide
2. You can use the -C option to change the physical network interface
card (pNIC) the guest has in use. To login to the VM and examine the
output, use the following command:
# lanscan
70 14.21
Lab Guide
6. Use the following command to see the CPU utilization:
# top
9. After you make this change to the hpvmconf file, enter the following
commands to determine the PID for the monitor log daemon and to
kill it:
# cat /var/run/hpvmmonlogd.pid
72 14.21
Lab Guide
Troubleshooting Issues in a VM
Lab10
Objectives
After completing this lab, you should be able to:
Troubleshoot virtual machine (VM) storage device configuration &
specification problems
Troubleshoot VM network device configuration & specification
problems
Troubleshoot VM commands in HPVM’s command log
Troubleshoot the VM monitor log file
Troubleshooting VM issues
The Integrity VM V4.3 release supports the use of both legacy and agile
devices in guests. It is not necessary to convert guests to use strictly
agile devices. If, however, problems occur with guests using multipath
solutions that are based on legacy devices, change the backing device
to use the equivalent agile device. Make sure there are no
incompatibilities at this time.
You can use the hpvmcollect command on the VM Host or on the guest
to collect Integrity VM information that is useful in analyzing system
problems. The options available for the hpvmcollect command on the
VM Host are different from those available on guests.
The hpvmcollect command creates a directory called
hpvmcollect_archive in your current directory (if it does not already
exist) and then collects information about the VM Host crash dump. The
information is then put into a tar file format (if there is a crash dump) or
tar.gz file format (if there is no crash dump). Do not modify the guest
configuration before running the hpvmcollect command.
The table below describes the options for the hpvmcollect command on
the VM Host.
Option Description
-P vm-name Specifies the virtual machine name, where vm-name is
the name of the virtual machine.
-p vm-number Specifies the virtual machine number, where vm-number
is the number of the virtual machine.
74 14.21
Lab Guide
3. Virtual disk devices defined with storage that does not exist, may not
start. Use the following command to view status of such devices.
# hpvmstart –P bogusvm
76 14.21
Lab Guide
78 14.21
Lab Guide
Appendix A
Overview of changes in VMs
The following list contains changes in support in future releases of
Integrity VM:
VIO is deprecated in v4.3.
VIO support is deprecated in v4.3 and will be dropped in the next
major release of Integrity VM, so you should begin planning to
convert from VIO to AVIO at your earliest opportunity.
To determine if your VMs are using VIO, run hpvmstatus -d for all
your guests. Look for storage devices that use scsi and look for
network devices that use LAN:
# hpvmstatus -P guestname -d | grep -w scsi
# hpvmstatus -P guestname -d | grep -w lan
80 14.21
Lab Guide