One of the weaknesses of Hyper-V is that you cannot get sound unless VM has an RDP server.
Ubuntu can now be installed with XRDP enabling enhanced mode. There are many web guides how to install Ubuntu in enhanced mode e.g.
How to Enable Hyper-V Enhanced Session for Ubuntu 20.04 VMs (nakivo.com)
(I wrote a tutorial but it is out of date).
Note: do not use the option in Hyper-V but install from downloaded iso, as for some reason steps to include xrdp fail.
However, getting sound was a different matter. There was a guide by author of link below, but I could never get it to work.
However, author has recently updated guide to work for 20.04
Deploy a Linux VM on Hyper-V with Sound 20.04 Edition – techbloggingfool.com
Here are the commands - enter one at a time
Then you have to configure Hyper-V enhanced menu. These two screenshot are from above link.
I had to manually start the sound daemon.
Went to youtube, loaded favourite my Dolly Parton video, and BOOM - Sound in Hyper-V for Ubuntu.
I make no claim to any part of this and 100% Kudos to Kevin Trent the author.
-----------------------------------------------------------------------------------------------------------------------------


Ubuntu can now be installed with XRDP enabling enhanced mode. There are many web guides how to install Ubuntu in enhanced mode e.g.
How to Enable Hyper-V Enhanced Session for Ubuntu 20.04 VMs (nakivo.com)
(I wrote a tutorial but it is out of date).
Note: do not use the option in Hyper-V but install from downloaded iso, as for some reason steps to include xrdp fail.
However, getting sound was a different matter. There was a guide by author of link below, but I could never get it to work.
However, author has recently updated guide to work for 20.04
Deploy a Linux VM on Hyper-V with Sound 20.04 Edition – techbloggingfool.com
Here are the commands - enter one at a time
Code:
sudo apt-get install git libpulse-dev autoconf m4 intltool build-essential dpkg-dev libtool libsndfile-dev libspeexdsp-dev libudev-dev -y
sudo cp /etc/apt/sources.list /etc/apt/sources.list~
sudo sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list
sudo apt-get update
sudo apt build-dep pulseaudio -y
cd /tmp
sudo apt source pulseaudio
pulsever=$(pulseaudio --version | awk '{print $2}')
cd /tmp/pulseaudio-$pulsever
sudo ./configure
sudo git clone https://github.com/neutrinolabs/pulseaudio-module-xrdp.git
cd pulseaudio-module-xrdp
sudo ./bootstrap
sudo ./configure PULSE_DIR="/tmp/pulseaudio-$pulsever"
sudo make
cd /tmp/pulseaudio-$pulsever/pulseaudio-module-xrdp/src/.libs
sudo install -t "/var/lib/xrdp-pulseaudio-installer" -D -m 644 *.so
Then you have to configure Hyper-V enhanced menu. These two screenshot are from above link.
I had to manually start the sound daemon.
Went to youtube, loaded favourite my Dolly Parton video, and BOOM - Sound in Hyper-V for Ubuntu.
I make no claim to any part of this and 100% Kudos to Kevin Trent the author.
-----------------------------------------------------------------------------------------------------------------------------


Last edited:
My Computer
System One
-
- OS
- Windows 10 Pro + others in VHDs
- Computer type
- Laptop
- Manufacturer/Model
- ASUS Vivobook 14
- CPU
- I7
- Motherboard
- Yep, Laptop has one.
- Memory
- 16 GB
- Graphics Card(s)
- Integrated Intel Iris XE
- Sound Card
- Realtek built in
- Monitor(s) Displays
- N/A
- Screen Resolution
- 1920x1080
- Hard Drives
- 1 TB Optane NVME SSD, 1 TB NVME SSD
- PSU
- Yep, got one
- Case
- Yep, got one
- Cooling
- Stella Artois
- Keyboard
- Built in
- Mouse
- Bluetooth , wired
- Internet Speed
- 72 Mb/s :-(
- Browser
- Edge mostly
- Antivirus
- Defender
- Other Info
- TPM 2.0