Thanks for that reminder, Avi.  You are right - it would be best to not be 
running kvm as root or with any special capabilities.  I mainly wanted to 
report back that I got the sound working by switching to PulseAudio.  I made 
the other changes so I would not have to run kvm as root and it would see the 
environment variable.  When I run without that capability, it seems that kvm 
cannot create the tun device.  I will do more research and if I can't find the 
information I need, I'll start a new thread.

>

-----------------------------
Jimmy Crossley
CoNetrix
Sentry Plaza III
5214 68th Street, Suite 200
Lubbock, TX  79424
jcross...@conetrix.com
https://www.CoNetrix.com
Telephone: 806-687-8600
Toll Free: 800-356-6568
Fax: 806-687-8511
This e-mail message (and attachments) may contain confidential CoNetrix 
information. If you are not the intended recipient, you cannot use, distribute 
or copy the message or attachments. In such a case, please notify the sender by 
return e-mail immediately and erase all copies of the message and attachments. 
Opinions, conclusions and other information in this message and attachments 
that do not relate to official business are neither given nor endorsed by 
CoNetrix.


-----Original Message-----
> From: Avi Kivity [mailto:a...@redhat.com]
> Sent: Tuesday, June 19, 2012 04:21
> To: Jimmy Crossley
> Cc: kvm@vger.kernel.org
> Subject: Re: SOLVED: RE: Garbled audio - Windows 7 64 bit guest on Debian
>
> On 06/18/2012 10:32 PM, Jimmy Crossley wrote:
> >
> > I have mostly solved this issue.  The sound works much, much, better, but 
> > is still not as good as
> on my host machine.
> >
> > I installed PulseAudio and used it instead of ALSA.  In order to get kvm to 
> > use it, I set the
> environment variable QEMU_AUDIO_DRV=pa.  I had been using sudo to start the 
> VM, and that kept this
> environment variable from being used.  I did a "sudo setcap cap_net_admin+ep 
> /usr/bin/kvm" in order
> to be able to run kvm under a normal user account.  Now the sound works quite 
> well.
> >
>
> That is good to hear.  But you are giving up on a lot of security if
> you're running kvm as root (or with CAP_NET_ADMIN).  qemu supports
> setting up the network externally and running with no special privileges.
>
> Of course, it may not matter for your use case.
>
> --
> error compiling committee.c: too many arguments to function
>

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to