Re: kvm win8 guest audio is terrible.

2019-05-30 Thread Håkon Alstadheim



Den 31.05.2019 01:51, skrev R. Ramesh:

More info needed:

- HW (cpu, graphics, soundcard)

Motherboard audio. I think it is realtek alc 887.

So, bog standard. Should work.


- BIOS (cpu power-states)
Guest cpu? Not sure how to answer this. I did not do anything special. 
My command looks something like this


No, bare metal. If the box takes a nap, sound will stop. Even 1 ns might 
be audible.

/usr/bin/kvm -usbdevice tablet -full-screen -localtime\
?? -vnc $vnc -k en-us \
?? -drive file=$diskC,index=0,media=disk,cache=writeback \
?? -vga qxl\
?? -m 2047 -net nic,model=virtio,macaddr=$mac \
?? -net tap,ifname=tap2,script=no\
?? -soundhw all &
I use pass-thru hdmi, and sound on that. Works well. Can't put my finger 
on anything you are doing wrong. I believe vnc is more light-weight than 
spice, so, good I believe.




- Host setup (power states,audio setup)

Host is core-i5 cpu. Here is the first few lines of cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family?? : 6
model : 42
model name?? : Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
stepping?? : 7
microcode : 0x18
cpu MHz : 1651.812
cache size?? : 6144 KB

Should have enough oomph. Throttled to half speed I see. Might want to 
set policy "performance". Again, check bios settings, and also power 
policy in host OS.




- VM config.
I think my kvm command line answers this. If not, please let me know 
what you are looking for.



No further questions your honour. :-) . Can't help much I'm afraid.

If you have more than one usb-"card" on your pci-bus, you might try to 
pass one directly to the guest, and use an USB sound-card, to by-pass 
all emulation. I do that for on guest I have (XEN, not kvm). Works 
OK-ish. USB-chips are finicky though, so it might not work. Different 
PCI devices might be on single chip that don't like to run on separate vm.





Re: Re: kvm win8 guest audio is terrible.

2019-05-30 Thread R. Ramesh

More info needed:

- HW (cpu, graphics, soundcard)

Motherboard audio. I think it is realtek alc 887.


- BIOS (cpu power-states)
Guest cpu? Not sure how to answer this. I did not do anything special. 
My command looks something like this


/usr/bin/kvm -usbdevice tablet -full-screen -localtime\
?? -vnc $vnc -k en-us \
?? -drive file=$diskC,index=0,media=disk,cache=writeback \
?? -vga qxl\
?? -m 2047 -net nic,model=virtio,macaddr=$mac \
?? -net tap,ifname=tap2,script=no\
?? -soundhw all &



- Host setup (power states,audio setup)

Host is core-i5 cpu. Here is the first few lines of cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family?? : 6
model : 42
model name?? : Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
stepping?? : 7
microcode : 0x18
cpu MHz : 1651.812
cache size?? : 6144 KB




- VM config.
I think my kvm command line answers this. If not, please let me know 
what you are looking for.


Regards
Ramesh



Re: Re: kvm win8 guest audio is terrible.

2019-05-30 Thread R. Ramesh

On 5/20/19 10:35 PM, David Christensen wrote:

On 5/20/19 2:55 PM, R. Ramesh wrote:
I created a fresh install of debian stretch amd64. In that I created 
a qemu/kvm guess install of win8. It only accepted hda as a valid 
sound card. All others show us without drivers. So, I am limited to 
only HDA as -soundhw. Further HDA sounds so broken if I try to test 
with any sound file or youtube video. It is grainy/distorted and 
outright horrible.


Google searches mentions something about MSI and those approaches 
are simply not accepted by win8. So, I could not use them. I am 
wondering if there is something fundamentally wrong with windows 
guests or is there a setting that I missing.


Ramesh
Have you tried spice under Virtual Machine manager??? I used to have 
similar problems.?? Let all 6 cores run at maximum speed helped some 
but still occasional dropouts in Win7 and Win10.?? I switched to spice 
and audio and video improved greatly.

--


I invoke qemu-kvm directly. Do I have to use virtsh or virt manager? I 
am not set up for that. Also, googling spice does not get to the correct 
links.?? Can you help?


Ramesh



Re: kvm win8 guest audio is terrible.

2019-05-22 Thread Håkon Alstadheim



Den 22.05.2019 22:33, skrev Ram Ramesh:
I created a fresh install of debian stretch amd64. In that, I created 
a qemu/kvm guess install of win8. It only accepted hda as a valid 
sound card. All others show us without drivers. So, I am limited to 
only HDA as -soundhw. Further HDA sounds so broken if I try to test 
with any sound file or youtube video. It is grainy/distorted and 
outright horrible.


Google searches mentions something about MSI and those approaches are 
simply not accepted by win8. So, I could not use them. I am wondering 
if there is something fundamentally wrong with windows guests or is 
there a setting that I am missing?


More info needed:

- HW (cpu, graphics, soundcard)

- BIOS (cpu power-states)

- Host setup (power states,audio setup)

- VM config.

Most important: where have you looked trying to solve this?

---

PS: I run Xen, not qemu, but issues are same. I have max c-state 2 on 
xeon E5-2620, HDMI graphics passed thru as PCI, with good HDMI-audio in 
windows 8. Needed to drop spice because load on host got too high, 
ruined audio.





kvm win8 guest audio is terrible.

2019-05-22 Thread Ram Ramesh
I created a fresh install of debian stretch amd64. In that, I created a 
qemu/kvm guess install of win8. It only accepted hda as a valid sound 
card. All others show us without drivers. So, I am limited to only HDA 
as -soundhw. Further HDA sounds so broken if I try to test with any 
sound file or youtube video. It is grainy/distorted and outright horrible.


Google searches mentions something about MSI and those approaches are 
simply not accepted by win8. So, I could not use them. I am wondering if 
there is something fundamentally wrong with windows guests or is there a 
setting that I am missing?


Ramesh



Re: kvm win8 guest audio is terrible.

2019-05-21 Thread Bob Weber

On 5/20/19 10:35 PM, David Christensen wrote:

On 5/20/19 2:55 PM, R. Ramesh wrote:
I created a fresh install of debian stretch amd64. In that I created a 
qemu/kvm guess install of win8. It only accepted hda as a valid sound card. 
All others show us without drivers. So, I am limited to only HDA as -soundhw. 
Further HDA sounds so broken if I try to test with any sound file or youtube 
video. It is grainy/distorted and outright horrible.


Google searches mentions something about MSI and those approaches are simply 
not accepted by win8. So, I could not use them. I am wondering if there is 
something fundamentally wrong with windows guests or is there a setting that 
I missing.


Ramesh
Have you tried spice under Virtual Machine manager?  I used to have similar 
problems.  Let all 6 cores run at maximum speed helped some but still occasional 
dropouts in Win7 and Win10.  I switched to spice and audio and video improved 
greatly.

--


*...Bob*


Re: kvm win8 guest audio is terrible.

2019-05-20 Thread David Christensen

On 5/20/19 2:55 PM, R. Ramesh wrote:
I created a fresh install of debian stretch amd64. In that I created a 
qemu/kvm guess install of win8. It only accepted hda as a valid sound 
card. All others show us without drivers. So, I am limited to only HDA 
as -soundhw. Further HDA sounds so broken if I try to test with any 
sound file or youtube video. It is grainy/distorted and outright horrible.


Google searches mentions something about MSI and those approaches are 
simply not accepted by win8. So, I could not use them. I am wondering if 
there is something fundamentally wrong with windows guests or is there a 
setting that I missing.


Ramesh


I have yet to see any virtual machine be as responsive as a host.  The 
latency is especially obvious when playing multimedia -- e.g. audio and 
video.  (I assume video games would be equally bad.)  If you want good 
audio and video performance, install Windows 8 directly on hardware.



David




kvm win8 guest audio is terrible.

2019-05-20 Thread R. Ramesh
I created a fresh install of debian stretch amd64. In that I created a 
qemu/kvm guess install of win8. It only accepted hda as a valid sound 
card. All others show us without drivers. So, I am limited to only HDA 
as -soundhw. Further HDA sounds so broken if I try to test with any 
sound file or youtube video. It is grainy/distorted and outright horrible.


Google searches mentions something about MSI and those approaches are 
simply not accepted by win8. So, I could not use them. I am wondering if 
there is something fundamentally wrong with windows guests or is there a 
setting that I missing.


Ramesh