Successfully reported this slideshow.

Virtualization Best Practices-Tips and Tricks From Expert

2,996 views

Published on

Monash University,Malaysia

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Virtualization Best Practices-Tips and Tricks From Expert

  1. 1. Virtualization Best Practices- Tips and Tricks from Expert Lai Yoong Seng | Technical Consultant MVP Virtual Machine www.ms4u.info | laiys@redynamics.com
  2. 2. Session Objective and Takeaways• Objectives: • Virtualization Best Practice in term of • Planning , Deployment ,Management • 10 awesome Tip & Tricks • Some free tools to use..• Key Takeaways: Slid • Tip & Trick for a successful virtualization deployment
  3. 3. Evolution of the Datacenter
  4. 4. Planning
  5. 5. Q1:- Physical or Virtual? Running application in physical or virtual? or
  6. 6. Q2:-Virtualize or Not Virtualize ? Suitable candidate VM 4- 4 GB  Low processor  Low Memory VM 1- VM 3- 4 GB 14 GB VM 2- 4 GB Unsuitable candidate VS VM 1- 2 GB High processor High memory Parent Parent partition partition High network use (2 GB) (2 GB) External peripheral Physical Server (16 GB RAM) Physical Server (16 GB RAM)
  7. 7. Understand Your Application #1 Don’t virtualize everything ! Not ALL Applications are Inventory suitable to be Virtualized External Hardware (USB, dongle, etc) High Resource & Utilization Reporting Assessment Check Microsoft Support Policy Use Microsoft Assessment and Planning Toolkit (MAP) 6.0
  8. 8. Microsoft Assessment & Planning Toolkit
  9. 9. MAP Sample Result
  10. 10. Workload MigrationGuest Operating System Virtual Server 2005 Hyper-VWindows NT * √Windows 2000 * √Windows 2003 √Windows 2008 / √2008 R2Linux Distribution √ Suse Linux 10+ Red Hat 5.2+ Centos
  11. 11. Hardware Selection #2 CPU Memory Hard Disk Network Hardware  More  High RPM  More NIC assisted RAM the (15K rpm) the better Virtualization better  SAS  1Gbps/10Gb Hardware DEP  RAID 10 ps X64 Bit SLAT
  12. 12. Shared Storage Selection NAS DAS iSCSI SAN FC SAN Not  Small  Small /  High Supported scale Medium Performance  2–4 scale  Expensive nodes  Cheaper than FC SAN
  13. 13. Securable Determine processor suitability for virtualization http://www.grc.com/securable.htm
  14. 14. Coreinfo Check processor suitability for virtualization. New ! Windows 8 SLAT requirement http://technet.microsoft.com/en-us/sysinternals/cc835722
  15. 15. Stand-Alone or Cluster Hyper-V #3 Up to you to decide. But recommended, Cluster Hyper-V Stand alone Hyper-V Cluster Hyper-V
  16. 16. Deployment
  17. 17. Host Setup Consideration RAID ? Antivirus? Windows ? Teaming / MPIO?
  18. 18. Windows Server 2008 R2 EE, Microsoft Microsoft Capabilities DC Hyper-V Server 2008 Hyper-V Server 2008 R2 (Hyper-V) Number of Logical 24 64 64 processors supported Number of Sockets Up to 4 Up to 8 Up to 8 = EE | Up to 64 = DC (Licensing) Memory Up to 32 GB Up to 1 TB Up to 1TB VM Migration None Quick and Live migration Quick and Live MigrationNumber of VM’s per node 32 (server workloads) 32 (server workloads) Not applicable in a cluster 64 (VDI workloads) 64 (VDI workloads) Virtualization Rights for EE = 4 VM Windows Server 2008 0 0 DC = unlimited VM’s guests Number of running VM Up to 192, or as many as Up to 384 or as many as physical resources Up to 384, or as many as physical Guests physical resources allow allow resources allowWindows Server 2008 CALsRequired for Guest Server No No Yes OS Windows Server 2008 R2, Windows Server 2008 & SP2, Windows Server 2003 SP2, Windows 2000 Server, SLES Guest OS support 10, SLES 11, Red Hat Enterprise 5.2/5.3, Windows 7, Windows Vista SP1, SP2 & Windows XP SP3/SP2
  19. 19. Use Server Core #4 Reduce surface attack, less patch Not Recommended Recommended
  20. 20. Core Configurator GUI to manage in Server Core. Mainly on system settings on Windows. http://coreconfig.codeplex.com/
  21. 21. Server Core &Core Configurator
  22. 22. Avoid using the Root Partition #5 Avoid running services on the root partition (host machine) X Just Hyper-V Roles… DHCP DNS IIS Directory Services …
  23. 23. Leave Memory for the Root #6 Leave at *least* 512MBs of RAM to the root partition. 2GB or more recommended. DM: 4 GB VM 4- 4 GB DM: 4 GB VM 3- 4 GB Hyper-V (0 GB) Physical Server (16 GB RAM) Hyper-V Host 1
  24. 24. Different Types of Virtual Machine Disk
  25. 25. Use Fixed Disk- Virtual Machine #7 Good: Dynamic and Fixed Size VHDs perform about the same now. Still Best: Pass-Through is best for performance. The following charts are from WS08 R2: Lower is better Higher is better
  26. 26. Antivirus Configure exclusion Virtual Machine Configuration Directory Virtual Machine VHD Directory Snapshot Directory VMMS.EXE VMWP.EXE Cluster Storage Volume (CSV)
  27. 27. Management
  28. 28. Close the Window on Managers #8 Hyper-V Manager, VMConnect, Wallpaper & screen Saver sessions consume resources. Close or minimize the Hyper-V Manager & VM Connect. No Wallpaper & Screen Saver on Virtual MachineHyper-V Manager VMConnect Wallpaper/ScreenSaver
  29. 29. Disable Removable Media #9 Disable the removable media drives (floppy, optical drive, etc.) when not in use. Removable media is polled periodically.
  30. 30. Monitor VM CPU MEM #10Performance DISK NET Hyper-V Hypervisor Logical Processor(*) % Total Run Time For Physical Processors Hyper-V Hypervisor Virtual Processor(*) % Guest Run Time For Virtual Processors Healthy: less than 75% Warning: greater than 75% Critical: greater than 85% Avoid Task Manager! Avoid % Processor Time!
  31. 31. Dynamic Memory Performance Monitor Counter:- Hyper-V Dynamic Memory BalancerAverage Pressure Health:- less than 80% Warning: 80 –100% Critical:- more than 100% . Indicated running out of memory on Hyper-V host and virtual machine start to use virtual paging32
  32. 32. Hyper-V Best Practice Analyzer Download:- BPA:- http://support.microsoft.com/kb/977238 BPA Update: http://support.microsoft.com/kb/2485986
  33. 33. Best Practice Analyzer
  34. 34. VMM 2012 Management Tools  
  35. 35. Service Designer Template (VMM)
  36. 36. Let’s Recap Checklist Tip & Tricks Planning Understand Your Application  MAP Hardware Selection Deployment Stand Alone or Cluster? Management Server Core Avoid using Root Partition  BPA Leave Memory for Root  VMM Use Fixed Disk Close Windows Disable Removable Media Monitor VM Performance
  37. 37. Questions & Answers
  38. 38. ResourcesLai Blog’s – Virtualization & System Centerwww.ms4u.info Join Malaysia Virtualization User Group Go Facebook & Search “MVUG”Microsoft Server Software and Supported Virtualization Environmenthttp://support.microsoft.com/kb/957006Microsoft Assessment and Planning Toolkit (MAP)http://blogs.technet.com/b/configurationmgr/archive/2011/07/21/microsoft-assessment-and-planning-toolkit-6-0-now-available.aspxMicrosoft Virtualization Hyper-V Best Practicehttp://blogs.technet.com/b/iftekhar/archive/2010/05/25/microsoft-virtualization-hyper-v-best-practices.aspx
  39. 39. Win Cool Prizes!!! Complete the Tech Insights contests and stand a chance to win many cool prizes… Look in your conference bags NOW!!
  40. 40. We value your feedback!Please remember to complete theoverall conference evaluation form (inyour bag) and return it to theRegistration Counter on the last day inreturn for a Limited Edition Gift

×