Monday, December 02, 2019

Creating Ubuntu 19.04 using Quick Create mode in Hyper-V with Enhanced Session Mode

Hyper-V that is shipped with Windows 10 1903 is supposed to have Enhanced Session Mode support for Ubuntu 19.04 when the VM was created using Quick Create option. As of December 1, 2019 Enhanced Session Mode is not working, as a workaround, do the following steps.

Assuming a Ubuntu 19.04 VM was created using "Quick Create" option, do:

1. From the host machine, run PowerShell as administrator
PS c:\> Set-VM -VMName __Ubuntu_VM_Name_here__ -EnhancedSessionTransportType HvSocket
Replace __Ubuntu_VM_Name_here__ with the Hyper-V VM name. You have to ensure that the VM is not running at this point.

2. Power-up the VM, and then install linux-azure kernel, like:
$: sudo apt install linux-azure

3. Shutdown the VM. This is very important, restarting the VM does not work. You can do, like:
$: sudo shutdown -h now

Once the VM is turned off, turn it back on. It should now have Enhanced Session Mode. For example, the screen dimension can be changed on connection, copy/paste between host and guest should work, also drive re-direction should work.

References:
https://wiki.archlinux.org/index.php/Hyper-V
https://github.com/microsoft/linux-vm-tools

No comments:

Configuring TUN/TAP virtual network interface for use with QEMU on Xubuntu 24.04

Configuring TUN/TAP virtual network interface for use with QEMU on Xubuntu 24.04 I am planning to run qemu-system-ppc to play around QEMU ...