LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Windows 7 on kvm, new network interface at each reboot (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/windows-7-on-kvm-new-network-interface-at-each-reboot-767885/)

rhoekstra 11-09-2009 06:11 AM

Windows 7 on kvm, new network interface at each reboot
 
Hi,

I am running Windows 7 (still eval version, build 7100) within kvm (on fedora 11 machine). It does not:

* support audio, while it is defined.
* retain network configuration.. After each restart it detects a new network interface, asking me if it connects to public / work / private network (and the interface is called 'Network <number>' which increases each time)..

Any clue how to resolve these issues? Has it something to do with the eval version of win7?

dyasny 11-09-2009 06:40 AM

how do you start the VM?

rhoekstra 11-09-2009 07:24 AM

Either from the gui or through virsh (like virsh start <vm>)

dyasny 11-09-2009 09:05 AM

can you retrieve the exact command line the front end uses?

rhoekstra 11-09-2009 11:47 AM

Sure:

Code:

/usr/bin/qemu-kvm -S -M pc -m 968 -smp 1 -name win7 -uuid eed882be-5388-bd2a-e339-531e481cfeae -monitor pty -pidfile /var/run/libvirt/qemu//win7.pid -localtime -boot c -drive file=/var/lib/libvirt/images/win7.img,if=ide,index=0,boot=on -drive file=,if=ide,media=cdrom,index=2 -net nic,macaddr=54:52:00:17:e9:1a,vlan=0 -net tap,fd=17,vlan=0 -serial pty -parallel none -usb -usbdevice tablet -vnc 127.0.0.1:0
To illustrate, see http://www.hoekstra.nu/~robert/win7.png

dyasny 11-09-2009 11:57 AM

Quote:

-audio-help print list of audio drivers and their options
-soundhw c1,... enable audio support
and only specified sound cards (comma separated list)
use -soundhw ? to get the list of supported cards
use -soundhw all to enable all of them
this is from qemu-kvm --help

pretty self explanatory :)

rhoekstra 11-09-2009 01:34 PM

Yup .. looks self explanatory, obviously the gui doesn't do what is supposed to.. to really activate the audio as configured, as the guest is configured to be having an audio device.. How to tell the gui to actually DO use the audio device?

And more importantly, do you (or anybody else) know how to eliminate the frustrating 'new NIC each boot' problem? (That's even more frustrating than having no sound, which doesn't do me that much).

dyasny 11-10-2009 01:35 AM

Quote:

Originally Posted by rhoekstra (Post 3750582)
How to tell the gui to actually DO use the audio device?

looks like a gui bug to me, I'd file a bugzilla for virt-manager and in the meantime use a script to run the VM

Quote:

And more importantly, do you (or anybody else) know how to eliminate the frustrating 'new NIC each boot' problem? (That's even more frustrating than having no sound, which doesn't do me that much).
this might be another bug I've seen before, where kvm assigns a device with a random pci address each time. or it could be something with the win7 build.


All times are GMT -5. The time now is 10:28 AM.