Let’s talk Virtualization<br />
Etienne Tremblay<br />Associate Director Microsoft Technologies at Fujitsu<br />MVP ALM<br />.NET Montreal <br />   User G...
Questions<br />Who uses virtualization today?<br />Which product do you use?<br />Devs or IT?<br />What do you use virtual...
Agenda<br />What is virtualization?<br />Different virtualization products<br />Licensing…<br />Why is virtualization impo...
Virtualization types<br />
Server and workstation virtualization<br />
Application virtualization<br />
Presentation virtualization<br />
The cloud<br />
Popular virtualization products<br />Microsoft Virtual PC 2007 SP1 (free)<br />Microsoft Virtual Server 2005 R2 SP1 (free)...
Microsoft licensing 101<br />… I’m NOT a licensing expert. Talk to a rep for that!<br />One license per VM and per applica...
Why is virtualization important to you!<br />Better control over you development and testing environments<br />Quick devel...
Key virtualization concepts<br />
Key concepts #1: VMs are just files<br />Files<br />Virtual hard drives (vhd, vmdk, etc.)<br />Virtual machine configurati...
Key concept #2: Undo/Snapshot disk<br />
Key concepts #3: Differencing disks<br />
Key concept #4: Gold Images<br />
Key concept #5: Sysprep<br />
Typical virtualization scenarios<br />
Development workstation #1<br />
Pros and cons<br />Pros<br />Portable<br />Reutilization of existing assets (developer workstation)<br />Developers have m...
Development workstation #2<br />
Pros and cons<br />Pros<br />Faster if the central server is faster<br />Centralization of the management of hardware and ...
Development workstation #3<br />
Pros and cons<br />Pros<br />All hardware taken into account (memory, disk, video, etc.)<br />Fast (same as a regular PC)<...
Demos<br />
Lets get started with virtualization<br />Preparation <br />HAV (Hardware Assisted Virtualization) setting in the BIOS<br ...
Azure<br />
Azure Management portal<br />
MSDN and Azure<br />
Azure VM sizes<br />
TFS Lab Manager<br />
Test Lab Management – Define Environment<br />
Test Lab Management – Run Tests<br />
Test Lab Management – Capture State<br />Dev clicks on lvr link & selects connect to snapshot of the environment<br />
38<br />Dev is able to access the snapshot’ed environment via LE viewer<br />
Tips, tricks and best practices<br />
How to create a bootable Windows Installation USB key<br />You need a 4G+ USB key<br />Start a command windows and execute...
How to setup Boot from VHD<br />Add an entry in the Windows Bootloader menu<br />Reboot (you should see <br />  this) but ...
How to setup Boot from VHD<br />Start Diskpart<br />Create and attach the VHD<br />Exit the command window and continue th...
Best practices<br />Create Gold image VMs<br />Keep them up to date (update every 3 months)<br />Generalize them (sysprep)...
Best practices<br />Use fixed disk as much as possible to help with performance<br />Delegate the Team Development VM crea...
Don’t forget these…<br />VMs are “real” computer so threat them as such (AV, Patch, etc.)<br />Try to use VMs on a second ...
Demos<br />
Lets get started with virtualization<br />Preparation <br />HAV (Hardware Assisted Virtualization) setting in the BIOS<br ...
Links<br />VMWare Server and Workstation<br />www.vmware.com<br />Windows Virtual PC<br />www.microsoft.com/virtualpc<br /...
Call to action!<br />Start using virtualization today!<br />
Upcoming SlideShare
Loading in …5
×

Let’s talk virtualization

692 views

Published on

You want to learn what virtualization is all about? I’ll talk about high level concepts, tips and tricks and best practices. You will learn all that and even why Azure might be an interesting choice when we talk developer virtualization. Concepts like Sysprep, Differencing drives, snapshot intrigue you? I’ll let you know all about them and more! Come join me to explore all that virtualization as to offer

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
692
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Let’s talk virtualization

  1. 1. Let’s talk Virtualization<br />
  2. 2. Etienne Tremblay<br />Associate Director Microsoft Technologies at Fujitsu<br />MVP ALM<br />.NET Montreal <br /> User Group <br /> Leader section <br /> ALM<br />Email: etienne.tremblay@live.ca<br />Twitter: @tegaaa<br />
  3. 3.
  4. 4.
  5. 5. Questions<br />Who uses virtualization today?<br />Which product do you use?<br />Devs or IT?<br />What do you use virtualization for?<br />
  6. 6. Agenda<br />What is virtualization?<br />Different virtualization products<br />Licensing…<br />Why is virtualization important to you!<br />Key concepts<br />Scenarios<br />Let’s get started (demos)<br />What about Azure?<br />Tips, Tricks and best practices<br />Don’t forget these…<br />Let’s finish (demos)<br />
  7. 7. Virtualization types<br />
  8. 8. Server and workstation virtualization<br />
  9. 9. Application virtualization<br />
  10. 10. Presentation virtualization<br />
  11. 11. The cloud<br />
  12. 12. Popular virtualization products<br />Microsoft Virtual PC 2007 SP1 (free)<br />Microsoft Virtual Server 2005 R2 SP1 (free)<br />Microsoft Windows Virtual PC (Windows 7) (free)<br />Microsoft Hyper-V (free with Windows 2008(R2))<br />Microsoft App-V ($)<br />VMWare Player (free)<br />VMWare Workstation 7 ($) (trial 30 days)<br />VMWare Server 2 (free)<br />VMWare ESX ($)<br />Parallels (mac) ($) (trial 15 days)<br />Xen (unix)<br />Oracle VirtualBox(free)<br />
  13. 13. Microsoft licensing 101<br />… I’m NOT a licensing expert. Talk to a rep for that!<br />One license per VM and per application installed like any other PC<br />Windows Server 2008 R2 Enterprise *gives* you 4 free licenses to run VMs in Hyper-V on the same server<br />Check out WindowsXPMode… a free copy of Windows XP running on Windows 7 Pro and Ultimate.<br />…Get MSDN/TechNet it’s way easier <br />
  14. 14. Why is virtualization important to you!<br />Better control over you development and testing environments<br />Quick development team ramp up with gold developer workstation and build server image<br />Easier recovery plan<br />Easy setup of multiple testing environment for our customers (integration, pre-prod, etc.)<br />Training workstation and server VMs<br />Multiple VMs running on the same developer machine to simulate different tiers<br />
  15. 15. Key virtualization concepts<br />
  16. 16. Key concepts #1: VMs are just files<br />Files<br />Virtual hard drives (vhd, vmdk, etc.)<br />Virtual machine configuration (vmc, vmx, etc.)<br />Undo/Snapshot files (vud, vmsn, etc.)<br />Save states (vsv, vmss)<br />
  17. 17. Key concept #2: Undo/Snapshot disk<br />
  18. 18. Key concepts #3: Differencing disks<br />
  19. 19. Key concept #4: Gold Images<br />
  20. 20. Key concept #5: Sysprep<br />
  21. 21. Typical virtualization scenarios<br />
  22. 22. Development workstation #1<br />
  23. 23. Pros and cons<br />Pros<br />Portable<br />Reutilization of existing assets (developer workstation)<br />Developers have more control over their VMs (also a con…)<br />Cons<br />Performance issues can be a problem (running all on the same disk for example, better with multiple disks)<br />Each developer need to manage their VMs (Patch, AV, etc.). <br />We can mitigate with MedV/Gold Images <br />
  24. 24. Development workstation #2<br />
  25. 25. Pros and cons<br />Pros<br />Faster if the central server is faster<br />Centralization of the management of hardware and patching<br />Cons<br />Obviously less portable<br />Need continuous connectivity to host/web<br />Need of a big central server<br />
  26. 26. Development workstation #3<br />
  27. 27. Pros and cons<br />Pros<br />All hardware taken into account (memory, disk, video, etc.)<br />Fast (same as a regular PC)<br />Can have multiple boot partition by having multiple virtual disk<br />We can even combine scenario 1 & 2 & 3<br />Cons<br />Marginal loss in disk speed<br />Each developer need to manage their VMs (Patch, AV, etc.).<br />Need to reboot to access another partition<br />Only works with Windows 7/Windows 2008 R2 to create Windows 7/Windows 2008 R2 partitions.<br />
  28. 28. Demos<br />
  29. 29. Lets get started with virtualization<br />Preparation <br />HAV (Hardware Assisted Virtualization) setting in the BIOS<br />ISOs of the OSs you will use (Windows XP, 7, 2008, etc.)<br />Demos<br />Creation of a new VM<br />Differencing Drives<br />Undo disks/Snapshots<br />Integration Services (or equivalent)<br />Sysprep (Windows XP, Windows Vista+)<br />Networking/Loopback adapter<br />
  30. 30. Azure<br />
  31. 31. Azure Management portal<br />
  32. 32. MSDN and Azure<br />
  33. 33. Azure VM sizes<br />
  34. 34. TFS Lab Manager<br />
  35. 35. Test Lab Management – Define Environment<br />
  36. 36. Test Lab Management – Run Tests<br />
  37. 37. Test Lab Management – Capture State<br />Dev clicks on lvr link & selects connect to snapshot of the environment<br />
  38. 38. 38<br />Dev is able to access the snapshot’ed environment via LE viewer<br />
  39. 39. Tips, tricks and best practices<br />
  40. 40. How to create a bootable Windows Installation USB key<br />You need a 4G+ USB key<br />Start a command windows and execute diskpart<br />Copy the content of the Windows DVD on the key<br />Choose the USB at boot and you are good to go<br />LIST DISK (trouvervotre clé USB dans la list et noter le #)<br />SELECT DISK <# de votre clé USB> <br />CLEAN<br />CREATE PARTITION PRIMARY<br />SELECT PARTITION 1<br />ACTIVE<br />FORMAT FS=NTFS LABEL=“<Win7/Win8R2>” QUICK<br />ASSIGN<br />EXIT<br />
  41. 41. How to setup Boot from VHD<br />Add an entry in the Windows Bootloader menu<br />Reboot (you should see <br /> this) but if you select the<br /> New partition it will fail.<br />Use the DVD or USB<br /> Windows 7/Windows 2008 R2 Boot Disk<br />At the setup welcome screen press Shift-F10<br />C:>bcdedit /copy {current} /d "My New VHD Option“<br />C:>bcdedit /set {guid} device vhd=[driveletter:]<directory><vhd filename>C:>bcdedit /set {guid} osdevicevhd=[driverletter:]<directory><vhd filename>C:>bcdedit /set {guid} detecthal on<br />
  42. 42. How to setup Boot from VHD<br />Start Diskpart<br />Create and attach the VHD<br />Exit the command window and continue the setup and select the vhd on the partition screen.<br />You might get a warning just ignore it and continue.<br />create vdisk file=“[drive]:<machine>.vhd" type=expandable maximum=50000<br />select vdisk file=“[Drive]:<machine>.vhd"attach vdisk<br />
  43. 43. Best practices<br />Create Gold image VMs<br />Keep them up to date (update every 3 months)<br />Generalize them (sysprep)<br />Use Undo/Snapshot as much as possible<br />One thing to keep in mind with snapshot is they are time based so if you hadn’t activated windows when you revert you might have too.<br />If you know you’ll snapshot and your VM is attached to a domain, make sure you turn off the “Domain Member: Maximum machine account password age”<br />
  44. 44. Best practices<br />Use fixed disk as much as possible to help with performance<br />Delegate the Team Development VM creation task to one person and make sure he keeps it up to date with the latest tools the team uses<br />Great productivity gain<br />Everyone starts with the same environment<br />Activate HAV in your laptop BIOS<br />
  45. 45. Don’t forget these…<br />VMs are “real” computer so threat them as such (AV, Patch, etc.)<br />Try to use VMs on a second hard disk even a USB disk is better then the same as the OS. USB 3 will rock!<br />Don’t forget to backup!!!<br />If it’s performance you are looking for, maybe virtualization not for you<br />If you don’t want to impact you company network set your VM networking to offline or NAT or loopbak<br />Think about using all the features (Diff disk, Undo, Snapshot, etc.)<br />Don’t forget about licensing… <br />
  46. 46. Demos<br />
  47. 47. Lets get started with virtualization<br />Preparation <br />HAV (Hardware Assisted Virtualization) setting in the BIOS<br />ISOs of the OSs you will use (Windows XP, 7, 2008, etc.)<br />Demos<br />Creation of a new VM<br />Differencing Drives<br />Undo disks/Snapshots<br />Integration Services (or equivalent)<br />Sysprep (Windows XP, Windows Vista+)<br />Networking/Loopback adapter (hdwwiz.exe)<br />
  48. 48. Links<br />VMWare Server and Workstation<br />www.vmware.com<br />Windows Virtual PC<br />www.microsoft.com/virtualpc<br />Test yourBIOS if HAV issupported<br />http://www.microsoft.com/downloads/details.aspx?FamilyID=0ee2a17f-8538-4619-8d1c-05d27e11adb2&displaylang=en<br />Windows Server 2003 Service Pack 2 32-bit Deployment Tools<br />http://www.microsoft.com/downloads/details.aspx?familyid=96A35011-FD83-419D-939B-9A772EA2DF90&displaylang=en<br />Hyper-V<br />http://www.microsoft.com/windowsserver2008/en/us/hyperv-main.aspx<br />ALM Rangers VM Factory<br />http://rangersvsvmfactory.codeplex.com/<br />MDT (Microsoft Deployment Toolkit)<br />http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=25175<br />
  49. 49. Call to action!<br />Start using virtualization today!<br />

×