Linux Integration Services Version 4.0 for Hyper-V

Here is the new version of Linux IS for Hyper-V

Current version: 4.0.11 Please refer to the Linux Virtual Machines on Hyper-V topics for up to date information on the LIS feature set, all supported Linux distributions, availability and download locations.

When installed in a supported Linux virtual machine running on Hyper-V, the Linux Integration Services provide:

 Name  Description
Driver support Linux Integration Services supports the network controller and the IDE and SCSI storage controllers that were developed specifically for Hyper-V.
Fastpath Boot Support for Hyper-V  Boot devices now take advantage of the block Virtualization Service Client (VSC) to provide enhanced performance.
Time Keeping The clock inside the virtual machine will remain accurate by synchronizing to the clock on the virtualization server via Timesync service, and with the help of the pluggable time source device.
Integrated Shutdown Integrated Shutdown: Virtual machines running Linux can be shut down from either Hyper-V Manager or System Center Virtual Machine Manager by using the “Shut down” command.
Heartbeat This feature allows the virtualization server to detect whether the virtual machine is running and responsive.
Symmetric Multi-Processing (SMP) Support Supported Linux distributions can use multiple virtual processors per virtual machine. The actual number of virtual processors that can be allocated to a virtual machine is only limited by the underlying hypervisor.
KVP (Key Value Pair) Exchange Information about the running Linux virtual machine can be obtained by using the Key Value Pair exchange functionality on the Windows Server 2008 virtualization server.
Integrated Mouse Support Linux Integration Services provides full mouse support for Linux guest virtual machines.
Live Migration Linux virtual machines can undergo live migration for load balancing purposes.
Jumbo Frames Linux virtual machines can be configured to use Ethernet frames with more than 1500 bytes of payload.
VLAN tagging and trunking Administrators can attach single or multiple VLAN ids to synthetic network adapters.
Static IP Injection Allows migration of Linux virtual machines with static IP addresses.
Linux VHDX resize Allows dynamic resizing of VHDX storage attached to a Linux virtual machine.
Synthetic Fibre Channel Support Linux virtual machines can natively access high performance SAN networks.
Live Linux virtual machine backup support Facilitates zero downtime backup of running Linux virtual machines.
Dynamic memory ballooning support Improves Linux virtual machine density for a given Hyper-V host.
Synthetic video device support Provides improved graphics performance for Linux virtual machines.
PAE kernel support Provides drivers that are compatible with PAE enabled Linux virtual machines.


Guest Services in Hyper-V and Copy-VMFile

Русская версия/Russian version

Windows Server 2012 R2 provides a lot of updates and improvements to Hyper-V. The most visible change is the new guest service “Hyper-V Guest Service Interface” or just “Guest Services”, which disabled ,by default in the properties of every VM on 2012 R2 Hyper-V.
This service has a really modest functional, but extremely useful. Guest Services allows you to copy the necessary files between the host (server Hyper-V, on which are placed the target VMs = parent partition) and virtual machines (= child partition) without any load on the network components. The copying process is provided by link between Hyper-V host and VM through vmbus (Virtual Machine Bus).hv_arch
Also, the vmicguestinterface service (from the virtual machine side) responsible for functionality integration service components  on the guest OS level.   Altogether,  we  have got native feature for point-to-point (for example, host 1 VM in the DMZ) or multi-point (host VMs) copying necessary files between Hyper-V partitions

Before using this new feature you have to check:

1) Hyper-V Integration services must be up-to-date. Version has to be at least 6.3.9600.16384.

Get-VM | Select Name, IntegrationServicesVersion

2) Guest Services enabled for target VMs

#Gets current VM configuration
Get-VM|Get-VMIntegrationService|ft VmName,Name,Enabled -AutoSize
#Enabling Guest Service
Get-VM | Enable-VMIntegrationService -Name "Guest Service Interface"

3) vmicguestinterface service must be running inside the guest OS

Get-Service vmicguestinterface


Service management is provided by only one cmdlet  Copy-VMFile ((Microsoft.HyperV.PowerShell.GuestServiceInterfaceComponent) , which has a list of required parameters:

-SourcePath = what we want to copy (UNC is supported!)
-DestinationPath = where we want to save files
-FileSource = file source type
-VMName   = VM names


#Copies 2012R2.ISO file from file source HOST to VM with name Server 2012R2_1 and saves files to pre-created folder C:\ISO on guest OS
Copy-VMFile "Server2012R2_1" -SourcePath C:\ISO\2012R2.iso -DestinationPath C:\ISO\2012R2.iso -FileSource Host

If you don’t have pre-created destination path – you will get error. To automate process of creation necessary files you have to use -CreateFullPath  parameter that checks and creates folders, if they are not exist.

Copy-VMFile "Server2012R2_1" -SourcePath C:\ISO\2012R2.iso -DestinationPath C:\ISO\2012R2.iso -FileSource Host -CreateFullPath

Process of copying:


Final result:copyvmfile_3