Skip to contentSkip to conversation

Windows Vista/7 repeatedly prompt to Set Network Location

DISCUSSION Jamin W. Collins 2 participants 3 messages Jan 27, 2010 KVM

lore
Share & tools
lore
#0 lore raw

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?

Please CC me, as I'm not subscribed to the list.

#1 lore raw
Quoted 21 lines · Jamin W. Collins

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

(quoted diff) +0 -2
-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

(quoted diff) +0 -3
-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
Quoted 3 lines

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.

Signature · 1 line
Chris Lalancette
#2 lore raw
Quoted 9 lines · Chris Lalancette
Quoted 4 lines · Jamin W. Collins

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.

Even with the UUID defined in the XML I'm still repeatedly getting the prompt to define the network location. If I simply reboot the virtual machine all is well. However, if I actually shut the virtual machine down, on the next startup it will ask for the network location type.