Virtualisation for Developers

22
where professional software development comes naturally http:// www.tigernews.co.uk Virtualisation for Developers What, Why, Where? Liam Westley twitter: westleyl [email protected] http://geekswithblogs.net/twickers

description

Virtualisation for Developers. What, Why, Where?. Liam Westley twitter: westleyl. [email protected] http://geekswithblogs.net/twickers. Who ?. Liam Westley; owner of Tiger Computer Services Ltd Broadcast Television and Healthcare solutions - PowerPoint PPT Presentation

Transcript of Virtualisation for Developers

Page 1: Virtualisation for Developers

where professional software development comes naturally

http://www.tigernews.co.uk

Virtualisation for Developers

What, Why, Where?

Liam Westleytwitter: westleyl

[email protected]://geekswithblogs.net/twickers

Page 2: Virtualisation for Developers

http://geekswithblogs.net/twickers

Who ?

• Liam Westley; owner of Tiger Computer Services Ltd

• Broadcast Television and Healthcare solutions

• A user of virtual machines ever since Connectix was bought by Microsoft and Virtual PC 2004 was included in the MSDN subscription

• Doesn’t believe virtualisation contains the letter ‘z’

Page 3: Virtualisation for Developers

http://geekswithblogs.net/twickers

What?

• In general terms, a virtual machine is software that emulates another computer, including all the basic hardware components

• Some even emulate the actual CPU• 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)

Page 4: Virtualisation for Developers

http://geekswithblogs.net/twickers

You may have used a VM before ...

Page 5: Virtualisation for Developers

http://geekswithblogs.net/twickers

What? – some jargon

• ‘Host’ operating system

• ‘Guest’ operating system

• Virtual Machine (‘VM’)

• ‘Additions’ software

Page 6: Virtualisation for Developers

http://geekswithblogs.net/twickers

What? – ‘Free’ tools

• Virtual PC 2007 (XP, Vista)• Virtual Server 2005 R2 (Server 2003)• Hyper-V Server, Hyper-V role in

Server 2008 (x64 CPU only)• VMware Player 2.5 (lots, see notes)• Virtual Box 2.0 (XP, Vista, 2003)• VMware Server 2, VMWare ESXi 3.5• 64-bit guest support; Hyper-V,

VMware, Virtual Box

Page 7: Virtualisation for Developers

http://geekswithblogs.net/twickers

Why? – for developers

• Reduce hardware dependencies

• Creation of flexible development environments

• Support legacy environments

• The ultimate undo tool

Page 8: Virtualisation for Developers

http://geekswithblogs.net/twickers

How back far can you go ...

Page 9: Virtualisation for Developers

http://geekswithblogs.net/twickers

Where? – ‘Clean’ images

• Clean operating systems with minimal service packs and selected Windows Updates

• Test your setup programs and/or installation scripts

• Great for system and user guides, screen captures, and for training end users

Page 10: Virtualisation for Developers

http://geekswithblogs.net/twickers

Where? – Legacy applications

• Legacy operating systems; Win 9x, NT4, Windows 2000

• Legacy service packs; XP SP1• Legacy languages; VB6, VS2003!• Browser compatibility; testing

against IE6, IE7, IE8 beta 2• Windows Media player; older

versions, older codecs

Page 11: Virtualisation for Developers

http://geekswithblogs.net/twickers

Legacy XP / VS2003 in action ...

Page 12: Virtualisation for Developers

http://geekswithblogs.net/twickers

Where? – Hardware consolidation

• Multiple build servers on the same physical hardware

• Development servers to both test and provide demo software for agile development

• Reduced hardware requirement for IIS Network Load Balancing and SQL Server mirroring

Page 13: Virtualisation for Developers

http://geekswithblogs.net/twickers

Where? – ... and much more.

• Internationalisation – ability to test on multiple locales

• Breaking the 3Gb memory barrier by using a 64-bit host

• Scale and test distributed processing (i.e. Selenium Grid)

• Safer testing of beta/RC software• Replicate client configurations

Page 14: Virtualisation for Developers

http://geekswithblogs.net/twickers

Testing new software ...

Page 15: Virtualisation for Developers

http://geekswithblogs.net/twickers

Hyper-V Server

• Minimal version of Windows Server 2008 with Hyper-V role

• Install Hyper-V Server• Install management tools on a different PC

• This is the suggested future solution for developers (replacing Virtual PC and Virtual Server)

Page 16: Virtualisation for Developers

http://geekswithblogs.net/twickers

Hyper-V Server ...

Page 17: Virtualisation for Developers

http://geekswithblogs.net/twickers

Tips and tricks 1

• Keep your host and guest on different discs

• Install additions• BIOS – make sure you enable

hardware virtualisation • Specify large partition sizes, they

auto grow anyway• Disable hibernation - it’s a big file

Page 18: Virtualisation for Developers

http://geekswithblogs.net/twickers

Tips and tricks 2

• Use NewSID (sysinternals) or SysPrep (Microsoft) when duplicating o/s images

• Disable screen savers, no really!• Multi monitors, use remote

connection with /span setting• VMware - http://easyvmx.com/ to

create VM files for VM player

Page 19: Virtualisation for Developers

http://geekswithblogs.net/twickers

Dual CPU – no problems ...

Page 20: Virtualisation for Developers

http://geekswithblogs.net/twickers

Final thoughts and gotchas

• Don’t abuse VMs, i.e. don’t create entire development PC images to avoid configuration scripts

• You can’t run competing virtual systems simultaneously ...

• ... that includes the Smart Device (PocketPC) emulator

• Start getting more familiar with network configuration

Page 21: Virtualisation for Developers

http://geekswithblogs.net/twickers

Resources

• www.microsoft.com/virtualpc www.microsoft.com/virtualserver www.microsoft.com/hyperv

• www.vmware.com/player• www.easyvmx.com• www.virtualbox.org• blogs.msdn.com/Virtual_PC_Guy/• blogs.technet.com/jhoward• www.mvug.co.uk

Page 22: Virtualisation for Developers

where professional software development comes naturally

http://www.tigernews.co.uk

Virtualisation for Developers

What, Why, Where?

Liam Westleytwitter: westleyl

[email protected]://geekswithblogs.net/twickers