Debian 9.13 hyper-v not working

19Peter86 1 Reputation point
2021-10-27T10:04:23.603+00:00

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?

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,531 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Limitless Technology 39,341 Reputation points
    2021-10-29T12:55:40.467+00:00

    Hello @19Peter86 ,

    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://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/supported-debian-virtual-machines-on-hyper-v

    https://learn.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--

    0 comments No comments

  2. Eric Siron 1,251 Reputation points MVP
    2021-10-29T17:48:12.687+00:00

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

    0 comments No comments

  3. 19Peter86 1 Reputation point
    2021-11-02T13:58:04.27+00:00

    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.

    0 comments No comments