azurelinux icon indicating copy to clipboard operation
azurelinux copied to clipboard

[Feature Request] Support of Hyper-V enhanced session mode to allow copy/paste and text selection with mouse via Hyper-V Virtual Machine Connection

Open ohault opened this issue 3 years ago • 2 comments

Is there packages to install to support mouse integration to select text and copy/paste integration when accessing Mariner 2.0 via Hyper-V Virtual Machine Connection ?

ohault avatar Jun 19 '22 12:06 ohault

You need the Hyper-V Mouse interactivity driver installed in the kernel. It's possible to enable it by modifying the currently running kernel config file and doing a reboot. But this really should be enabled in the WSL2 kernel, which Mariner uses, with a few extra configurations. I personally enable this option myself when building a new kernel from WSL2 kernel repo.

WSLUser avatar Jun 27 '22 12:06 WSLUser

I would like to configure a decent text mode console access to Mariner 2.0 though Hyper-V Virtual Machine Connection.

I have currently the following loaded modules :
image

Copy/Paste : Not working Scrolling : Not working Mouse support : Not working Text selection : Not working Hyper-V Enhanced session mode : Not working

ohault avatar Jun 27 '22 18:06 ohault

I was also facing issue with copy/pasting with virt-manager. I found a work around with serial console.

Serial console can be enabled as mentioned in link systemctl enable [email protected]

Post that if you are using kvm then using virsh command serial console can be accessed via terminal.

To start virtual machine with console

virsh start --console name_of_virtual_machine

To connect to already started virtual machine

virsh console name_of_virtual_machine

Another way would be to enable ssh

soo-shan avatar Jul 18 '23 18:07 soo-shan