Monday, August 10, 2015

Clipboard for X11 (debian, ubuntu, etc) under Hyper-V

Introduction

I was unable to get the Hyper-V clipboard to works when the guest os is a linux box.
Follow is a workaround, what you need is an installation of cygwin including packages of xorg-server.

Linux Setup

Enable xdmcp ( gdm )

Assuming you are using the default gnome desktop manager (gdm) go to edit /etc/gdm3/daemon.conf and set xdmcp on with the follow
[xdmcp]
Enable=true

Disable ipv6

To let gdm works with xdmcp you need to disable ipv6, then edit /etc/default/grub and disable the ipv6 setting the follow
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet"
then update the grub loader
update-grub
and reboot the linux system.

Windows client

Establish a connection to the session manager using
X -query <ip-address-of-linux-box>

Now copy/paste works as expected.


Creative Commons License
Clipboard for X11 (debian, ubuntu, etc) under Hyper-V by Lorenzo Delana is licensed under a Creative Commons Attribution 4.0 International License.

No comments:

Post a Comment