Bug ID 1149059
Summary libvirt: Failed to auto-start network
Classification openSUSE
Product openSUSE Distribution
Version Leap 15.1
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Virtualization:Other
Assignee virt-bugs@suse.de
Reporter matwey.kornilov@gmail.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

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


You are receiving this mail because: