No sound from VM (Windows 7) on qemu with virt-manager

I have installed Windows 7 (64bit) on qemu with virt-manager.
It seems that audio works fine inside the guest os, but I can hear no sound.
[Guest]
Guest os: Windows 7 (64 bit)
Sound driver: ich6
Console: Spice (VNC doesn't work.)
[Host]
linux 3.12.8-1 (base)
qemu 1.7.0-1
virt-manager 0.10.0-4
libvirt 1.2.1-1
According to
https://bbs.archlinux.org/viewtopic.php?id=157604
I did as follow before launch the VM, but it doesn't solve the problem.
export QEMU_AUDIO_DRV=alsa
What shoud I check and do?
For additional information,
% ps aux | grep kvm                                                     [~]
root       252  0.0  0.0      0     0 ?        S<   02:25   0:00 [kvm-irqfd-clea
n]
nobody   10199 63.0 27.0 1613768 1070088 ?     Sl   11:31   0:34 /usr/sbin/qemu-system-x86_64 -name win7qemu002 -S -machine pc-i440fx-1.7,accel=kvm,usb=off -m 1024 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid 00b5056b-9055-aa4f-d7a6-aef72cc8edd4 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/win7qemu002.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime -no-shutdown -boot menu=off,strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x6 -drive file=/mnt/win/win7qemu002,if=none,id=drive-ide0-0-0,format=raw -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -drive if=none,id=drive-ide0-1-0,readonly=on,format=raw -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=22,id=hostnet0 -device e1000,netdev=hostnet0,id=net0,mac=08:00:27:8f:ff:84,bus=pci.0,addr=0x7,bootindex=1 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev spicevmc,id=charchannel0,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 -device usb-tablet,id=input0 -spice port=5900,addr=127.0.0.1,disable-ticketing,seamless-migration=on -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,bus=pci.0,addr=0x2 -device intel-hda,id=sound0,bus=pci.0,addr=0x3 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
root     10201  0.0  0.0      0     0 ?        S    11:31   0:00 [kvm-pit/10199]
taro     10340  0.0  0.0  10668  1060 pts/2    S+   11:32   0:00 grep kvm
* If I put the same command above
% /usr/sbin/qemu-system-x86_64 -name win7qemu002...
It produces error.
char device redirected to /dev/pts/4 (label charserial0)
Could not access KVM kernel module: Permission denied
failed to initialize KVM: Permission denied
* According to the someone's discussion,
I added my user to kvm group
% sudo gpasswd -a taro kvm
or edited /etc/libvirt/qemu.conf, but they don't fix this errors.
% sudo vi /etc/libvirt/qemu.conf
- #user = "root"
+ user = "taro"
* Everytime I launch the virt-manager,
a dialog "Authentication" pops-up and asks
for my user password (not root password).
best regards.
Last edited by taro (2014-06-29 02:54:25)

I'm having the same issue.  Not running Windows though... I have a minimal Ubuntu 14.04 as the guest (Arch as the host.)  Been trying everything I can think of but I can't get any sound in virt-manager.  Like you said, the sound seems to play OK in the guest, it's recognizing the card, volume is turned up but no sound.  It has to be an issue with my host configuration but I'm not sure what.  I can get sound to play in the same guest if I launch qemu directly and use ac97.  Something's gotta just be misconfigured with virt-manager/libvirt/Spice.  I thought a permissions issue at first since by default it runs as the "nobody" user but I even tried the foolish thing of setting /etc/libvirt/qemu.conf so qemu runs as root... still no go.  I'd really like to use virt-manager for the nice GUI, presistant settings, and extra features like Spice and the QXL driver that enables KMS on the guest.

Similar Messages

  • [Solved] No sound from VM (Windows 7) on qemu with virt-manager

    I posted this in Newbie corner,
    https://bbs.archlinux.org/viewtopic.php?id=176131
    but let me re-post here becase it is about sound matter.
    I have installed Windows 7 (64bit) on qemu with virt-manager.
    It seems that audio works fine inside the guest os, but I can hear no sound.
    [Guest]
    Guest os: Windows 7 (64 bit)
    Sound driver: ich6
    Console: Spice (VNC doesn't work.)
    [Host]
    linux 3.12.8-1 (base)
    qemu 1.7.0-1
    virt-manager 0.10.0-4
    libvirt 1.2.1-1
    According to
    https://bbs.archlinux.org/viewtopic.php?id=157604
    I did as follow before launch the VM, but it doesn't solve the problem.
    export QEMU_AUDIO_DRV=alsa
    What shoud I check and do?
    Followings are some additional information:
    * If I put the same command above
    % /usr/sbin/qemu-system-x86_64 -name win7qemu002...
    It produces error.
    char device redirected to /dev/pts/4 (label charserial0)
    Could not access KVM kernel module: Permission denied
    failed to initialize KVM: Permission denied
    * According to the someone's discussion,
    I added my user to kvm group
    % sudo gpasswd -a taro kvm
    or edited /etc/libvirt/qemu.conf, but they don't fix this errors.
    % sudo vi /etc/libvirt/qemu.conf
    - #user = "root"
    + user = "taro"
    * Everytime I launch the virt-manager,
    a dialog "Authentication" pops-up and asks
    for my user password (not root password).
    % ps aux | grep kvm                                                     [~]
    root       252  0.0  0.0      0     0 ?        S<   02:25   0:00 [kvm-irqfd-clea
    n]
    nobody   10199 63.0 27.0 1613768 1070088 ?     Sl   11:31   0:34 /usr/sbin/qemu-system-x86_64 -name win7qemu002 -S -machine pc-i440fx-1.7,accel=kvm,usb=off -m 1024 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid 00b5056b-9055-aa4f-d7a6-aef72cc8edd4 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/win7qemu002.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime -no-shutdown -boot menu=off,strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x6 -drive file=/mnt/win/win7qemu002,if=none,id=drive-ide0-0-0,format=raw -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -drive if=none,id=drive-ide0-1-0,readonly=on,format=raw -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=22,id=hostnet0 -device e1000,netdev=hostnet0,id=net0,mac=08:00:27:8f:ff:84,bus=pci.0,addr=0x7,bootindex=1 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev spicevmc,id=charchannel0,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 -device usb-tablet,id=input0 -spice port=5900,addr=127.0.0.1,disable-ticketing,seamless-migration=on -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,bus=pci.0,addr=0x2 -device intel-hda,id=sound0,bus=pci.0,addr=0x3 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
    root     10201  0.0  0.0      0     0 ?        S    11:31   0:00 [kvm-pit/10199]
    taro     10340  0.0  0.0  10668  1060 pts/2    S+   11:32   0:00 grep kvm
    Last edited by taro (2014-02-15 12:36:43)

    Self reply.
    Finally, I got to hear sound from windows 7 as guest OS.
    I gave up to use virt-manager and launches OS image by command line
    like follows.
    % export QEMU_AUDIO_DRV=alsa
    % qemu-system-x86_64 /mnt/win/win7qemu002 -cpu kvm64,+nx -enable-kvm -m 1536 -soundhw hda -usb
    Then, sounds works good.
    # However, the quality is bad because of heavy CPU load.
    Virt-manager may make things complex..
    Sorry for the duplicated post.
    https://bbs.archlinux.org/viewtopic.php?pid=1373935
    Last edited by taro (2014-02-15 12:36:19)

  • How to transfer pictures from computer ( Windows 7) to iPad with Retina display ?

    How to transfer pictures from computer ( Windows 7) to iPad with Retina display ?

    Note that, if you use iTunes to sync photos onto the iPad, you'll need to use iTunes to take them off.
    if you don't have a lot and want to keep deletability, you may want to consider mailing them to yourself, or uploading them to something like dropbox, then downloading them (via the dropbox app) to your iPad.
    there are also several photo syncing apps out there that may suit your needs. Afraid I don't have any to recommend. But syncing via iTunes isn't the only way to get photos onto your iPad..it's just the  built in way

  • Sound from Capture window

    I'm capturing some old VHS footage by way of a DV converter. I have the "DV-NTSC DV Converter" Easy Setup option chosen. When I open the capture window, and play the video (before I actually start capturing), I cannot hear any sound. Is this normal? Its been awhile since I've captured footage, but I thought I've heard sound when just playing the footage in the past. I realize when you go to actually capture, you cannot hear sound, but thought I could when just watching it in th capture window. Am I just missing something simple?

    This is normal. You have to monitor the sound from the deck not from the computer.

  • Changing password from a Windows XP computer for a Mac managed domain

    I've experimented a little with this a did a search but can't seem to find information on it...
    We have an Apple Xserve running OS X 10.4 and I am considering using it to manage a Microsoft Windows domain for our Windows PCs. It seems quite capable of doing that.
    However, I was trying out changing a user password (user and password are from the Apple Open Directory server) from a Windows PC on another domain using the usual method you would do that: username, domain (actually exists on the Apple), old password, new password, etc. There seemed to be something missing as it didn't work.
    Will this only work if the PC is part of the Domain for the username that needs the password changed? You can change passwords across Domains normally if doing this from a Windows PC, in my experience.
    I need to be sure that MS Windows users will be able to change their passwords from their PCs before I move any MS Windows computers on to the Apple Server managed Domain.
    Anyone have information on this?
    Thanks.

    nslookup resolves the DNS name when on both the server and the client MS windows PC.
    I re-started the Windows service on the server and it now shows in the domain and is accessable through browsing the MS Network "My Network Places". So all of that was probably a tangent.
    I've tried the password changing again a few times since but no luck. The server logs seem to show failed authentication for user "admin" but the username I was trying to change the password for was another username. ???

  • How do I remove the sound from a video project and replace with music...?

    Hi there to all...I would like to know how you remove the original sound from a movie (using iMovie) so you dont hear it through any music added...?

    Select the video clip and open the clip inspector to the video tab. You can set the volume slider to zero.
    You can apply this to a bunch of clips at once.
    Do the first one.
    Then Edit/Copy.
    Then Select the clips to apply it to by select while holding command key. (or EDIT/SELECT ALL to get all clips)
    Then EDIT/PASTE ADJUSTMENTS/AUDIO ADJUSTMENTS

  • Record sound from M-Audio Firewire Solo input with S/PDIF

    Hey there, I am using a m-audio firewire solo and connect it to my mac mini 2013 with firewire cable. If I try to record sound from my guitar, it is ok, however the sound from S/PDIF input cannot be recorded. I can see the sound signal from the mac input preference, however it just cannot be played or recorded. I have searched through the forum and found some people also have the same problem but just cannot solve it. Does anyone have some idea? Thanks.

    Have you selected the correct Input pair in a stereo Logic channel strip? Standard s/pdif is a stereo signal.
    Also, the M-Audio device may have to be set to slave mode as the incoming digital signal will have to become the master digital clock for the M-Audio unit.
    The M-Audio unit should probably be set to 48kHz, it's doesn't do 96hHz does it?

  • No sound from speakers -- windows 7 on Pavilion dv7

    speakers stopped working all of a suddent -- have Beats

    Go to the link below.Enter your Product Number as listed on Service Tag attached to bottom of notebook (may be under battery). You can also get the Product Number by pressing Fn + Esc key. After entering PN, click Next ,then choose Software & Drivers.On the next page use the dropdown to select your OS (probably Windows 7 64bit). A list will populate with drivers. Download & install the latest Audio driver.
    http://h10025.www1.hp.com/ewfrf/wc/siteHome?cc=us&​lc=en
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • No sound from my windows 7 HP Pavilion g4

    so, all of my sound options are on, but when i went to youtube it had no sound in the video that i had just watched the day before, and it had sound then, but when i look, youtube has all of the sound options on too. i dont really know whats going on, all i know is that i absolutely NEED my sound back and i will not do a system recorvery. i tried to troubeshoot by going into the sound playback stuff and it either said that it didnt find a proble or my sound was too low to hear. PLEASE HELP ME!!!!

    Hello,
    Is the issue just with YouTube or does no found function?
    If it is just YouTube you may need to check the sound settings for that browser. You can check that by right clicking on the sound icon in the system tray and choosting open volume mixer while YouTube is also open. There check the browser sound to see if it is muted or turned low.
    If it is all sound that is not working you can reinstall the sound driver via HP.com (I do not know your speific model so cannot give a direct link) or through HP Recovery Manager.
    How to for Recovery Manager: http://h10025.www1.hp.com/ewfrf/wc/document?docnam​e=c01868333&cc=us&dlc=en&lc=en
    Let us know if this helps.
    I am an HP employee.
    Make it easier for other people to find solutions, by marking my answer “Accept as Solution” if it solves your problem.

  • Playing sound from microphone on speakers (through buffer) with constant delay

    Hi,
    I'm looking for an example of code that samples signal from microphone and
    plays it on speakers. I need a solution that has a resonably constant delay on
    different platforms (PC, android, iphone). Delay around 1-2 s is ok for me, and I don't
    mind if it varies everytime the application starts.
    I tried using SampleDataEvent.SAMPLE_DATA event on Sound and Microphpne classess.
    One event would put data into buffer the other would read data.
    But it seems impossible to provide constant delay, either the delay grows constantly or
    it gets lower to the point where I have less than 2048 samples to put out and Sound class stops
    generating SampleDataEvent.SAMPLE_DATA events.
    I wan't to process each incoming frame so using setLoopBack(true) is not an option.
    ps This is more a problem on Android devices than on PC. Althought when I start to resize application
    window on PC delay starts to grow also.
    Please help.

    Most recording applications have a passthrough option so you can listen as you record. It is off by default to avoid feedback if you are using a microphone.

  • I get no sound from my guitar when using iRig with my iPod 5th gen (iOS 7)

    I've just bought my iRig and it doesn't work with my iPod 5. I get no sound out of my guitar.
    Headphones are working and when iRig is connected I can hear the samples and every other sound coming out of the iPod, but I get nothing from my guitar.
    I tried shutting the iPod down, turning Mono on/off, but it still doesn't work with any of my apps (Amplitube, Garage Band and AmpKit).
    Then I tried it with my brother's iPod 4 and it worked perfectly, which makes me think that there's something wrong with my iPod settings (I got the iOS 7)....
    Does anyone know something I could try?
    Thanks!

    iOS: Troubleshooting applications purchased from the App Store
    Contact the developer/go to their support site . Maybe it is not compatible with the 5G iPod. Also, it may not be compatible with iOS 7. Did it work on the 5G before iOS 7?
    Restore from backup. See:
    iOS: How to back up              
    Restore to factory settings/new iPod

  • No Sound from Logic 8- can anyone help with this issue?...

    Hi,
    I am relatively new to Logic and have an issue as I work my way through the getting started book.
    I have no sound when I play any type of track...
    I have gone through the Apple website's Logic common issues page and have no issues with laptop and program compatibility and I have correctly installed my audio interface which is also fully compatible with the laptop I have.
    The setup I have is:
    - Macbook Pro 1, 2 with Mac OS X version 10. 6. 7 running Logic 8.
    - a Focusrite Saffire audio interface.
    Can anyone help shed any light onto this why I have no sound returning at me when I click pay track?
    Thanks for the thoughts you share!

    Somewhere in the Everything wrote:
    This has solved the issue and helped my understanding of the program. I didn't realise selecting core audio interface was responsible for output audio also. Though it seems obvious now, I think I overlooked this on that point of the journey I was on... thank you Pancenter
    You're welcome.
    I don't know your setup and this may not work for you, see what you think.
    I tend to keep the internal built-in audio as the core audio device for all of the Mac sounds including DVD playback... iTunes....etc. 
    I reserve the pro/semi-pro audio interface for use only with the professional audio application. There's a couple of reasons for this... the Mac built-in audio actually works better for some things like DVD playback, also.. core audio volume will now affect the Focusrite's volume.. I'd rather not have the volume of the pro interface or the sample rate messed with. I need to load my projects and have them play exactly as I saved them.
    Also, keep reading the manuals... there's much to learn there. The manuals will help train your mind for further understanding as you progress.
    Any type of knowledge a person gains by working things out on their own (as you did)  will stick with you. Even though you didn't find the solution you put in effort.
    The answers are never the important part of learning, the work put in is the actual answer.
    When I teach audio related classes.... for example, learning how a compressor works. I have a student pick one compressor and learn it inside and out. Use it for voice, guitar, drums, bass, synths. Using one plug-in, in depth gives one perspective and the basic knowledge of how to use other compressors one will need in the future.
    pancenter- 

  • Windows XP not transfered with migration manager.

    We upgraded a MB to a 160G drive, after loading mac os we used the migration utility to transfer all the user files. it all went smooth but the windows xp partition was left behind. I contacted apple who confirmed that migration manager will not do antying with any windows partitions and suggested any 3rd party application to do the job but did not know which one.
    We have the old drive in an external case and we can see and mount the partition on the desktop but it's grayed out. Permissions did not do anything.
    Has anybody run into this problem? Any ideas, we're trying to avoid having to reload windows xp from scratch again, and aaalll the other applications in it.
    thanks

    See if SuperDuper can handle this.
    In my opinion, this is one of the best things about Parallels. You don't have to deal with #!@*^&$% parititions.

  • Monitoring printers attched to a Windows print server cluster with Operations Manager

    I am trying to configure SCOM 2012 R2 to monitor the individual printers that are managed with a Windows 2008 R2 Print Cluster. I have the management packs installed for Windows Clustering and Print Servers. When I view the print queue status in the
    monitoring pane I see the locally installed printers on both of the nodes but none of the printers that are managed by the cluster services. What do I need to do to accomplish this task? Thank you!

    Hi,
    Hope this helps you.
    Supplemental MP for monitoring individual printers
    http://thoughtsonopsmgr.blogspot.com/2010/12/supplemental-mp-for-monitoring.html
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • No sound from windows 7 on bootcamp

    I bought my lovely brand new imac, done all the updates and all is good, I installed windows 7 on bootcamp but cannot not get any sound from the windows, yes I get sound while running the mac but when I boot to windows 7 i hear nothing.
    Now the meters that should pop up and down do that so there is sound there I just cant hear it, I have gone without sound for 3 months now and its driving me mad.
    I have been to various sites and downloaded high definition drivers etc but still no luck, any ideas?
    Regards
    daz

    You need to install your audio driver yourself, which would be RealTek.
    http://www.realtek.com

Maybe you are looking for

  • Freight on credit memo for returns PO

    We are trying to achieve the below solution for a returns PO, created 2 condition types, assigned to the pricing procedure to achieve the GR posting. When we use MRRL to create a credit memo for both the material and the freight. the system creates a

  • Cannot mount external USB drive with FDisk_partition_scheme

    Due to some recent mac issues in my lab, we updated one of the computers to Maverick 10.9.4 from Snow Leopard 10.6.8 yesterday. Anyhow, this seems to have erased the ability of the mac to read or mount several identical USB drives with the NTFS forma

  • Servlet Applet object communication problem???!!!

    Hy folks, I need to validate the ability of complex Servlet Applet communication an run into my first pb right at the beginning of my tests. I need to have around 200 Applet clients connect to my servlet and communicate by ObjectInput and ObjectOutpu

  • User account management on 11.2.0.3 standby

    Hi, Just came across weird thing in 11.2.0.3 release. If standby database is open in read only with redo apply and you try to connect to standby database with wrong password , your account gets locked. When I checked dba_user view on standby database

  • My ALT-key is acting like a back button -- only in Firefox. What gives?

    Whenever I hit the ALT-key, Firefox backs up to the previous webpage as if I hit the back button. This only happens when the mouse pointer is over the web page window. If I move the pointer up to the tool bar, for instance, this issue no longer occur