ITCamp 2013 - Tudor Damian - Running Linux on Microsoft Private and Public Cloud infrastructures
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,163
On Slideshare
1,163
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
2
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

Transcript

  • 1. itcampro@ itcamp13# Premium conference on Microsoft technologiesRunning Linux on Microsoft Privateand Public Cloud infrastructuresTudor DamianIT Solutions SpecialistVirtual Machine MVPtudy.tel
  • 2. itcampro@ itcamp13# Premium conference on Microsoft technologiesPrivate & PublicCloudHuge thanks to our sponsors!
  • 3. itcampro@ itcamp13# Premium conference on Microsoft technologiesPrivate & PublicCloudAgenda• The Linux “support” story• What’s officially supported?• What actually works?• Linux in your Private Cloud– Enlightened vs. emulated– More about Linux Integration Services– Linux P2V conversions for Hyper-V– The future of Linux on Hyper-V• Linux on Windows Azure
  • 4. itcampro@ itcamp13# Premium conference on Microsoft technologiesPrivate & PublicCloud• There’s no need for the Integration Services to install Linux on Hyper-V• Most distributions work just fine in an emulated environment (lower performance)• So why don’t we have more supported Linux distros?• …such as Hannah Montana Linux - http://hannahmontana.sourceforge.net/• The answer is simple: there are no companies to offer dedicated support• Support is usually offered by the community• Microsoft doesn’t have anyone to create a supportagreement with• They don’t officially cover these under standard supportincidents• They do recommend the communities for help (MVPs,Linux distro-related communities)• Users have reported successful installs of:• Ubuntu, Debian, Fedora, CentOS, other distros (e.g. Hannah Montana Linux)• Even FreeBSD and Open SolarisLinux ”unofficial” support
  • 5. itcampro@ itcamp13# Premium conference on Microsoft technologiesLINUX IN YOUR PRIVATE CLOUDRunning Linux on Hyper-V 3.0
  • 6. itcampro@ itcamp13# Premium conference on Microsoft technologiesPrivate & PublicCloudHyper-V architecture
  • 7. itcampro@ itcamp13# Premium conference on Microsoft technologiesPrivate & PublicCloud• VSP (virtualization service provider)• Hyper-V component in the”parent partition”• Communicates with the hardware drivers• Gives access to the host resources• VSC (virtualization service client)• Drivers for”synthetic devices” installed in the enlightened guest OS• Exposes every virtual device and translates I/O requests• There’s always a VSP/VSC pair• VMBus (virtual machine bus)• A high-speed point-to-point in-memory bus• Allows the communication between VSPs and VSCs through Hyper-V• For Linux, every VSC has a DIM (Driver Interface Mapper)• DIMs interact with the Linux Kernel like any other driver• There’s also a “VSC core” based on each existing VSPHow does it work?
  • 8. itcampro@ itcamp13# Premium conference on Microsoft technologiesPrivate & PublicCloudEmulated vs. enlightened• Emulated drivers• Drivers are “emulated”• All requests targeting the hardware (HDD, network, etc) are not direct• “Translated” in both directions (VM-hw, hw-VM) by the hypervisor• They bring in a performance overhead• The emulated drivers are pretty similar to what we had in Virtual Server:• Video = S3 Trio64+ SVGA (VESA)• Network = Intel/DEC ”Tulip” 21x4x• IDE = Intel 440BX chipset MB• ”Enlightened” drivers• Also known as “synthetic drivers”• These make the VM ”hypervisor aware”• Written especially for virtualized environments => paravirtualization• They’re basically just pointers to the drivers in the ”parent partition”• Huge performance boost!
  • 9. itcampro@ itcamp13# Premium conference on Microsoft technologiesPrivate & PublicCloud• What’s been done so far?• July 2009 – Microsoft contributes with over 20.000 lines of code in the Linux kernel• December 2009 – The drivers (in staging) are included in the 2.6.32 Kernel• July 1st 2010 – Microsoft presents at the Red Hat Summit• Official support list:http://technet.microsoft.com/en-us/library/cc794868(WS.10).aspx• Linux Integration Services 2.1 RTM (July 2010)• SUSE Linux Enterprise Server (10 SP1/SP2/SP3, 11)• Red Hat Enterprise Linux (5.2, 5.3, 5.4, 5.5)• Linux Integration Services 3.4 RTM (September 2012)• Red Hat Enterprise Linux 5.5-5.9 & 6.0-6.3 x86 and x64 (Up to 4 vCPU)• CentOS 5.5-5.8 & 6.0-6.3 x86 and x64 (Up to 4 vCPU)• SUSE Linux Enterprise Server 10 SP4 & 11 SP1/SP2The story so far
  • 10. itcampro@ itcamp13# Premium conference on Microsoft technologiesPrivate & PublicCloud• Driver support for synthetic devices (v1 – original distro code, created by Citrix)– Synthetic network controller & Synthetic storage controller (IDE/SCSI)• Fastpath Boot Support for Hyper-V (v2.0 – December 2009)– Block VSC – increased boot performance• Timesync (v2.1 – July 2010)– The clock inside the virtual machine will remain synchronized with the clock on the host• Integrated Shutdown (v2.1 – July 2010)– VMs can be cleanly shut down from Hyper-V• Symmetric Multi-Processing (SMP) Support (v2.1 – July 2010)– Supported Linux distributions can use up to 4 virtual processors (VP) per virtual machine• Heartbeat (v2.1 – July 2010)– Allows the host to detect whether the guest is running and responsive• Pluggable Time Source (v2.1 – July 2010)– A pluggable clock source module is included to provide a more accurate time source to the guest.• KVP (Key Value Pair) Exchange (v3.1 – July 2011)– Information about the running Linux VM can be obtained by using the Key Value Pair exchange functionality on the host (FQDN, Linux ISversion, IP addresses, OS version/distro/kernel, CPU architecture x86/x64)• Integrated Mouse Support (v3.2 – January 2012)– The cursor is no longer bound to the VMConnect window when used with the Linux Graphical User Interface• SMP 32 vCPU support (v3.3 – June 2012)– Support for up to 32 vCPUs on certain distros• Live Migration (v3.4 – September 2012)– Linux virtual machines can undergo live migration for load balancing purposes• Jumbo Frames (v3.4 – September 2012)– Linux virtual machines can be configured to use Ethernet frames with more than 1500 bytes of payloadThe road to “enlightment”
  • 11. itcampro@ itcamp13# Premium conference on Microsoft technologiesPrivate & PublicCloudComparing to IS on Windows• Synthetic Drivers• IDE driver• SCSI driver• Network Drive• Mouse Integration• Video• Integration Services• Operating System Shutdown• Time Synchronization• Heartbeat• Data Exchange• Backup (VSS)TechEd 2010 - WSV305
  • 12. itcampro@ itcamp13# Premium conference on Microsoft technologiesPrivate & PublicCloudIS on WindowsTechEd 2010 - WSV305
  • 13. itcampro@ itcamp13# Premium conference on Microsoft technologiesPrivate & PublicCloudIS on WindowsTechEd 2010 - WSV305
  • 14. itcampro@ itcamp13# Premium conference on Microsoft technologiesPrivate & PublicCloudWrap-up: Linux IS components• hv_vmbus – communication with the host• hv_storvsc – storage VSC• hv_netvsc – network VSC• hv_timesource – pluggable time source• hv_mouse – enlightened mouse• hv_utils – graceful shutdown, timesync,heartbeat
  • 15. itcampro@ itcamp13# Premium conference on Microsoft technologiesDEMO – LINUX ON HYPER-VRunning Linux on Hyper-V 2012
  • 16. itcampro@ itcamp13# Premium conference on Microsoft technologiesLINUX P2VConverting Linux physical machines to Hyper-V VMs
  • 17. itcampro@ itcamp13# Premium conference on Microsoft technologiesPrivate & PublicCloudhttp://blogs.technet.com/b/enterprise_admin/archive/2010/05/13/linux-p2v-with-dd-and-vhdtool-easy-and-cheap.aspx• You can use DD and VHDtool– DD works both on Windows and Linux– One case: you attach the Linux HDD on a Windows machineLinux P2V conversionTechEd 2010 - WSV305
  • 18. itcampro@ itcamp13# Premium conference on Microsoft technologiesPrivate & PublicCloud• From a command line, you convert the HDD into a RAW image format (.img)dd if=?DeviceHarddisk1DR2 of=D:rhel54.img bs=1M --progressLinux P2V (DD)TechEd 2010 - WSV305
  • 19. itcampro@ itcamp13# Premium conference on Microsoft technologiesPrivate & PublicCloudhttp://archive.msdn.microsoft.com/vhdtool• A command-line tool, open-source– Includes functions to manipulate VHD files (create, convert, extend, repair)– An excelent P2V conversion tool for Linux machines– It convers RAW images into VHDsLinux P2V (VHDTool)TechEd 2010 - WSV305
  • 20. itcampro@ itcamp13# Premium conference on Microsoft technologiesPrivate & PublicCloud• http://blogs.technet.com/b/enterprise_admin/archive/2010/04/26/hyper-v-linux-p2v-with-platespin.aspxLinux P2V (PlateSpin)
  • 21. itcampro@ itcamp13# Premium conference on Microsoft technologiesPrivate & PublicCloudDD on Linux to NTFS/USB drive
  • 22. itcampro@ itcamp13# Premium conference on Microsoft technologiesPrivate & PublicCloudDD on Linux over the network
  • 23. itcampro@ itcamp13# Premium conference on Microsoft technologiesTHE FUTURE OF LINUXON HYPER-V
  • 24. itcampro@ itcamp13# Premium conference on Microsoft technologiesPrivate & PublicCloudUpcoming Functionality• Dynamic Memory for Linux guests• Ballooning only for first implementation• Bi-Directional KVP• VLAN Tag support (requires Win8)• 802.1q support (requires Win8)• More stuff! 
  • 25. itcampro@ itcamp13# Premium conference on Microsoft technologiesPrivate & PublicCloudDriver Status• Drivers getting out of staging:• Kernel v3.2: hv_vmbus, hv_utils• Kernel v3.3: hv_netvsc; hv_mouse• Kernel v3.4: hv_storvsc• Net Result:• All Hyper-V drivers out of staging and part of themainline Linux kernel by v3.4• Linux = first-class citizen on Hyper-V
  • 26. itcampro@ itcamp13# Premium conference on Microsoft technologiesLINUX IN WINDOWS AZUREGet your Linux VMs up and running in Azure within minutes
  • 27. itcampro@ itcamp13# Premium conference on Microsoft technologiesPrivate & PublicCloud• Linux support on Azure is growing• As of right now, the Azure VM Gallery has:– OpenSuse 12.3– SUSE Enterprise 11 SP2– Ubuntu Server (12.04, 12.10, 13.04)– OpenLogic CentOS 6.3What happens in the cloud?
  • 28. itcampro@ itcamp13# Premium conference on Microsoft technologiesPrivate & PublicCloud• A Linux admin’s best friend http://vmdepot.msopentech.com/VM Depot
  • 29. itcampro@ itcamp13# Premium conference on Microsoft technologiesDEMO - AZURE AND VM DEPOTRunning Linux on Windows Azure
  • 30. itcampro@ itcamp13# Premium conference on Microsoft technologiesQ & A