Your SlideShare is downloading. ×
0
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
PowerPoint Presentation
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

PowerPoint Presentation

443

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
443
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • What we’ll do here. Open VMware Console. Suspend, Stop, Start, VM Console, Mount CD Open VICient and show the same thing Provision a new VM from a template Open VS and show the same thing Provision and Differencing VM
  • Things you may need to do to start the lab Start shuttle Wait for LABDC to start Stop the VServer Restart netlogon on shuttle Start VServer This is required since the Shuttle is a member of LAB DC, but it doesn’t come up until Shuttle does.
  • This is the sample MSVS script to provision a VM. It was created using the Microsoft script repository and the programmer’s guide. ' This makes a VM based on a specified differencing disk sServer="" if WScript.arguments.count >= 1 then sServer=WScript.arguments(0) end if if sServer="" then sServer=inputbox("What's the name of the new server?") end if if sServer="" then wscript.echo "Must have a server name" wscript.quit end if sDiskPath="E:VirtualServerVDs" sMasterDisk="Win23R2StdNoTouch.vhd" sVMPath="E:VirtualServerVMs" Set oVS = CreateObject("VirtualServer.Application") ' Find our network object sNetwork="Subnet1" set oNetworks=oVS.VirtualNetworks for each oNetwork in oNetworks if oNetwork.Name=sNetwork then exit for end if next ' Create the new hard disk sDisk=sDiskPath & sServer & "HD0.vhd" set oTask = oVS.CreateDifferencingVirtualHardDisk(sDisk,sDiskPath & sMasterDisk) oTask.waitForCompletion 60000 ' Wait for 1 minute ' Create the Virtual Machine set oVM=oVS.createVirtualMachine(sServer,sVMPath & sServer) oVM.Memory=384 set oNIC=oVM.NetworkAdapters(1) oNIC.AttachToVirtualNetwork(oNetwork) const vmDriveBusType_IDE=0 const vmDriveBusType_SCSI=1 set oDisk=oVM.AddHardDiskConnection(sDisk,vmDriveBusType_IDE,0,0) ' SCSI 0:0 oVM.startup ' Tidy up set oVS=nothing wscript.quit
  • Transcript

    • 1. Computer Virtualization with Microsoft and VMware Ottawa Windows Server User Group November 23, 2006
    • 2. Introductions <ul><li>Stephen Campbell, Marchview Consultants </li></ul><ul><li>Garth Jones, Enhansoft </li></ul><ul><li>Thanks to…. </li></ul>
    • 3. Agenda <ul><li>What is this virtualization stuff anyway? </li></ul><ul><li>VMware and Microsoft products </li></ul><ul><li>Demo environments </li></ul><ul><li>Compare the products </li></ul><ul><li>Control the VM environment </li></ul><ul><li>Summary </li></ul>
    • 4. What is Virtualization? <ul><li>Welcome to the 1960’s </li></ul><ul><li>Fooling a program/system to think its running on its own hardware </li></ul><ul><ul><li>Doesn’t know about other environments </li></ul></ul><ul><ul><li>Can’t interfere with other environments </li></ul></ul><ul><li>Providing new hardware features </li></ul><ul><ul><li>Disks that can remember/undo changes </li></ul></ul><ul><ul><li>NICs that think they’re switches </li></ul></ul><ul><ul><li>Memory tricks </li></ul></ul>
    • 5. How does it work? <ul><li>Host (aka metal) </li></ul><ul><li>Guest (aka VM, Virtual Machine) </li></ul><ul><li>Application virtualization (SoftGrid, Citrix) </li></ul>Disk NIC KVM USB CPU RAM Host O/S VMM Disk NIC KVM USB CPU RAM Disk NIC KVM USB VM2 CPU RAM VM1 Host Guest
    • 6. Hardware Revolution <ul><li>Initially implemented in software. </li></ul><ul><ul><li>The host environment switches resources among the virtual machines, and runs certain Ring 0 (Kernel) instructions </li></ul></ul><ul><li>CPU Hardware virtualization 1 (2005) </li></ul><ul><ul><li>Virtual Machine Monitor runs in its own ring </li></ul></ul><ul><ul><li>Ring 0 is virtualized </li></ul></ul><ul><ul><li>AMD-V (Opteron) </li></ul></ul><ul><ul><li>Intel VT, Pentium D 920+ </li></ul></ul><ul><li>CPU Hardware virtualization 2 (2007) </li></ul><ul><ul><li>Device virtualization </li></ul></ul>
    • 7. What would you use this stuff for? <ul><li>Engineer/Developer </li></ul><ul><ul><li>No, you can’t have $30K for a 64bit OS cluster at your desk </li></ul></ul><ul><ul><li>Let’s try that again, let’s try this other way </li></ul></ul><ul><ul><li>Let’s use a clone of that production server to prove its not a bug in our code </li></ul></ul><ul><li>Q.A. </li></ul><ul><ul><li>Let’s not spend three days restoring the 20 server/workstation environment to run that test again </li></ul></ul>
    • 8. What would you use this stuff for? <ul><li>Demonstrations </li></ul><ul><ul><li>Let’s bring the 4 servers (DC, SQL, App, Web) and two workstations (En, Fr) onto the plane in carry-on luggage </li></ul></ul><ul><li>Production </li></ul><ul><ul><li>Let’s not spend $8K for a 3% CPU server </li></ul></ul><ul><ul><li>Let’s not buy 100 servers for our business resumption site </li></ul></ul><ul><ul><li>Let’s not add a server to 300 branch offices </li></ul></ul><ul><ul><li>Let’s run a legacy DOS app on Vista </li></ul></ul>
    • 9. Controlling a VM Environment <ul><li>Provision VMs </li></ul><ul><ul><li>New, clone, import from physical computers </li></ul></ul><ul><li>Control VMs </li></ul><ul><ul><li>Start, stop, attach to console </li></ul></ul><ul><li>Monitor VMs and Hosts </li></ul><ul><li>Balance loads across hosts </li></ul><ul><li>Establish VM and Host Permissions </li></ul>
    • 10. Microsoft Product Line <ul><li>Today </li></ul><ul><ul><li>Virtual PC 2004 SP1 (Free) [VPC] </li></ul></ul><ul><ul><li>Virtual Server 2005 R2 (Free) [MSVS] </li></ul></ul><ul><ul><li>VM Importer </li></ul></ul><ul><li>Soon </li></ul><ul><ul><li>Virtual PC 2007 (Free) </li></ul></ul><ul><ul><li>Virtual Server 2005 R2 SP1 (Free) </li></ul></ul><ul><ul><li>Virtual Machine Manager </li></ul></ul><ul><ul><li>Softgrid </li></ul></ul>
    • 11. VMware Product Line <ul><ul><li>VMware Infrastructure 3 </li></ul></ul><ul><ul><ul><li>VMware ESX Server 3.0.1 [ESX] </li></ul></ul></ul><ul><ul><ul><li>VMware Virtual Center 2.0.1 [VC] </li></ul></ul></ul><ul><ul><ul><li>VI Client </li></ul></ul></ul><ul><ul><li>VMware Server 1.0.1 [VMS] </li></ul></ul><ul><ul><li>Other </li></ul></ul><ul><ul><ul><li>VMTN Subscription </li></ul></ul></ul><ul><ul><ul><li>VMware Workstation 5.5.3 [VMW] </li></ul></ul></ul><ul><ul><ul><li>VMware Player 1.0.2 </li></ul></ul></ul><ul><ul><ul><li>VMware ACE 1.0.2 </li></ul></ul></ul><ul><ul><ul><li>VMware P2V, Importer and Converter </li></ul></ul></ul><ul><ul><ul><li>[Soon] VMware Lab Manager </li></ul></ul></ul>
    • 12. Demo - Navigating <ul><li>Let’s see a VM environment </li></ul><ul><ul><li>Console Operations </li></ul></ul><ul><ul><li>Create a fresh new VM </li></ul></ul>
    • 13. Virtualized Memory (ESX) <ul><li>Shared memory </li></ul><ul><ul><li>Why store a DLL twice when once will do </li></ul></ul><ul><li>Balloon memory </li></ul><ul><ul><li>Let’s rob Peter to pay Paul </li></ul></ul><ul><li>Moving running VMs </li></ul><ul><ul><li>Let’s let the guest do a page fault during a transition to a new host </li></ul></ul><ul><li>Snapshots/Saved State (All products) </li></ul>
    • 14. Virtualized Networks <ul><li>Host creates network switches </li></ul><ul><ul><li>Local only </li></ul></ul><ul><ul><li>Attached to zero or more metal NICs </li></ul></ul><ul><ul><li>NAT, DHCP </li></ul></ul><ul><ul><li>VLANs (ESX) </li></ul></ul><ul><li>Guests connect NICs to these switches </li></ul><ul><ul><li>Can connect to new switches dynamically </li></ul></ul><ul><li>Guests detect standard NIC hardware </li></ul><ul><ul><li>VLance (AMD), VMXNet, Intel V21140 </li></ul></ul>
    • 15. Virtualized Networks <ul><li>Private </li></ul><ul><li>VLAN </li></ul><ul><li>Private </li></ul><ul><li>DHCP </li></ul><ul><li>NAT </li></ul><ul><li>Private </li></ul><ul><li>DHCP </li></ul>VLance VMXNet VLance VMXNet Intel 21140 ESX VMS, VMW MSVS, VPC
    • 16. Virtualized Disks <ul><li>Raw: Allows access to H/W disks </li></ul><ul><li>All other disk types are kept as host files </li></ul><ul><ul><li>Fixed or Dynamic Growth </li></ul></ul><ul><ul><li>Split into 2G chunks </li></ul></ul><ul><li>Undoable disks </li></ul><ul><ul><li>Differencing (MS only) </li></ul></ul><ul><ul><li>Undo log </li></ul></ul><ul><ul><li>Multiple snapshots (VMW, ESX only) </li></ul></ul>
    • 17. Virtualized Disks <ul><li>Redo Logs </li></ul><ul><li>Commit/Merge </li></ul><ul><ul><li>Write Log back into base </li></ul></ul><ul><li>Discard </li></ul><ul><ul><li>Delete log of changes </li></ul></ul><ul><li>Keep </li></ul><ul><ul><li>Continue adding to log files </li></ul></ul><ul><li>Differencing (MS only) </li></ul><ul><li>Read-only master </li></ul><ul><li>Changes are kept in separate files </li></ul><ul><li>Can have difference of difference </li></ul>Master Base Redo Commit/ Merge The VM sees one normal disk
    • 18. Snapshots (VMW, ESX)
    • 19. Virtualized Disks Raw Fixed /Dynamic Single Snapshot VMS Raw Fixed Multiple Snapshots Raw Fixed /Dynamic Multiple Snapshots Raw Fixed /Dynamic Differencing Single Snapshot ESX VMW MSVS, VPC
    • 20. Guest VM Helper Apps <ul><li>VMware Tools Virtual Machine Additions </li></ul><ul><li>Purpose </li></ul><ul><ul><li>Improve performance/behaviour of KVM </li></ul></ul><ul><ul><li>Allow host to communicate with VM </li></ul></ul><ul><ul><li>Additional VM-specific drivers </li></ul></ul><ul><ul><ul><li>VMXNet, Balloon memory </li></ul></ul></ul>
    • 21. Provisioning VMs Quickly <ul><li>Classic </li></ul><ul><ul><li>ISO to provision a new fresh computer </li></ul></ul><ul><li>Clone </li></ul><ul><ul><li>Copy the VM/Disk, create a new VM, newsid, go </li></ul></ul><ul><li>Sysprep a master disk </li></ul><ul><ul><li>Create a master and clone that </li></ul></ul><ul><ul><li>Create a differencing disk based on the sysprep master and go </li></ul></ul><ul><li>Use VMware templates (VC/ESX) </li></ul>
    • 22. Our demo lab
    • 23. Demo - Compare Provisioning <ul><li>MSVS </li></ul><ul><ul><li>Differencing Disks </li></ul></ul><ul><ul><li>SysPrep </li></ul></ul><ul><li>VMS, VMW </li></ul><ul><ul><li>Clone </li></ul></ul><ul><ul><li>SysPrep, NewSID </li></ul></ul><ul><li>VC/ESX </li></ul><ul><ul><li>Templates </li></ul></ul>
    • 24. Keeping your baseline current <ul><li>MSVS </li></ul><ul><ul><li>Create new master as difference of existing </li></ul></ul><ul><ul><li>Base new VM’s on the new differencing master </li></ul></ul><ul><li>VMW/VMS </li></ul><ul><ul><li>Reopen master VM and apply, and reseal </li></ul></ul><ul><li>ESX </li></ul><ul><ul><li>Convert template to VM, start then apply changes, convert back to template </li></ul></ul>
    • 25. Access Control <ul><li>ESX: Unix file permissions to the VM </li></ul><ul><li>VC: Very granular administrative and operations roles </li></ul><ul><li>VMS: File permissions to the VMX (definition file) </li></ul><ul><li>MSVS: File permissions to the VMC file </li></ul>
    • 26. Programmatic Control <ul><li>MS was written from the ground up to have programmatic control. </li></ul><ul><ul><li>Can do anything since the UI is really just a collection of those object manipulations </li></ul></ul><ul><li>VM is getting better </li></ul>
    • 27. MSVS Coding <ul><li>Connect to a MSVS </li></ul><ul><ul><li>set objVS = createObject( “VirtualServer.Application”, strHost) </li></ul></ul><ul><li>Connect to a VM </li></ul><ul><ul><li>set objVM = objVS.findVirtualMachine(strVM) </li></ul></ul><ul><li>Stop a running VM </li></ul><ul><ul><li>if objVM.State=5 then objVM.Save </li></ul></ul>
    • 28. VMware Coding <ul><li>Connect to a VMS </li></ul><ul><ul><li>Set objVS=createObject(“VmCOM.VmServerCtl”) </li></ul></ul><ul><ul><li>Set objCP=createObject(“VmCOM.VmConnectParams”) </li></ul></ul><ul><ul><li>objVS.connect objCP </li></ul></ul><ul><li>Connect to a VM </li></ul><ul><ul><li>Set objVM=createObject(“VmCOM.VmCtl”) </li></ul></ul><ul><ul><li>objVM.connect objCP,strVMXFileName </li></ul></ul><ul><li>Stop a VM </li></ul><ul><ul><li>If objVM.ExecutionState=1 then objVM.stop VM_SHUTSOFT </li></ul></ul>
    • 29. Demo - Scripting <ul><li>Provision a MSVS VM </li></ul>
    • 30. Quirks <ul><li>ESX </li></ul><ul><ul><li>No USB in ESX VMs [two-factor authentication] </li></ul></ul><ul><li>MSVS </li></ul><ul><ul><li>No 64bit guests, 64bit host </li></ul></ul><ul><li>MVS </li></ul><ul><ul><li>64bit guests require hardware virtualization (AMD-V, Intel VT) </li></ul></ul><ul><li>General </li></ul><ul><ul><li>Guest must be shut down to add/remove devices, deal with redo disks </li></ul></ul><ul><ul><li>20 VM’s = 20 Microsoft Windows licences, but… </li></ul></ul>
    • 31. Other Cool Things <ul><li>MOM Management Pack for MSVS provides cool management and monitoring </li></ul><ul><li>Windows Licensing in VMs </li></ul><ul><ul><li>Buy one Windows Enterprise, run another 4 VMs (any Windows OS) on Microsoft or VMware hosts. </li></ul></ul><ul><ul><li>Buy one Windows Data Center, run as many VMs (any Windows OS) as you want on that iron </li></ul></ul><ul><ul><li>Buy Microsoft SA and you can run your lab for free </li></ul></ul><ul><ul><li>Buy Technet Plus and you can run your lab for 60 days </li></ul></ul>
    • 32. Performance Notes <ul><li>There’s only so much to go around </li></ul><ul><li>Your main bottleneck is almost always disk </li></ul><ul><ul><li>Write cache </li></ul></ul><ul><ul><li>RAID 1+0 better than RAID 5 </li></ul></ul><ul><ul><li>More smaller drives better than fewer bigger ones </li></ul></ul><ul><ul><li>Defragment the host and the guest partitions </li></ul></ul><ul><ul><li>Put the host page file on a separate physical disk </li></ul></ul><ul><ul><li>Allocate the entire VDisk size to empty/dedicated host disks </li></ul></ul>
    • 33. VM Appliances <ul><li>Prebuilt VMs to perform specific tasks </li></ul><ul><li>VMware Community </li></ul><ul><ul><li>Firewalls, Browsers, Monitors, etc </li></ul></ul><ul><ul><li>Mostly Linux </li></ul></ul><ul><ul><li>http:// www.vmware.com/vmtn/appliances </li></ul></ul><ul><li>Microsoft Community </li></ul><ul><ul><li>Trial/Demo VHDs </li></ul></ul><ul><ul><li>http://www.microsoft.com/ technet/try/vhd </li></ul></ul>
    • 34. Approximate Prices <ul><li>VMware </li></ul><ul><ul><li>ESX 3 Std $~3K/2CPUs+$.8K/yr maintenance </li></ul></ul><ul><ul><li>ESX 3 Ent $~5K/2CPUs+$1.2K/yr maintenance </li></ul></ul><ul><ul><li>VC 2 ~$4.5K+$1K/yr maintenance </li></ul></ul><ul><ul><li>WKS $189 </li></ul></ul><ul><ul><li>VMTN $299/year/person </li></ul></ul><ul><li>Windows </li></ul><ul><ul><li>Std ~$.6K </li></ul></ul><ul><ul><li>Ent ~$2K </li></ul></ul><ul><ul><li>Data Center ~$3K/CPU </li></ul></ul>
    • 35. Bottom Line <ul><ul><li>MSVS </li></ul></ul><ul><ul><ul><li>Free </li></ul></ul></ul><ul><ul><ul><li>Host and Guests are Windows </li></ul></ul></ul><ul><ul><ul><li>Clunky Interface </li></ul></ul></ul><ul><ul><ul><li>Lots of R&D investment: stay tuned </li></ul></ul></ul><ul><ul><li>VMS, VM Player </li></ul></ul><ul><ul><ul><li>Free, Can transfer VMs among technologies </li></ul></ul></ul><ul><ul><ul><li>Good support for non-MS environments (Netware, Linux) </li></ul></ul></ul><ul><ul><li>VMW </li></ul></ul><ul><ul><ul><li>Great desktop experience, full snapshot </li></ul></ul></ul><ul><ul><li>ESX </li></ul></ul><ul><ul><ul><li>Ideal for common lab/QA, big iron production </li></ul></ul></ul><ul><ul><ul><li>Mature </li></ul></ul></ul>
    • 36. Info <ul><li>VMware </li></ul><ul><ul><li>www.vmware.com </li></ul></ul><ul><ul><ul><li>Forums, KBase, Appliances, Blogs </li></ul></ul></ul><ul><li>Microsoft </li></ul><ul><ul><li>www.microsoft.com/virtualserver </li></ul></ul><ul><ul><li>www.microsoft.com/virtualpc </li></ul></ul><ul><ul><li>http://www.microsoft.com/technet/try/vhd </li></ul></ul><ul><ul><li>http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx </li></ul></ul>
    • 37. MSVS Communities <ul><li>Blogs </li></ul><ul><li>Virtual PC Guy's WebLog </li></ul><ul><li>http://blogs.msdn.com/virtual_pc_guy/ </li></ul><ul><li>John Howard Program Manager, Windows Virtualization </li></ul><ul><li>http://blogs.technet.com/jhoward/ </li></ul><ul><li>Garth Jones </li></ul><ul><li>http://myitforum.com/cs2/blogs/gjones/default.aspx </li></ul><ul><li>Utilities </li></ul><ul><li>Virtual Server Documentation Script </li></ul><ul><li>http://www.enhansoft.com/index_files/FreeTools.htm </li></ul><ul><li>Virtual Server 2005 Management Pack </li></ul><ul><li>http://www.microsoft.com/downloads/details.aspx?familyid=BF21F798-9B10-40DC-BCDD-4A8358CCE94D&displaylang=en </li></ul><ul><li>Pre-built VHS for Quick testing </li></ul><ul><li>http://myitforum.com/cs2/blogs/gjones/archive/2006/11/06/Need-to-do-some-quick-testing_2C00_-check-out-these-VHDs.aspx </li></ul>
    • 38. MSVS Communities <ul><li>Tips </li></ul><ul><li>Virtual Server 2005 performance tips </li></ul><ul><li>http://support.microsoft.com/kb/903748 </li></ul><ul><li>HOWTO: Squeeze Every Last Drop of Performance Out of Your Virtual PCs </li></ul><ul><li>http://andrewconnell.com/blog/articles/SqeezePerformanceOutOfVirtualPCs.aspx </li></ul><ul><li>http://myitforum.com/cs2/blogs/gjones/archive/2006/03/31/19568.aspx </li></ul><ul><li>Unlimited VM with Datacenter </li></ul><ul><li>http://www.microsoft.com/windowsserver2003/datacenter/dcprogram.mspx </li></ul><ul><li>Reference Network </li></ul><ul><li>http://blogs.technet.com/canitpro/archive/2006/03/06/421295.aspx </li></ul><ul><li>Hardware Specs </li></ul><ul><li>http://blogs.technet.com/canitpro/archive/2006/03/07/421360.aspx </li></ul>
    • 39. Questions <ul><li>[email_address] </li></ul><ul><li>[email_address] </li></ul>

    ×