Libvirt kvm windows guest has no network after upgrade to 18.10
Bug #1797715 reported by
JR
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Today I upgraded to 18.10 beta and now my windows guest doesn't have network. The network is configured to NAT. The network card is of course shown in the guest, but it doesn't get an IP via dhcp. Even configuring a static IP doesn't help - the same network IP of the host is not reachable from the guest.
affects: | pulseaudio (Ubuntu) → libvirt (Ubuntu) |
To post a comment you must log in.
Hi Jürgen,
well lets take a look at your network that is associated to the guest.
Your guest XML representation will have a network definition with a source.
Like this:
<source network='default' bridge='virbr0'/>
Check `virsh dumpxml <guestname>` to get that.
Once you know the name check the network - in my case "default". d792-422e- 818a-2a61b6ab64 d0
$ virsh net-info default
Name: default
UUID: 3a360c07-
Active: yes
Persistent: yes
Autostart: yes
Bridge: virbr0
Is your network active?
If not start checking there what might be different.
If it is active check the definition and share it here. default< /name> 3a360c07- d792-422e- 818a-2a61b6ab64 d0</uuid> '52:54: 00:34:06: 2f'/> '192.168. 122.1' netmask= '255.255. 255.0'> 192.168. 122.2' end='192. 168.122. 254'/>
$ virsh net-dumpxml default
<network connections='2'>
<name>
<uuid>
<forward mode='nat'>
<nat>
<port start='1024' end='65535'/>
</nat>
</forward>
<bridge name='virbr0' stp='on' delay='0'/>
<mac address=
<ip address=
<dhcp>
<range start='
</dhcp>
</ip>
</network>
What you see above is the "most default" network as installed by the package. file=/var/ lib/libvirt/ dnsmasq/ default. conf --leasefile-ro --dhcp- script= /usr/lib/ libvirt/ libvirt_ leaseshelper
You should see a dnsmasq process running for a config file of that name, like
$ ps axlf | grep dnsmasq
5 111 5607 1 20 0 49964 2424 - S ? 0:00 /usr/sbin/dnsmasq --conf-
The backend storage for all DHCP handling is in /var/lib/ libvirt/ dnsmasq/ .
You'll find config files with the name of the network and lease/mac files with the name of the bridge they are atatched like virbr0.status
Please check the content of these files and if they change when your guest requests access.
Finally while the guest does DHCP the journal should get entries like this: virbr0) 52:54:00:f4:4f:2d
Oct 15 10:56:23 node-horsea dnsmasq-dhcp[5607]: DHCPDISCOVER(
Oct 15 10:56:23 node-horsea dnsmasq-dhcp[5607]: DHCPOFFER(virbr0) 192.168.122.59 52:54:00:f4:4f:2d
Oct 15 10:56:23 node-horsea dnsmasq-dhcp[5607]: DHCPREQUEST(virbr0) 192.168.122.59 52:54:00:f4:4f:2d
Oct 15 10:56:23 node-horsea dnsmasq-dhcp[5607]: DHCPACK(virbr0) 192.168.122.59 52:54:00:f4:4f:2d
Please check if you see those by using "journalctl -f" just before kicking a DHCP in the guest.