From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Lalancette Subject: Re: Windows Vista/7 repeatedly prompt to Set Network Location Date: Wed, 27 Jan 2010 09:05:12 -0500 Message-ID: <4B604818.7070603@redhat.com> References: <4B5FBF85.9060907@asgardsrealm.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: "Jamin W. Collins" Return-path: Received: from mx1.redhat.com ([209.132.183.28]:60199 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754949Ab0A0OG3 (ORCPT ); Wed, 27 Jan 2010 09:06:29 -0500 In-Reply-To: <4B5FBF85.9060907@asgardsrealm.net> Sender: kvm-owner@vger.kernel.org List-ID: On 01/26/2010 11:22 PM, Jamin W. Collins wrote: > Every time I start a Windows Vista or Windows 7 virtual machine it > request a that a location be set for the network, regardless of the fact > that the network location has already been set the same way every time > the system is started. Near as I can tell the VM's NIC MAC, IP address, > DNS servers, default gateway, and all other network related items are > the same every single time. While this does not stop the VM from > working it is annoying. > > I'm starting the VM the same way through libvirt every single time. The > resultant kvm command line is: > > /usr/bin/kvm -S -M pc-0.11 -cpu qemu32 -enable-kvm -m 1536 -smp 1 -name > win7 -uuid 6671f42a-b974-6bb9-bd7e-fd1da95cabe5 -monitor > unix:/var/lib/libvirt/qemu/win7.monitor,server,nowait -localtime -boot c > -drive file=/media/devel/testing/win7/testing.img,if=ide,index=0,boot=on > -drive > file=/media/devel/testing/isos/en_windows_7_professional_x86_dvd_x15-65804.iso,if=ide,media=cdrom,index=2 > -net nic,macaddr=54:52:00:37:4a:ce,vlan=0,model=rtl8139,name=rtl8139.0 > -net tap,fd=38,vlan=0,name=tap.0 -serial pty -parallel none -usb > -usbdevice tablet -vga cirrus > > While the uuid isn't the same from one execution to the next, to my > knowledge it's not something the VM ever sees and is only an identifier > within KVM. Has anyone else seen anything like this? Actually, that's not true (if I remember correctly). The uuid is exposed to the guest via the SMBIOS tables, so that might be causing the problem. Try setting the UUID in the libvirt XML, and that may solve it. -- Chris Lalancette