Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to get my sound card to work on vmware, i set the sound card as autodetect but no luck.
I don't know if it helps but all my progs use alsa to play sound? so what do i have to give as the device path for vmware to find my sound card?
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Are you talking about a vmware guest OS using the same model sound card as installed? If so as far as I know the guest OS use a virtual generic sound device and then vmware transfer to the real sound device.
If normal linux sound is fine and the vmware has no sound then maybe you may need to configure a dmix setup for your sound card. Search here for dmix for info.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Have you installed the vmware-tools for the guest OS? If guest tools exist for the OS. Did not say which guest OS you were running. Been a while since setting up a guest OS under vmware host Linux. Haven't needed a new guest for about 3 years.
As far as I know all linux distro use the device block /dev/dsp for main sound output.
Now the guest OS will not not see the real sound card on the machine. The guest is running in a virtual machine enviroment and only sees that the virtual bios and hardware that is defined.
VMware Server provides a sound device compatible with the Creative Technology Sound Blaster Audio API adapter and supports sound in Windows 95, Windows 98, Windows Me, Windows NT, Windows 2000, Windows XP, Windows Server 2003, and Linux guest operating systems. The VMware Server sound device is disabled by default and must be installed using the virtual machine settings editor (VM > Settings).
Sound support includes PCM (pulse code modulation) output, and input. For example, you can play .wav files, MP3 audio, and Real Media audio. MIDI output from Windows guests is supported through the Windows software synthesizer. MIDI input is not supported, and no MIDI support is available for Linux guests.
Windows 2000, Windows XP, and most recent Linux distributions automatically detect the sound device and install appropriate drivers for it.
The same goes true for Workstation and Player.
I guess third time is the charm for NDR008 to understand that VMware does not handle PCI devices. Soon VMware will handle PCI and PCIe devices directly when virtual machine extensions starts to be used extensively by chipset and manufactures that makes expansion cards.
vmware uses the old OSS drivers. This means it wants the whole soundcard. If you're using gnome or KDE, there'll probably already be a sounds demon attached to the sound ward, and that will prevent vmware from being able to use the soundcard.
Disable the sound demon, make sure no programs are using the sound card (that includes flash player in web pages, music players and so on), and then start vmware.
The old OSS drivers are a pain in the backside for this reason, as are sound demons.
matthewg42 is the only one who understood what i was saying.
I KNOW that vmware doesn't handle the pci devices. It will act as an application on the host os, and pretend to be a computer for the guest os. when guest os does something like play a sound file, vmware will act as an application and make the host os play the sound.
I have used vmware before but in the reversed situation.
i wanted to run windows XP on linux.
My problem was simple, when I was setting up the virtual devices for my guest os, i selected auto detect for everything, but sound didn't work, on booting the guest os it would say no sound card detected. and the vmware player would show a small cross on the speaker symbol in the bottom right.
For OSS (Open Sound System), it depends on the sound card. If the sound card has hardware mixing, there will not be any problems playing multiple sound streams. For a sound card that does not have hardware mixing, you will have to setup software mixing which is not transparent with each program and the program is picky on what options you used to setup software mixing. Majority of the distributions uses artsd which creates a lot of problems and it is worst than other software mixer. Other software mixing are esound (Enlightened Sound Daemon), ALSA's (Advanced Linux Sound Architecture) dmix library, and PulseAudio (aka Polypaudio).
VMware is an application but no it does not play sounds as you just stated. It sends the audio in chunks or packets, but does not act like a sound player.
BTW, I prefer a long post instead of a few sentences. Your first post was not detail enough and it is like pulling teeth just to get the information. I thought you did not know because your second post states.
Quote:
yeah what i meant is that vmware cannot detect a sound card installed on my pc/linux, but in fact sounds works well on linux (my host os).
You can not. VMware for Linux only can do OSS. Hopefully, their next version will be using OpenSDL, so the virtual machine can render 3D, provide better fullscreen support, and give us options of sound architecture like ALSA. Right now, you can try an experimental patch that is wrapper that outputs to artsd or esound.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.