Step by step instructions for Hyper-V to get sound via an Advanced Session Mode
1. create a new virtual machine with Hyper-V / I assume that everyone here knows how to create a virtual computer in Hyper-V
but check in advance whether extended session mode is switched on in Hyper-V settings
- Select Hyper-V settings
- Under Server, select Enhanced session mode policy
- Select the Allow enhanced session mode check box
- Under User, select Enhanced session mode
- Select the Allow enhanced session mode check box
- Click Ok
2. after setting up the virtual computer start Microsoft Powershell as admin
execute the command with the virtual computer name (here CommodoreOS) in Powershell
Set-VM -VMName "CommodoreOS" -EnhancedSessionTransportType HvSocket
3. connect and start the virtual computer (CommodoreOS) <- my virtual computer name
start installation with the default parameters i use the ISO CommodoreOS-20231213.iso
the restart after the creation takes a while until then -> black-screen.
back in the OS I leave everything at the basic settings such as User = Commodore and Password = C=
4. Settings and updates :
- Call up the command line interface from the bar below
- First update and upgrade everything before we continue , execute commands:
sudo apt-get update
sudo apt-get upgrade
when upgrading, answer everything with Y , upgrading takes a while
- the upgrade is finished we restart the virtual computer
5. Setp remote desktop / call up the command line interface from the bar below and execute commands:
sudo apt-get install xrdp xorgxrdp
sudo adduser xrdp ssl-cert
sudo ufw allow 3389/tcp
sed -i_orig -e 's/port=3389/port=vsock:\/\/-1:3389/g' /etc/xrdp/xrdp.ini
sed -i_orig -e 's/security_layer=negotiate/security_layer=rdp/g' /etc/xrdp/xrdp.ini
sed -i_orig -e 's/crypt_level=high/crypt_level=none/g' /etc/xrdp/xrdp.ini
sed -i_orig -e 's/bitmap_compression=true/bitmap_compression=false/g' /etc/xrdp/xrdp.ini
sed -i_orig -e 's/autologin-user=Commodore/#autologin-user=Commodore/g' /etc/lightdm/lightdm.conf
sed -i_orig -e 's/autologin-user-timeout=0/#autologin-user-timeout=0/g' /etc/lightdm/lightdm.conf
is finished , restart the virtual computer
Hyper-V should now recognize the remote and we can log in via xrdp. ( User = Commodore and Password = C= )
but for now without sound
6. Sound setup
back in the os call up the command line interface from the bar below and execute commands:
sudo apt-get install libltdl-dev libpulse-dev libtool
cd Downloads
git clone
https://github.com/neutrinolabs/pulseau ... e-xrdp.git
cd pulseaudio-module-xrdp
./scripts/install_pulseaudio_sources_apt_wrapper.src
-> that takes a while
If the script has run successfully it will show you the exact path
from PULSE_DIR !! this will be important to know later ,
for us it is: PULSE_DIR=/home/Commodore/pulseaudio.src
then continue with:
./bootstrap
./configure PULSE_DIR=/home/Commodore/pulseaudio.src
make
sudo make install
ls $(pkg-config --variable=modlibexecdir libpulse) | grep 'xrdp'
If everything is correct , reboot and log in remotely
(if the extended session message does not pop up, click on the extended session icon above)
and we hear SOUND.
Hope that wasn't too difficult and it worked without any problems