]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
systemd: start libvirtd after network
authorJim Fehlig <jfehlig@suse.com>
Mon, 9 Jul 2012 15:52:55 +0000 (09:52 -0600)
committerJim Fehlig <jfehlig@suse.com>
Tue, 10 Jul 2012 14:53:40 +0000 (08:53 -0600)
Domains configured with autostart may fail to start if the host
network stack has not been started.  E.g. when using bridged
networking autostarting a domain can fail with

libvirtd[1403]: 2012-06-20 13:23:49.833+0000: 1485: error :
qemuAutostartDomain:177 : Failed to autostart VM 'test': Cannot get
interface MTU on 'br0': No such device

daemon/libvirtd.service.in

index 33724ee5fc68dda8f425d963ba4f78b8e18fe9b6..b7afadf6e01cb1c8ce825e0fdf15ba448bdb1baa 100644 (file)
@@ -6,6 +6,7 @@
 [Unit]
 Description=Virtualization daemon
 Before=libvirt-guests.service
+After=network.target
 
 [Service]
 EnvironmentFile=-/etc/sysconfig/libvirtd