Virtualisation for Developers


Published on

Published in: Technology
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • (speaker – prepare VS2008 with Smart Device application, and run up with emulator)
  • Virtualisation for Developers

    1. 1. Virtualisation for Developers What, Why, Where? Liam Westley [email_address]
    2. 2. Who ? <ul><li>Liam Westley; owner of Tiger Computer Services Ltd </li></ul><ul><li>Broadcast Television and Healthcare solutions </li></ul><ul><li>A user of virtual machines ever since Connectix was bought by Microsoft and Virtual PC 2004 was included in the MSDN subscription </li></ul><ul><li>Doesn’t believe virtualisation contains the letter ‘z’ </li></ul>
    3. 3. What? <ul><li>In general terms, a virtual machine is software that emulates another computer, including all the basic hardware components </li></ul><ul><li>Some even emulate the actual CPU </li></ul><ul><li>Can either run as a standalone program (Virtual PC, VMWare Player, Virtual Box) or a set of services (Virtual Server) or as the base host o/s (VMWare ESX, Hyper-V) </li></ul>
    4. 4. You may have used a VM before ...
    5. 5. What? – some jargon <ul><li>‘ Host’ operating system </li></ul><ul><li>‘ Guest’ operating system </li></ul><ul><li>Virtual Machine (‘VM’) </li></ul><ul><li>‘ Additions’ software </li></ul>
    6. 6. What? – ‘Free’ tools <ul><li>Virtual PC 2007 (XP, Vista) </li></ul><ul><li>Virtual Server 2005 R2 (Server 2003) </li></ul><ul><li>Hyper-V (Server 2008, x64 CPU with hardware virtualisation support) </li></ul><ul><li>VMWare Player 2.5 (lots, see notes) </li></ul><ul><li>Virtual Box 2.0.2 (XP, Vista, Server 2003) </li></ul><ul><li>64-bit guest support; Hyper-V, VMWare Player, Virtual Box </li></ul>
    7. 7. Why? – for developers <ul><li>Reduce hardware dependencies </li></ul><ul><li>Creation of flexible development environments </li></ul><ul><li>Support legacy environments </li></ul><ul><li>The ultimate undo tool </li></ul>
    8. 8. How far back can you go ?
    9. 9. Where? – ‘Clean’ images <ul><li>Clean operating systems with minimal service packs and selected Windows Updates </li></ul><ul><li>Test your setup programs and/or installation scripts </li></ul><ul><li>Great for system and user guides, including screen captures </li></ul>
    10. 10. Where? – Legacy applications <ul><li>Legacy operating systems; Win 9x, NT4, Windows 2000 </li></ul><ul><li>Legacy service packs; XP SP1 </li></ul><ul><li>Legacy languages; VB6, VS2003! </li></ul><ul><li>Browser compatibility; testing against IE6, IE7, IE8 beta 2 </li></ul><ul><li>Windows Media player; older versions, older codecs </li></ul>
    11. 11. Legacy XP / VS2003 in action ...
    12. 12. Where? – Hardware consolidation <ul><li>Multiple build servers on the same physical hardware </li></ul><ul><li>Development servers to both test and provide demo software for agile development </li></ul><ul><li>Reduced hardware requirement for IIS Network Load Balancing and SQL Server mirroring </li></ul>
    13. 13. Where? – ... and much more. <ul><li>Internationalisation – ability to test on multiple locales </li></ul><ul><li>Breaking the 3Gb memory barrier by using a 64-bit host </li></ul><ul><li>Scale and test distributed processing (i.e. Selenium Grid) </li></ul><ul><li>Safer testing of beta/RC software </li></ul><ul><li>Replicate client configurations </li></ul>
    14. 14. Testing new software ...
    15. 15. Tips and tricks 1 <ul><li>Keep your host and guest on different discs </li></ul><ul><li>Install additions </li></ul><ul><li>BIOS – make sure you enable hardware virtualisation </li></ul><ul><li>Specify large partition sizes, they auto grow anyway </li></ul><ul><li>Disable hibernation - it’s a big file </li></ul>
    16. 16. Tips and tricks 2 <ul><li>Use NewSID (sysinternals) or SysPrep (Microsoft) when duplicating o/s images </li></ul><ul><li>Disable screen savers, no really! </li></ul><ul><li>Multi monitors, use remote connection with /span setting </li></ul><ul><li>VMWare - to create VM files for VM player </li></ul>
    17. 17. Dual CPU – no problems ...
    18. 18. Final thoughts and gotchas <ul><li>Don’t abuse VMs, i.e. don’t create entire development PC images to avoid configuration scripts </li></ul><ul><li>You can’t run competing virtual systems simultaneously ... </li></ul><ul><li>... that includes the Smart Device (PocketPC) emulator </li></ul><ul><li>Hyper-V server just released </li></ul>
    19. 19. Resources <ul><li> </li></ul><ul><li> </li></ul><ul><li> </li></ul><ul><li> </li></ul><ul><li> </li></ul><ul><li> </li></ul>
    20. 20. Virtualisation for Developers What, Why, Where? Liam Westley [email_address]