Windows VM unable to accept IP address from dnsmasq

asked 2011-12-08 14:34:12 -0600

kenneth-jiang gravatar image

When I launched a windows VM (image created by following http://docs.openstack.org/diablo/openstack-compute/admin/content/creating-a-windows-image.html (http://docs.openstack.org/diablo/open...) ), the Windows VM was unable to get an IP assigned:

Administrator> ipconfig /renew

Windows IP Configuration

An error occurred while renewing interface Local Area Connection : unable to contact your DHCP server. Request has timed out.

Openstack Dashboard shows that this instance is assigned IP 172.16.0.8, and I found the following in syslog:

Dec 8 05:59:54 cloud-ProLiant-DL160-G6 dnsmasq-dhcp[3140]: DHCPDISCOVER(br100) 02:16:3e:11:59:7a Dec 8 05:59:54 cloud-ProLiant-DL160-G6 dnsmasq-dhcp[3140]: DHCPOFFER(br100) 172.16.0.8 02:16:3e:11:59:7a Dec 8 05:59:57 cloud-ProLiant-DL160-G6 dnsmasq-dhcp[3140]: DHCPDISCOVER(br100) 02:16:3e:11:59:7a Dec 8 05:59:57 cloud-ProLiant-DL160-G6 dnsmasq-dhcp[3140]: DHCPOFFER(br100) 172.16.0.8 02:16:3e:11:59:7a Dec 8 06:00:05 cloud-ProLiant-DL160-G6 dnsmasq-dhcp[3140]: DHCPDISCOVER(br100) 02:16:3e:11:59:7a Dec 8 06:00:05 cloud-ProLiant-DL160-G6 dnsmasq-dhcp[3140]: DHCPOFFER(br100) 172.16.0.8 02:16:3e:11:59:7a Dec 8 06:00:20 cloud-ProLiant-DL160-G6 dnsmasq-dhcp[3140]: DHCPDISCOVER(br100) 02:16:3e:11:59:7a Dec 8 06:00:20 cloud-ProLiant-DL160-G6 dnsmasq-dhcp[3140]: DHCPOFFER(br100) 172.16.0.8 02:16:3e:11:59:7a

Obviously the Windows VM was firing quite a few DHCP requests in 30 seconds, and dnsmasq responded each time with a DHCPOFFER, but somehow that IP address didn't get picked up by Windows VM.

I have a few Linux VMs (Ubuntu) running in the same nova installation and they are running fine. One observation, however, is that when Linux VMs sent DHCPDISCOVER, dnsmasq responded with DHCPACK, rather than DHCPOFFER. An example is:

Dec 8 06:00:10 cloud-ProLiant-DL160-G6 dnsmasq-dhcp[3140]: DHCPREQUEST(br100) 172.16.0.6 02:16:3e:73:4d:54 Dec 8 06:00:10 cloud-ProLiant-DL160-G6 dnsmasq-dhcp[3140]: DHCPACK(br100) 172.16.0.6 02:16:3e:73:4d:54 test1

I'm wondering why dnsmasq gave "special treatment" to Windows VM, and if that was the cause of my problem.

Your help is really appreciated!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2011-12-09 14:09:04 -0600

kenneth-jiang gravatar image

Problem resolved by "killall dnsmasq; service nova-network restart". Now syslog spits out DHCPACK (as opposed to previous DHCPOFFER) for Windows VM, the same as it does for Linux.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-12-08 14:34:12 -0600

Seen: 108 times

Last updated: Dec 09 '11