Running Linux and FreeBSD on Hyper-V: What You Need to Know

Running Linux and FreeBSD on Hyper-V: What You Need to Know

DCIM-B356 Running Linux and FreeBSD on Hyper-V: What You Need to Know Abhishek Gupta {[email protected]} Linux and FreeBSD Integration Services for Hyper-V Product goals and availability. Supported Linux and FreeBSD distributions. New and upcoming features. Feature demo. Known issues, tips and tricks. Product Goals Customers have an amazing experience while running Linux and FreeBSD on Microsoft public and private cloud infrastructure. Provide great functionality and performance. Customers have great choice and availability in running Linux and FreeBSD distributions. On going integration in to new releases. Customers can easily manage and extend their

Linux and FreeBSD workloads. Product integrates well with System Center and all source code open sourced for customization and extension. Running OSs on Hyper-V Start OS runs on x86/ x64? Have Integration Services? Yes No No Dead end Not going to run on Hyper-V. AIX, HP-UX, Solaris SPARC, Windows RT

Yes Emulated Devices No Hyper-V integration Limited manageability Limited functionality Solaris x86, OK CPU, weak Linux with no IS, disk/net BSD with no IS Synthetic Devices Full Hyper-V integration

Best manageability Best functionality Perf near bare metal Linux with IS, FreeBSD with IS Windows with IS Integration Services (IS): What Are They? Hyper-V presents synthetic devices to the guest OS Synthetic devices seen by the guest OS are the same, regardless of the real hardware under Hyper-V Guest OS needs drivers for these synthetic devices Just like an OS needs drivers for devices it sees when running on real hardware Integration Services == the drivers for the Hyper-V synthetic devices They run in the guest OS so must follow the device driver model for that LIS Development, Distribution & Support Microsoft developers

LIS for Hyper-V LIS fo rH yp er -V Linux community MS download center Support Customer installs issues flow in LIS reverse Customer direction servers w/Hyper-V Linux distro w/LIS Linux kernel

main Distro vendors .... Supported Linux Distributions Key Linux vendors include LIS in their distros Distribution Version LIS Availability Red Hat Enterprise Linux & CentOS 5.5 - 5.8 6.0 - 6.3 Download LIS 3.5 from Microsoft 5.9, 5.10 6.4, 6.5 LIS built-in and certified by Red Hat

7.0 RC LIS built-in SUSE Linux Enterprise Server 11 SP2, 11 SP3, Open SUSE 12.3 LIS built-in Ubuntu Server 12.04, 12.10, 13.04, 13.10, 14.04 LIS built-in Debian 7.0 - 7.4 LIS built-in Oracle Linux 6.4, 6.5, UEK R3 QU1

LIS built-in and certified by Oracle Support strategy Vanilla Linux questions: Contact the Linux vendor Issues running Linux on Hyper-V: Contact the Linux vendor or Microsoft New LIS Features Feature Description Generation 2 support Allows Linux virtual machines to be run in UEFI enabled Generation 2 mode. File Copy from Host to Guest Allows copying of files from host to guest without using the network interface. Dynamic memory Provides higher virtual machine density/host for Linux hosters. 2D video driver Provides enhanced graphics performance and superior resolution for

Linux desktop users. VHDX online resize Allows expansion of live mounted fixed sized Linux VHDs. Synthetic fibre channel Allows Linux virtual machines to natively access high speed fibre channel networks. Live backup Provisions uninterrupted backup support for live Linux virtual machines. TRIM support Allows Linux virtual machines to optimize storage consumption through technologies such as Thin Provisioning. Particularly useful for Linux virtual machines hosted in Azure. Coming Soon LIS Features Feature vRSS Description Virtual Receive Side Scaling distributes network interrupts to multiple vCPUs to avoid single vCPU bottleneck

Mostly complete Network performance New offloads and network optimizations to improve improvements performance for 10Gbps network cards. New Feature Availability Feature RHEL 7 Ubuntu 14.04 Ubuntu 13.10 SLES 11 SP3 Generation 2 VMs File Copy from Host to Guest

Dynamic memory 2D video driver VHDX online resize

Synthetic fibre channel Live backup

TRIM support Dynamic Memory Configuration parameters include Startup Memory, Minimum Memory and Maximum Memory. As memory demand increases memory is HotAdded to the virtual machine. Hot-Add mechanism increases the amount of memory available to (or addressable by) the virtual machine. The maximum amount of memory that can be made available to a virtual machine is capped by the Maximum Memory parameter. As memory demand changes, Hyper-V uses Ballooning to allocate/deallocate memory from the virtual machine. Dynamic Memory Available/Addressable memory in MB Output of watch free m command in Linux bash shell. Actual Allocated Memory Output of

Memory tab in Hyper-V Manager Dynamic Memory Notes Actual assigned memory to a virtual machine may be lower than what the virtual machine perceives. At times Hyper-V may not be able to service memory allocation requests. Hot-Add mechanism requires certain amount of pre-existing memory in the guest. Large sudden memory demands which require Hot-Add operation may fail. Applications that consume all available memory may prevent further Hot-Add of memory. Linux Hot-Add support still evolving. Live Virtual Machine Backup User Space Linux Guest File sys buffers Kernel

Hyper-V Hyper-V creates a Host VM checkpoint & tells LIS to unfreeze the FS. Hyper-V Guest Storage VHD VSS* Daemon LIS VSS components freeze the file system and flush in memory buffers VSS* Driver Hyper-V signals LIS inside the Linux guest to do backup steps Utility tells HyperV to start VM backup VSS in Hyper-V

creates a snapshot of volume hosting the VHD Backup Utility Utility copies filesystem consistent VHD from the snapshot Backup Storage *Somewhat mis-named. Does not implement Windows VSS. Demo New LIS Documentation Determining what features are supported where is complicated Version of LIS Linux distro Version of Hyper-V Various exceptions and notes New documentation has grids with supported features: http://technet.microsoft.com/en-us/library/dn531030.aspx LIS Source Code

Where to find it Upstream availability: http://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/tree/?id= HEAD F: F: F: F: F: F: F: F: F: F: arch/x86/include/asm/mshyperv.h arch/x86/include/uapi/asm/hyperv.h arch/x86/kernel/cpu/mshyperv.c drivers/hid/hid-hyperv.c drivers/hv/ drivers/input/serio/hyperv-keyboard.c drivers/net/hyperv/ drivers/scsi/storvsc_drv.c drivers/video/hyperv_fb.c include/linux/hyperv.h LIS Source Code Where to find it

LIS 3.x source code included in ISO downloadable from Technet Have also set up Github repo for LIS 3.5 https://github.com/ LIS/LIS3.5 LIS 3.5 Newest downloadable LIS package from Microsoft Binaries available for RHEL/CentOS 5.5-5.8/6.0-6.3 Can install into Linux kernels that have no LIS or have LIS 3.x Only for distros that do not have LIS already built-in. Can not install on distros with built-in LIS. Mind the gap: LIS 3.5 provides some features that are not available in 5.9, 5.10, and 6.4 Whats New? Support for RHEL & CentOS 5.5 & 5.6: response to customer demand for older versions Dynamic memory Ballooning only. Works with PAE kernels (PAE = physical address extension, for 32-bit kernels on >4Gbyte physical mem) PAE Enabled RHEL 5.6 Server with LIS 3.5 PAE Enabled

LIS 3.5 LIS 3.5 vs LIS 3.4 Feature Comparison Feature Hyper-V Version Availability RHEL 6.0-6.3 RHEL 5.7-5.8 RHEL 5.5-5.6 LIS 3.5 LIS 3.4 LIS 3.5 LIS 3.4 LIS 3.5 2012 R2, 2012,

2008R2 2012 R2, 2012, 2008R2 VLAN tagging and trunking 2012 R2, 2012, 2008R2

Live Migration 2012 R2, 2012, 2008R2 Static IP Injection 2012 R2, 2012

VHDX Resize 2012 R2 Virtual Fibre Channel 2012 R2 Core Networking

Jumbo Frames Storage LIS 3.4 LIS 3.5 vs LIS 3.4 Feature Comparison Feature Hyper-V Version Memory Configuration of MMIO gap 2012 R2 RHEL 6.0-6.3 RHEL 5.7-5.8 RHEL 5.5-5.6 LIS 3.5 LIS 3.4 LIS

3.5 LIS 3.4 LIS 3.5 LIS 3.4 Dynamic Memory Hot Add 2012 R2, 2012, 2008R2 Dynamic Memory Ballooning 2012 R2, 2012

2012 R2, 2012, 2008R2 Key/Value pair 2012 R2, 2012, 2008R2 Non-Maskable Interrupt

2012 R2 Video Hyper-V Specific Video Device Miscellaneous LIS: Known Issues Network performance with 10 Gbit NICs May experience throughput in the range of 2GBps to 7GBps. Not quite at par with Windows VMs. Fixes to improve performance up to 8.xGBps available in upstream kernel and distributions scheduled for release in Fall 2014. Linux VM images that run on Hyper-V 2008 R2 may not run on Hyper-V 2012 or 2012 R2 Hyper-V 2012 introduced an incompatibility that causes some versions of

LIS to not work Two Upgrade Paths Install LIS 3.5 into these images while still running on 2008 R2, then migrate. Start fresh by installing base Linux on 2012 or 2012 R2, then install LIS 3.5 . LIS: Version Mismatch Message in Event Log Ignore Hyper-V messages about incompatible LIS version and being in an unsupported state. (KB 2956569) LIS: What version do I have? LIS is a collection of drivers no single version # For distributions with built in LIS components (Ubuntu 13.10, SLES 11 SP3) no need to determine version numbers. Ignore messages that indicate LIS version to be 3.1 For distributions that require manual LIS installation (RHEL 5.5-5.8/6.0-6.3), use the following steps to determine LIS version number: # rpm qa | grep hyper-v The above command should result in an output similar to below: # microsoft-hyper-v-rhel6012.3.5-1.20131031.x86_64 The highlighted yellow portion of the above string indicates that the LIS Tips and Tricks Use Static MAC Addresses in High Availability (HA) Scenarios.

Use I/O scheduler NOOP for better disk I/O performance. Use manual steps to install Hyper-V related daemons on certain distributions. On Ubuntu install the hv-kvp-daemon-init package. On CentOS/Oracle/RHEL use installation GUI to ensure that daemons are installed. FreeBSD Initial Integration Services now complete Built-in to FreeBSD 10 KVP support is available in a separate port Ports available for FreeBSD 8.3, 9.1, 9.2 Community support only for now No System Center support at this time Currently trying to bring virtual appliance manufacturers on board. FreeNAS 9.2.1 for Hyper-V available http://download.freenas.org/9.2.1/HYPERV/RELEASE/ FreeBSD Feature Chart Feature Hyper-V Version Availability Core

10 Built in 2012 R2, 2012, 2008R2 9.2 9.1 8.3 FreeBSD Ports FreeBSD Ports FreeBSD Ports Networking Jumbo Frames 2012 R2, 2012, 2008R2 VLAN tagging and 2012 R2, 2012,

trunking 2008R2 Live Migration 2012 R2, 2012, 2008R2 Static IP Injection 2012 R2, 2012 Storage VHDX Resize

Virtual Fibre Channel Live VM Backup 2012 R2 2012 R2 2012 R2 FreeBSD Feature Chart Feature Hyper-V Version Memory Configuration of MMIO gap 2012 R2 Dynamic Memory Hot Add 2012 R2, 2012, 2008R2 Dynamic Memory Ballooning

2012 R2, 2012, 2008R2 10 9.2 9.1 8.3 Built in FreeBSD Ports FreeBSD Ports FreeBSD Ports

(Note 1) Video Hyper-V Specific Video Device 2012 R2, 2012, 2008R2 Miscellaneous Key/Value pair 2012 R2, 2012,

2008R2 Note 1: Key/Value pair for FreeBSD 10 Non-Maskable 2012 R2a separate will beInterrupt available through FreeBSD port Availability on Azure FreeBSD 10 Virtua l Machine Image available in VMDepot For the community, by the community. Related content Breakout Sessions (session codes and titles) DCIM-B217 Managing Linux with Windows Server 2012 R2 Hyper-V and Microsoft System Center 2012 R2: For the Windows Administrator DCIM-B342 Linux/UNIX Compliance and Patch Management with Microsoft System Center 2012 R2 PCIT-B336 Managing Mac OS X Clients and Linux Servers Using Microsoft System Center Configuration Manager Labs (session codes and titles)

DCIM-H326 Managing Linux Servers with Microsoft System Center 2012 R2 PCIT-H311 Implementing Linux Clients in Microsoft System Center Links of Interest Channel 9 Talk on Linux/FreeBSD Integration Services on Hyper-V http://channel9.msdn.com/Shows/Edge/Edge-Show-87-Linux-Integr aton-Services-for-Hyper-V Linux Virtual Machines on Hyper-V http://technet.microsoft.com/en-us/library/dn531030.aspx Linux Integration Services for Microsoft Hyper-V Forum http://technet.microsoft.com/en-us/library/dn531030.aspx For More Information Windows Server System Center Azure Pack Windows Server 2012 R2 Microsoft Azure

Microsoft Azure http://technet.microsoft.com/en-US/evalcenter/dn20 5286 System Center 2012 R2 http://technet.microsoft.com/en-US/evalcenter/dn20 5295 Azure Pack http://www.microsoft.com/en-us/server-cloud/produc ts/windows-azure-pack http://azure.microsoft.com/en-us/ Come Visit Us in the Microsoft Solutions Experience! Look for Datacenter and Infrastructure Management TechExpo Level 1 Hall CD Resources Learning Sessions on Demand http://channel9.msdn.com/Events/Tec hEd TechNet Resources for IT Professionals

http://microsoft.com/technet Microsoft Certification & Training Resources www.microsoft.com/learning msdn Resources for Developers http://microsoft.com/msdn Complete an evaluation and enter to win! Evaluate this session Scan this QR code to evaluate this session. 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Recently Viewed Presentations

  • Visceral motor system - WordPress.com

    Visceral motor system - WordPress.com

    Edinger-Westphal nucleus of the third cranial nerve: pupil constriction. Salivatory nuclei (superior and inferior): tear glands and salivatory glands. Dorsal motor nucleus of vagus: visceral targets, activity of the heart. Nucleus ambiguus: activity of the heart (slowing the heart beat).
  • Presentación de PowerPoint

    Presentación de PowerPoint

    Por ejemplo, según S. Ospina (1953) con una pendiente de 6% una carretera puede circular nuestras cordilleras sin más desarrollos que los impuestos por los accidentes geográficos; en cambio un ferrocarril de 3% de pendiente máxima tendría que "emplear desarrollos...
  • 1. 2. 3. 4. 5. 6. 7. Changes

    1. 2. 3. 4. 5. 6. 7. Changes

    How many of you want to be plumber, nurse, electrician, banker, mechanic, teacher. The chances are you will end up looking after our kids, each others kids.
  • Geometric ISOMERS of Alkenes - Seneca Valley School District

    Geometric ISOMERS of Alkenes - Seneca Valley School District

    Geometric ISOMERS of Alkenes. Chapter 12 Section 3. The CARBON - CARBON double bond is rigid (no free rotation) because of the shapes of the orbitals involved in its formation. Pi bondSigma bond. 2 p-orbital electrons the electrons lie .
  • www.historiskastudier.gu.se

    www.historiskastudier.gu.se

    [email protected] tar hand om våra resebeställningar och hotellbokningar. Du kan beställa resan själv via VIAEGENCIA eller SJ, innan du gör det kontakta Pirjo eller Helena. Betalkort
  • 1916 Uprising Assessing what the children already know

    1916 Uprising Assessing what the children already know

    The Aud and the Asgard. The Asgard was a relatively small boat (yacht): 900 guns were landed in Howth, Co. Dublin in July 1914 by Erskin Childers and his family. In skirmishes that followed that evening in Dublin, four Irish...
  • Static Program Analysis via Three-Valued Logic

    Static Program Analysis via Three-Valued Logic

    Times New Roman MS Pゴシック Arial Comic Sans MS Courier New Math A Symbol Math B Math C Wingdings Default Design 1_Default Design 2_Default Design Microsoft Clip Gallery Microsoft Word Document Microsoft PowerPoint Slide Static Program Analysis via Three-Valued Logic...
  • 12.1 Refraction - Weebly

    12.1 Refraction - Weebly

    Partial reflection and refraction. Refraction is often accompanied by reflection. Some of the light that hits the water is refracted but also some is reflected. This is called partial reflection and refraction. If glass has a special coating to allow...