There should be a double dash before the version number. I noticed in your comment that it shows as pulsever=$(pulseaudio –version | awk ‘’). The pulsever line is creating a variable that contains the pulseaudio version number so that the next line can change to the correct directory. I ran through the instructions as I posted them again to make sure I didn’t miss something. It would be possible to convert the daemon to a service, but that is beyond the scope of this post. PulseAudio runs in the user space and requires active logon to work. Please Note: These instructions will not work if your VM is configured for auto logon. Once you have completed the operating system installation, run the software updater (in the apps menu) until everything is patched to the newest version.
![pulseaudio no sound pulseaudio no sound](https://user-images.githubusercontent.com/7881398/35479555-463e7cfe-0435-11e8-88f1-629399b9631c.png)
Deploy the VM as outlined in the original document choosing the 20.04 version instead. I’ve spent a lot of time getting pass-through sound working in 20.04. PulseAudio requires an enhanced XRDP session to work. When you connect to it from the Hyper-V manager you are directly viewing the machine’s console. The 20.04 edition of Ubuntu is not running XRDP (Linux RDP Server) by default. I believe most of the people that have issues are choosing the 20.04 version of Ubuntu when deploying their Hyper-V VM. It has been brought to my attention that the instructions do not work for everyone.
![pulseaudio no sound pulseaudio no sound](http://myphotos.mypclinuxos.com/images/surveyorsid/audiooutputfailed1.png)
#Pulseaudio no sound how to#
In a previous article I explained how to use PulseAudio with XRDP to allow your Ubuntu Hyper-V VM to pass audio through your host machine’s sound system.