Bug 1149059

Summary: libvirt: Failed to auto-start network
Product: [openSUSE] openSUSE Distribution Reporter: Matwey Kornilov <matwey.kornilov>
Component: Virtualization:OtherAssignee: James Fehlig <jfehlig>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Leap 15.1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Network configuration file

Description Matwey Kornilov 2019-08-31 16:56:23 UTC
Created attachment 816506 [details]
Network configuration file

Hello,

I am running openSUSE 15.1 with libvirt-5.1.0-lp151.7.3.1.x86_64

I see the following startup logs from libvirtd:

# LANG=c journalctl -u libvirtd -b 0
-- Logs begin at Tue 2018-07-10 11:19:19 MSK, end at Sat 2019-08-31 19:49:23 MSK. --
Aug 31 19:46:56 alpha systemd[1]: Starting Virtualization daemon...
Aug 31 19:46:56 alpha libvirtd[1395]: libvirt version: 5.1.0
Aug 31 19:46:56 alpha libvirtd[1395]: hostname: alpha
Aug 31 19:46:56 alpha libvirtd[1395]: Failed to intialize libnetcontrol.  Management of interface devices is disabled
Aug 31 19:46:56 alpha systemd[1]: Started Virtualization daemon.
Aug 31 19:46:57 alpha dnsmasq[1965]: directory /etc/resolv.conf for resolv-file is missing, cannot poll
Aug 31 19:46:57 alpha dnsmasq[1965]: FAILED to start up
Aug 31 19:46:57 alpha libvirtd[1395]: internal error: Child process (VIR_BRIDGE_NAME=virbr0 /usr/sbin/dnsmasq --conf-file=/var/lib/lib>
                                      dnsmasq: directory /etc/resolv.conf for resolv-file is missing, cannot poll
Aug 31 19:47:14 alpha libvirtd[1395]: this function is not supported by the connection driver: virConnectNumOfInterfaces



In virsh I see the following:

virsh # net-list --all
 Name      State      Autostart   Persistent
----------------------------------------------
 libvirt   inactive   yes         yes


Network libvirt is not started (configuration is attached). However, force-start is working fine for me:

virsh # net-start libvirt 
Network libvirt started

virsh # net-list --all
 Name      State    Autostart   Persistent
--------------------------------------------
 libvirt   active   yes         yes


Then the following appears in libvirtd logs:

Aug 31 19:55:02 alpha dnsmasq[3254]: started, version 2.78 cachesize 2000
Aug 31 19:55:02 alpha dnsmasq[3254]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 Lua TFTP conntrack ipset auth DNS>
Aug 31 19:55:02 alpha dnsmasq-dhcp[3254]: DHCP, IP range 192.168.184.2 -- 192.168.184.254, lease time 1h
Aug 31 19:55:02 alpha dnsmasq-dhcp[3254]: DHCP, sockets bound exclusively to interface virbr0
Aug 31 19:55:02 alpha dnsmasq[3254]: reading /etc/resolv.conf
Aug 31 19:55:02 alpha dnsmasq[3254]: using nameserver 192.168.185.253#53
Aug 31 19:55:02 alpha dnsmasq[3254]: read /etc/hosts - 8 addresses
Aug 31 19:55:02 alpha dnsmasq[3254]: read /var/lib/libvirt/dnsmasq/libvirt.addnhosts - 0 addresses
Aug 31 19:55:02 alpha dnsmasq-dhcp[3254]: read /var/lib/libvirt/dnsmasq/libvirt.hostsfile
Comment 1 James Fehlig 2019-09-03 22:09:47 UTC
There are many duplicates of this bug. I think the original bug is #1123699. Please reopen if the fix mentioned in the duplicates does not work for you.

*** This bug has been marked as a duplicate of bug 1123699 ***