I don't like the idea of needing an additioinal USB device in order to get sound working but fortunately you can actually get sound in Ubuntu without this requirement, this is because Ubuntu, like many other distros, uses pulseaudio, which can be configured as a service on your MacOS and as a client inside Ubuntu. So for now until the Parallels team gives us native support, what you can do is the following:
First install pulseaudio on your host, in order to do this I used homebrew:
Code:
brew install pulseaudio
Next edit your pulseaudio config file, if you installed through homebrew, just edit the file /opt/homebrew/etc/pulse/default.pa
Code:
sudo nano /opt/homebrew/etc/pulse/default.pa
In this file you should find 2 lines like this:
Code:
### Network access (may be configured with paprefs, so leave this commented
### here if you plan to use paprefs)
#load-module module-esound-protocol-tcp
#load-module module-native-protocol-tcp
Uncomment them and replace them to something like this:
Code:
### Network access (may be configured with paprefs, so leave this commented
### here if you plan to use paprefs)
load-module module-esound-protocol-tcp auth=anonymous=1
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;10.211.55.0/24
Replacing 10.221.55.0/24 with your Parallels virtual network IP range. For security reasons I do not recommend using your network adapter's IP range but your Parallels virtual network one, so noone should be able to connect from outside.
Now you can start the pulseaudio service, if you want it to work everytime you boot your guest, you can start it as a service with this command:
Code:
brew services start pulseaudio
Now on your Ubuntu just edit your /etc/pulse/client.conf file to point to your host service:
Code:
sudo nano /etc/pulse/client.conf
Uncomment the default-server line and add the IP address of your host on the virtual device network:
Code:
default-server = tcp:10.211.55.2
Reboot and voilá.
Click to expand...