Fix Windows XP host under Ubuntu VMWare with “Failed to open sound device /dev/dsp” error

Introduction :
After transitioning to Ubuntu as my main OS, I encounter a few hiccups thats often trivial in MS Windows XP. One problem I snag into was after installing guest MS Windows XP under Ubuntu’s vmware workstation, the sound doesn’t work. You get the error of :
“Failed to open sound device /dev/dsp: Permission denied Virtual device sound will start disconnected.”

Enviroment :
Ubuntu 7.10 – the Gutsy Gibbon
VMware? Workstation 6.0.3 build-80004

Installation / Usage :

1. sudo -i
2. aptitude install alsa-oss
3. chmod +s /usr/lib/libaoss.so.*
4. mv /usr/bin/vmware /usr/bin/vmware.orig
5. echo ‘#!/bin/bash’ > /usr/bin/vmware
6. echo ‘LD_PRELOAD=libaoss.so exec /usr/bin/vmware.orig “$@”‘ >> /usr/bin/vmware
7. chmod +x /usr/bin/vmware
8. exit

I also created a “.asoundrc” file in my home directory as suggested by one of the forumer. The .asoundrc file (in your home directory) and /etc/asound.conf (for system-wide settings) are the configuration files for ALSA drivers. Most applications will work without them. The main use of these two configuration files is to add functionality such as routing and sample-rate conversion. It allows you to create “virtual devices” that pre or post-process audio streams. Any properly written ALSA program can use these virtual devices as though they were normal devices.

creating a .asoundrc file in the home directory. This is all that it contains:

Code:

pcm.!default {
type plug
slave.pcm “dmix”
}

After that everything worked fine as it should be.

References :
Explanation of .asoundrc file

Your Ad Here

← Previous PageNext Page →

server space web hosting transition backup Tech Ed SEA 2008 Tech·Ed SEA 2008 Limited Edition T-shirt MPLS freebies Microsoft TechEd SEA 2008 IP Bgp hosting Wine Registry Tweak blogging VMware phishing DHCP contest Putty Freeware Photography router Security Ubuntu Linux Cisco Microsoft Network