Using Microsoft Virtualization Technologies: Today and Planning for TomorrowRonald Beekelaar Beekelaar Consultancy ronald@beekelaar.com Virtualization Seminar - Moscow - 22-Mar-2007
Self-Service PortalProvisioning
User selects from list of templates Administrator has associated with that user
81
Self-Service PortalProvisioning
New virtual machine ready for use, Terminal Services connection information automatically emailed to user.
82
OperationsBest practices
Disable VM time synchronization when VMs are in a domain Does not use time zones ! When copying VMs: Run Sysprep, or Newsid (sysinternals.com) Do not include save state (.vsv) file Stop VS when shutting down host computer Use script for UPS
83
Performance Optimizations
Virtual Server is usually faster than Virtual PC Except for video (screen) handling Disk Three possible disk drivers in guest (in order of speed): 3. Windows SCSI driver (slowest) 2. IDE driver (=only option for Virtual PC) 1. VM Additions SCSI driver (fastest)
84
Move disk from VPC to VSFrom IDE to SCSI
Issue: How to boot IDE vhd as SCSI vhd Steps 1. In VS console: Add SCSI Adapter (ID 7) to VM Leave boot disk as IDE disk 2. Startup VM Found new hardware: Adaptec AIC-7870 PCI SCSI Adapter Needs Win2003 CD for aic78xx.sys (56 KB) Now you can boot as SCSI, but this is a slow SCSI driver.
85
Move disk from VPC to VSFrom IDE to SCSI
3. In running VM: Open Device Manager Right-click Adaptec / Update Driver Install from a specific location / Have Disk Browse to C:\Program Files\Virtual Machine Additions Installs SCSI driver: Microsoft Virtual Machine PCI SCSI Now the fast SCSI driver is loaded 4. In VS console: Swith boot disk from IDE to SCSI adapter Virtual PC can still boot from disk as IDE
86
PerformanceMost important tips
Install VM Additions in all VMs Consider latest VM Additions Use enough memory per VM To avoid paging inside VM Plan capacity of running VMs Total disk usage Total CPU usage Total network bandwidth needed
87
PerformanceOn host
On host, for disks: Use multiple physical disks Use SCSI host disks Defragment host disk Use NTFS Use NTFS compression - maybe On host, use multiple network adapters Unbind Virtual Machine Network Service from dedicated host adapter On host, exclude .vhd from virus-scanning On host, do not use /3GB in boot.ini VMs use non-paged kernel memory
88
PerformanceIn guest
VM configuration Use SCSI disk for vhd-file Ensure VM Additions SCSI driver is used Use fixed disk instead of dynamic disks Guest configuration Disable unnecessary services: Indexing, tracing, auto-search for network resources, etc Defragment guest disk Not when using differencing disk
89
For more informationUseful links
Weblogs Virtual PC Guy (Ben Armstrong - MS) http://blogs.msdn.com/Virtual_PC_Guy/ Virtual Vista (Mike Kolitz - MS) http://blogs.msdn.com/mikekol/ Windows Virtualization (John Howard - MS) http://blogs.technet.com/jhoward/ Scripts TechNet www.microsoft.com/technet/scriptcenter/scripts/vs/default.mspx
90
For more informationWhitepapers
Virtualization Licensing Brief www.microsoft.com/licensing/resources/volbrief.mspx Using iSCSI with Virtual Server 2005 R2 http://go.microsoft.com/fwlink/?LinkId=55646 Virtual Server Host Clustering whitepaper and script http://go.microsoft.com/fwlink/?LinkId=55644 Virtual Server Guest Clustering www.microsoft.com/technet/prodtechnol/virtualserver/deploy/ cvs2005.mspx Virtual PC for Development and Debugging www.microsoft.com/windows/virtualpc/techinfo/debug.mspx
91
For more informationDownload software
Virtual Server 2005 R2 EE www.microsoft.com/windowsserversystem/virtualserver/software/ default.mspx Virtual Server 2005 R2 SP1 Beta2 connect.microsoft.com - sign-up for beta Virtual PC 2004 SP1 www.microsoft.com/windows/virtualpc/downloads/sp1.mspx Virtual PC 2007 RC (including VM Additions 13.802) connect.microsoft.com - sign up for beta Linux VM Additions www.microsoft.com/windowsserversystem/virtualserver/ evaluation/linuxguestsupport/default.mspx VSMT http://go.microsoft.com/fwlink/?LinkId=37030
92
Comments