LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 11-09-2009, 06:11 AM   #1
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 348

Rep: Reputation: 39
Question 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?
 
Old 11-09-2009, 06:40 AM   #2
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 827

Rep: Reputation: 91
how do you start the VM?
 
Old 11-09-2009, 07:24 AM   #3
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 348

Original Poster
Rep: Reputation: 39
Either from the gui or through virsh (like virsh start <vm>)
 
Old 11-09-2009, 09:05 AM   #4
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 827

Rep: Reputation: 91
can you retrieve the exact command line the front end uses?
 
Old 11-09-2009, 11:47 AM   #5
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 348

Original Poster
Rep: Reputation: 39
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

Last edited by rhoekstra; 11-09-2009 at 11:54 AM. Reason: Added link to image
 
Old 11-09-2009, 11:57 AM   #6
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 827

Rep: Reputation: 91
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
 
Old 11-09-2009, 01:34 PM   #7
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 348

Original Poster
Rep: Reputation: 39
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).
 
Old 11-10-2009, 01:35 AM   #8
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 827

Rep: Reputation: 91
Quote:
Originally Posted by rhoekstra View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Solaris 10 guest endless reboot under KVM/Qemu green_dood Linux - Software 6 12-13-2009 01:20 AM
arghh! One interface works and one doesn't in kvm virtual machine TuPari Linux - Networking 0 08-05-2009 12:36 AM
network interface not coming backup after reboot noir911 Linux - Server 2 02-10-2009 11:03 PM
ubuntu - on reboot, interface up, but no network. dutler Linux - Networking 6 02-04-2009 05:45 AM
eth0 interface intialization fails during reboot from windows to linux dhanakom Linux - Networking 6 07-20-2003 07:10 PM


All times are GMT -5. The time now is 10:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration