question

19Peter86-1614 avatar image
0 Votes"
19Peter86-1614 asked 19Peter86-1614 answered

Debian 9.13 hyper-v not working

Installed Debian 9.13 (4.9.0-16-amd64) into Hyper-V (guest), running on Windows 10 Pro (host). I expected the integration services to be working because everywhere it's mentioned these are included by default.

However, simple thing like copy and paste a file from host to guest does not work (file is not visible in the guest, no file created). So to me, it seems the integration services are not working as they should be?

I've checked the status on the host: Get-VMIntegrationService -vname "Debian 9.13" returned 'True' for everything. Only for VSS it reports a version mismatch.
I've checked the status on the guest: lsmod shows the five hv_ (utils, balloon, netvsc, storvsc, vmbus) modules loaded. Also installed the hyperv-daemons using apt and three services (fcopy, kvp, vss) are running. Checked the journalctl and can't find a (error)message related to these indicating something is wrong.

At this point I'm wondering where to look next? What is it I missed, or configured wrong?

windows-server-hyper-v
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hello @19Peter86-1614,

Thank you for your question and reaching out. My name is Prakash and I’d be more than happy to help you with your query.

Enhanced Session Mode enables the transfer of files to and from virtual machines through the Clipboard copy-and-paste operations. However, copying and pasting files through the Clipboard is disabled if the Do not allow drive redirection policy option is enabled.

Below is Microsoft reference article related to your scenario.

https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/supported-debian-virtual-machines-on-hyper-v

https://docs.microsoft.com/en-us/troubleshoot/windows-server/virtualization/copy-paste-not-work-hyper-v-vm-vmconnect-enhanced-session-mode




--If the reply is helpful, please Upvote and Accept as answer--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ejsiron avatar image
0 Votes"
ejsiron answered

Copy/paste of files only works for Windows virtual machines because of console software interoperability.
For a Linux VM, use Copy-VMFile.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

19Peter86-1614 avatar image
0 Votes"
19Peter86-1614 answered

Figured out the way to proceed. It appears the 'Enhanced integration' is required to get the functions working (using the console to copy files is not acceptable off course). For this to work the kernel of Debian 9 needs to be upgraded to at least 4.14 (with support for hyper-v sockets) and (one of) the latest version of XRDP.

After doing so copy & paste works, and also shared drives.

Would have helped a lot if these requirements are mentioned somewhere in the documentation for Hyper-V, specific with the versions.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.