I came across a weird issue today were I was not able to copy files into a guest VM 2012 R2 with Allow Enhanced Session Mode in Hyper-V 2012 R2.
The resolution is easy if you understand the underlying architecture behind Enhanced Session Mode.
Here is the definition:
Hyper-V uses the Virtual Machine Connection tool to connect to virtual machines by using RDP. Prior to Windows Server 2012 R2, the Virtual Machine Connection tool provided only basic redirection of the virtual machine screen, keyboard, and a mouse, such as a Keyboard Video Mouse switch over IP. The tool also provided limited Copy and Paste functionality, which was limited to text and did not support any other content such as graphics or files.
In Windows Server 2012 R2, you still use the same method to connect to virtual machines, but Hyper-V also supports enhanced session mode. Enhanced session mode utilizes the Remote Desktop Services component in virtual machines, and establishes full Remote Desktop sessions over VMBus. This means that even if the virtual machine has no network connectivity (and there is network connectivity to the Hyper-V host on which virtual machine is running), you can connect to the virtual machine by using the Virtual Machine Connection tool using enhanced session mode.
For additional information, see Virtual Machine Connection – Enhanced Session Mode Overview.
The first is as follows:
Let’s check the Hyper-V Server settings – Enhanced Session Mode Policy:
Great, it’s enabled
Let’s check the VM settings under Integration Services – Guest Services:
Again, it’s enabled, mummm… :(
The second resolution is as follows:
Since the Enhanced session mode utilizes the Remote Desktop Services component in virtual machines, let’s check the Remote Desktop Services service inside the virtual machine.
As you can see the Remote Desktop Services service is not started…
Let’s turn it on…
net start “TermService”
Here you go, the Virtual Machine disconnects and reconnects again using RDP over VMBus.
I was able to start copying files to simply drag and drop them to the virtual machine, even if the virtual machine does not have network connectivity :)
Enhanced session mode and full Remote Desktop are available even when virtual machines are running on Hyper-V on Server Core or Hyper-V Server 2012 R2.
Hope this will help someone facing a similar issue.
Enjoy the day!