05.11.2012 Views

Best practices for deploying Red Hat Enterprise Virtualization

Best practices for deploying Red Hat Enterprise Virtualization

Best practices for deploying Red Hat Enterprise Virtualization

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Linda Knippers, HP Distinguished Technologist<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


Deploying RHEV<br />

on ProLiant<br />

<strong>Best</strong> <strong>practices</strong> <strong>for</strong> <strong>deploying</strong> <strong>Red</strong> <strong>Hat</strong> <strong>Enterprise</strong><br />

<strong>Virtualization</strong> 3.0 on HP ProLiant servers<br />

Linda Knippers<br />

June 2012<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


Agenda<br />

<strong>Red</strong> <strong>Hat</strong> <strong>Enterprise</strong> <strong>Virtualization</strong> (RHEV) overview<br />

RHEV deployment components<br />

Deployment considerations<br />

Environment and software<br />

Servers, storage, and networking<br />

Example configuration<br />

Tuning and troubleshooting tips<br />

Additional resources<br />

3<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


<strong>Red</strong> <strong>Hat</strong> <strong>Enterprise</strong><br />

<strong>Virtualization</strong> Overview<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


<strong>Red</strong> <strong>Hat</strong> <strong>Enterprise</strong> <strong>Virtualization</strong><br />

Overview<br />

RHEV 3.0<br />

• <strong>Enterprise</strong> grade, centralized management and<br />

hypervisor <strong>for</strong> server and desktop virtualization<br />

• Industry leading per<strong>for</strong>mance, scalability and<br />

security infrastructure<br />

6<br />

• HP ProLiant servers demonstrate industry<br />

leading per<strong>for</strong>mance and scalability on 2, 4<br />

and 8 socket servers with SPECvirt<br />

• Sold and supported by HP in partnership with <strong>Red</strong><br />

<strong>Hat</strong><br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


<strong>Red</strong> <strong>Hat</strong> <strong>Enterprise</strong> <strong>Virtualization</strong><br />

RHEV Hypervisor<br />

RHEV-H standalone hypervisor<br />

Customized spin of RHEL with KVM<br />

• Small footprint<br />

• Just enough RHEL to run virtual machines<br />

• Security hardened image<br />

• Runs on all RHEL-certified HP servers with Intel<br />

VT/AMD-V CPUs<br />

− Requires in-distro drivers<br />

Easy to install, configure and upgrade<br />

• PXE boot, USB boot, CD, iLO Virtual Media or Hard<br />

drive<br />

7<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


<strong>Red</strong> <strong>Hat</strong> <strong>Enterprise</strong> <strong>Virtualization</strong><br />

RHEV Manager<br />

RHEV-M User Interface<br />

Search driven UI makes<br />

managing thousands of<br />

objects easy<br />

• Bookmarks, dynamic filters<br />

and other advanced GUI<br />

functions<br />

• Cross-correlate in<strong>for</strong>mation<br />

across users, VMs, hosts,<br />

applications, status etc.<br />

Can manage<br />

virtualization on<br />

RHEV-H and RHEL 6.2<br />

hosts<br />

8<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


RHEV Manager Architecture<br />

9<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


RHEV Data Centers<br />

RHEV manages multiple Data Centers<br />

Highest level container <strong>for</strong> all<br />

physical and logical resources<br />

Data center owns all other<br />

resources:<br />

• Clusters<br />

• Logical Networks<br />

• Storage Domains<br />

• Hosts<br />

• Virtual Machines<br />

12<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


RHEV Clusters<br />

Data Centers can have multiple clusters<br />

Clusters have hosts with one type<br />

of CPU<br />

• Intel or AMD<br />

Virtual machines can migrate to<br />

hosts within a cluster<br />

• All hosts within a cluster must be on the<br />

same logical networks<br />

• All hosts must have connectivity to the<br />

storage<br />

• Power, memory optimization and resiliency<br />

policies are per-cluster<br />

13<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


RHEV Logical Networks<br />

Defined per Data Center<br />

Logical networks usually defined<br />

by topology or function<br />

• Public vs. infrastructure<br />

Each cluster may have different<br />

logical networks<br />

• Must be associated with a NIC on each<br />

cluster host to be active<br />

• NICs can be VirtualConnect NICs<br />

RHEV-M defines default logical<br />

network (rhevm) <strong>for</strong> data center<br />

management<br />

• Non-default networks can use VLANs<br />

14<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


RHEV Storage Domains<br />

Defined per Data Center<br />

ISO domain <strong>for</strong> virtual machine<br />

installation media<br />

• Must be NFS<br />

Data domain <strong>for</strong> guest images,<br />

snapshots, templates<br />

• One type of data domain per data<br />

center<br />

− NFS, iSCSI, FC, local storage<br />

One host per data center<br />

manages its storage pools<br />

• Chosen by RHEV-M, fails over as<br />

necessary<br />

15<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


RHEV Hosts<br />

All HP ProLiant and BladeSystem servers certified with RHEL6.2<br />

Runs on all HP ProLiant and BladeSystem servers<br />

certified with RHEL6.2<br />

• Requires Intel VT/AMD-V enabled CPUs<br />

• One processor type per cluster<br />

• Can be running RHEV-H or RHEL6.2<br />

Runs a VDSM agent <strong>for</strong> managing and monitoring host<br />

Hosts are assigned to a cluster within a data center<br />

• Registered and managed through RHEV-M<br />

16<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


RHEV Virtual Machines<br />

Virtual Server or Virtual Desktop<br />

Associated with a Data Center and Cluster<br />

• Cores/sockets, memory and disk specified when VM is created<br />

• Multiple virtual disks, virtual NICs<br />

• VNC or Spice console<br />

• Configurable availability policies<br />

Virtual server operating systems:<br />

• RHEL 3.x, RHEL 4.x, RHEL 5.x, RHEL 6.x<br />

• Windows Server 2003 (R2), Windows Server 2008 (R2)<br />

Virtual Desktop operating systems:<br />

• Windows XP, Windows 7 (32 or 64 Bit)<br />

• RHEL 5.4, RHEL 5.5, RHEL 6<br />

17<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


Deployment Considerations<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


Environment Requirements<br />

For deployment and management<br />

<strong>Red</strong> <strong>Hat</strong> Network<br />

• RHEV uses RHN or local satellite server <strong>for</strong> provisioning RHEV-M and hypervisor hosts<br />

• Requires access to RHEV, JBOSS and RHEL supplementary channels<br />

Windows client with .NET Framework 4 <strong>for</strong> RHEV-M management interface<br />

• User portal can be Linux/Firefox<br />

• Management by Linux/Firefox is a technology preview in RHEV 3.0<br />

Static or consistent IP addresses <strong>for</strong> RHEV-M and hypervisor hosts<br />

• DHCP can be used <strong>for</strong> virtual machines<br />

• DNS service <strong>for</strong> <strong>for</strong>ward and reverse address resolution<br />

Installation images and licenses or entitlements <strong>for</strong> virtual machines<br />

19<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


Network Considerations<br />

Capacity and availability<br />

Determine logical network requirements<br />

• One (rhevm) is created the default<br />

• Others can be defined per usage/type (storage, VMs, display)<br />

• Must be assigned to a NIC on each node in the cluster<br />

− May be paired <strong>for</strong> HA and bandwidth<br />

• Consider VLAN configuration<br />

If using Virtual Connect, configure and allocate<br />

virtual NICs to servers<br />

• Manage availability through VC<br />

• Allocate VC resources to match workload requirements<br />

Consider network availability requirements <strong>for</strong> the entire infrastructure<br />

• Losing a connection to a logical network loses a host<br />

• Need HA at the switch level<br />

20<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


Storage Considerations<br />

Defining storage domains<br />

ISO domain must be NFS<br />

• NFS server can be RHEV-M host, NFS server or NAS<br />

• ISO domain can be shared across data centers<br />

Each data center can only support one type of data<br />

domain<br />

• NAS using NFS<br />

− All objects are files<br />

• SAN - LUNs that may be accessed via FC or iSCSI<br />

− Managed by RHEV with LVM<br />

− Each virtual disk, template or snapshot is a logical volume<br />

• Local – Leverages the local disks of the hosts<br />

• Data domains cannot be shared across data centers<br />

21<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


Storage Considerations<br />

Managing storage domains<br />

Consider resource provisioning options<br />

• Use pre-allocated storage <strong>for</strong> virtual machines with high I/O workloads<br />

• Over-provisioning with sparse allocation is useful <strong>for</strong> low I/O workloads<br />

Take advantage of HP storage capabilities<br />

• Thin provisioning provided by HP storage is recommended<br />

• Use RHEV thin provisioning when not available in storage backend<br />

Consider storage availability<br />

• Losing a NIC or HBA loses a host<br />

• HA at the switch, NAS server and array level recommended<br />

22<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


Server Considerations<br />

Determine server or RH cluster <strong>for</strong> hosting RHEV-M<br />

components<br />

• Components can be deployed in virtual machines hosted on a RH cluster<br />

Determine server <strong>for</strong> RHEV Hosts<br />

• Determine type of host<br />

23<br />

− RHEV clusters must be of same CPU type<br />

• Intel separate from AMD<br />

• Evaluate RHEV recommended hardware configuration<br />

• Consider NIC count and PCI slots<br />

− Connectivity to logical networks and storage domains<br />

− Use VirtualConnect <strong>for</strong> configuration flexibility<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


Choosing the Hypervisor Host<br />

RHEV-H or RHEL 6.2 with KVM<br />

RHEV-H<br />

Small footprint hypervisor<br />

• Easy to install, no add-ons required<br />

• No update, re-image instead<br />

• Included in RHEV subscription (up to 6 sockets)<br />

• Only supports plat<strong>for</strong>ms with in-distro drivers<br />

24<br />

− May be a delay in support on new plat<strong>for</strong>ms<br />

• Only runs RHEV vdsm agent<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.<br />

RHEL 6.2 with KVM<br />

Full RHEL release<br />

• Use hypervisor host option, add vdsm agent<br />

• Uses standard RHEL update process<br />

• RHEL subscription per host<br />

• Supports plat<strong>for</strong>ms with in-distro drivers or<br />

requiring additional drivers<br />

− Using driver update process<br />

• Supports standard SNMP agents and AMS<br />

• Requires root ssh access from RHEV-M host


Server Configuration<br />

25<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.<br />

ProLiant plat<strong>for</strong>m configuration<br />

BIOS settings<br />

• Enable virtualization<br />

• Configure HP Dynamic power management<br />

Configure iLO account <strong>for</strong> host power<br />

management by RHEV<br />

• Choose the right iLO agent when adding a host<br />

Host deployment<br />

• Can use iLO Virtual Media, physical media or PXE<br />

Consider host monitoring choices


HP iLO Configuration<br />

Required <strong>for</strong> VM high availability<br />

Define when adding a ProLiant<br />

server through RHEV-M<br />

• Enable Power Management<br />

26<br />

− Power on/off management<br />

• Address is iLO IP address<br />

• User Name is authorized iLO account<br />

name<br />

• Password is <strong>for</strong> iLO account<br />

• Type:<br />

− “ilo” <strong>for</strong> iLO/iLO2<br />

− “ilo3” <strong>for</strong> iLO3/iLO4<br />

• Use Test button to verify setup<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


Major internet media and content provider in Japan<br />

Gaming applications require dynamic resource management<br />

Adjust resources allocated to a game based on its popularity<br />

<strong>Red</strong>uced hardware and power costs by moving to HP BladeSystem<br />

Consolidated 900 servers and 100 VMs onto 400 servers and 400 VMs<br />

<strong>Red</strong>uced power consumption by 30%<br />

• BL465G7 <strong>for</strong> high core counts and large memory capacity<br />

• VirtualConnect <strong>for</strong> simplified wiring and fewer switches<br />

• Multiple C3000 enclosures to meet government power requirements<br />

− Ability to power off servers and VMs was key to power savings<br />

• P4500G2 SAN with HP 5820 switches<br />

<strong>Red</strong>uced software costs by moving from VMware to RHEV<br />

Socket-base subscription worked best with high core-count servers<br />

27<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


Hardware configuration<br />

HP ProLiant BL465G7<br />

BladeSystem C-class Flex10<br />

28<br />

10G<br />

iSCSI<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.<br />

HP A5820<br />

HP P4500G2 SAN<br />

HP ProLiant DL360G7


Tuning Tips<br />

Tuning<br />

If running RHEL/KVM hosts, consider kernel boot<br />

parameters used by RHEV-H<br />

• scheduler=elevator<br />

Monitor host and VM guests<br />

rhev-agentd on VM guests<br />

scheduler=noop on RHEL guests<br />

HP SIM <strong>for</strong> monitoring RHEL/KVM hosts<br />

30<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


Troubleshooting Tips<br />

Check the logs<br />

RHEV-M GUI events log<br />

Most problems are clearly described<br />

Main RHEVM log:<br />

• /var/log/rhevm/rhevm.log<br />

• Timestamps will be in the timezone of the OS (eg localtime)<br />

Main Hypervisor logs:<br />

• /var/log/vdsm/vdsm.log<br />

• /var/log/vdsm/libvirt.log<br />

• Timestamps will be in UTC<br />

Time difference between manager and hypervisor may need to be taken<br />

into account when following task flows from RHEVM to RHEVH<br />

31<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


Troubleshooting Tips<br />

Storage<br />

Concentrate on the SPM host<br />

• Or host attempting to become SPM if problem relates to acquiring SPM<br />

• Current SPM host may not have been the SPM at the time of a reported problem:<br />

− Search rhevm.log <strong>for</strong> 'starting spm on' to find SPM at the time of the problem<br />

RHEV storage operations use standard RHEL commands<br />

Typical storage troubleshooting applies<br />

• Storage commands can be run from hypervisor command line<br />

− multipath, iscsiadm, showmount/mount/rpcinfo, cat /proc/scsi/scsi, cat /var/log/messages, etc<br />

• Storage domains on iSCSI/FC data centers are LVM volume groups / logical volumes so typical LVM<br />

troubleshooting applies:<br />

− vgscan, lvs, vgchange, cat /etc/lvm/{archive,backup}/, etc<br />

32<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


Test Drive HP Insight Online<br />

Win 1 of 12 HP Envy<br />

Spectre Ultrabooks<br />

and Monster Beats<br />

headset<br />

Demo #563<br />

NO PURCHASE NECESSARY & PURCHASE WILL NOT INCREASE CHANCE OF WINNING. OPEN ONLY TO Discover 2012 – Las Vegas ATTENDEES; LEGAL RESIDENTS OF 50 UNITED STATES, & THE DC,<br />

18 YEARS OLD. Void in Puerto Rico, U.S. territories, possessions and where prohibited by law. Employees of Sponsor, its subsidiaries, affiliates, their immediate family and household members, as well as public<br />

sector employees, are not eligible. Entry constitutes agreement to rules & Sponsor’s decisions. Participants enter by submitting lead inquiry to HP’s booth. Winners chosen by random drawing daily on or about June<br />

4-6, 2012. One entry per person. Winners will be notified via email and may have to sign and return an eligibility affidavit & liability release, unless prohibited. If eligible winners fail to sign and return required<br />

documents, prize may be <strong>for</strong>feited. Prizes: One (1) of twelve (12) HP Envy Spectre 14 and Dr. Dre Beats Headsets (ARV $1699.00 each). No substitution, cash redemption or transfer of prizes, except in Sponsor’s<br />

35 © Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

discretion. Taxes are winners’ responsibility. Odds of winning depend on number of entries. Entrants release and hold harmless Sponsor, its subsidiaries, affiliates, and their officers, directors, employees, agents<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.<br />

from any claim arising out of entry or prize receipt or use. Sponsor: Hewlett-Packard Company, Attn: HP 11445 Compaq Center Drive W, Houston, TX, USA 77070. Use this address <strong>for</strong> inquiries or requests <strong>for</strong><br />

winner’s list.


Terms and Conditions<br />

36<br />

NO PURCHASE NECESSARY & PURCHASE WILL NOT INCREASE CHANCE OF WINNING. OPEN<br />

ONLY TO Discover 2012 – Las Vegas ATTENDEES; LEGAL RESIDENTS OF 50 UNITED STATES, &<br />

THE DC, 18 YEARS OLD. Void in Puerto Rico, U.S. territories, possessions and where prohibited by law.<br />

Employees of Sponsor, its subsidiaries, affiliates, their immediate family and household members, as well<br />

as public sector employees, are not eligible. Entry constitutes agreement to rules & Sponsor’s decisions.<br />

Participants enter by submitting lead inquiry to HP’s booth. Winners chosen by random drawing daily on<br />

June 4-6, 2012. One entry per person. Winners will be notified via email and may have to sign and return<br />

an eligibility affidavit & liability release, unless prohibited. If eligible winners fail to sign and return required<br />

documents, prize may be <strong>for</strong>feited. Prizes: One (1) of twelve (12) HP Envy Spectre 14 and Dr. Dre Beats<br />

Headsets (ARV $1699.00 each). No substitution, cash redemption or transfer of prizes, except in<br />

Sponsor’s discretion. Taxes are winners’ responsibility. Odds of winning depend on number of entries.<br />

Entrants release and hold harmless Sponsor, its subsidiaries, affiliates, and their officers, directors,<br />

employees, agents from any claim arising out of entry or prize receipt or use. Sponsor: Hewlett-Packard<br />

Company, Attn: HP 11445 Compaq Center Drive W, Houston, TX, USA 77070. Use this address <strong>for</strong><br />

inquiries or requests <strong>for</strong> winner’s list.<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.


37<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.<br />

Download Now<br />

Get the Mobile App<br />

Download content from this session<br />

with the free Mobile App.<br />

Text the word “Discover” to 474747<br />

or<br />

m.hp.com/events


Find out more<br />

38<br />

Attend these sessions<br />

• HOL3093, Using HP’s<br />

Software Delivery<br />

Repository to manage<br />

your ProLiant Linux,<br />

Tues 11:00, Wed 11:00<br />

• TB3092, Why HP <strong>for</strong> Linux, Wed 4:00<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.<br />

Visit these demos<br />

• TB2301, Building a private cloud: converged infrastructure<br />

with <strong>Red</strong> <strong>Hat</strong> and HP CloudSystem Matrix, Thur 11:15<br />

After the event<br />

• <strong>Red</strong> <strong>Hat</strong> Booth (410) • Contact your sales rep<br />

• Visit the website<br />

www.hp.com/go/proliantrhel<br />

www.hp.com/solutions/rhev<br />

Your feedback is important to us. Please take a few minutes to complete the session survey.


Thank you<br />

© Copyright 2012 Hewlett-Packard Development Company, L.P.<br />

The in<strong>for</strong>mation contained herein is subject to change without notice.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!