Browse Source

changed startup order

Toastie 6 months ago
parent
commit
d5746e5c2e
1 changed files with 13 additions and 5 deletions
  1. 13 5
      startup.sh

+ 13 - 5
startup.sh

@@ -18,13 +18,21 @@ mount --verbose --bind /srv/data/guests/docker       /opt/docker
 mount --verbose --bind /srv/data/guests/lib/libvirt  /var/lib/libvirt
 mount --verbose --bind /srv/data/guests/etc/libvirt  /etc/libvirt
 
-# 4. Start docker and libvird 
+# 4. Fix forward chain which was set to default deny by docker
+# so our KVM containers on br0 have access to the network
+iptables -v -A FORWARD -i br0 -o br0 -j ACCEPT
+
+# 4. Start libvirt and docker 
+
 # Those services should have been disabled
 # systemctl disable docker libvirtd libvirt-guests
-systemctl start docker && sleep 2 && systemctl status --no-pager docker
+echo start libvirt
 systemctl start libvirtd && sleep 2 && systemctl status --no-pager libvirtd
+
+echo start libvirt-guests
 systemctl start libvirt-guests && sleep 2 && systemctl status --no-pager libvirt-guests 
 
-# 4. Fix forward chain which was set to default deny by docker
-# so our KVM containers on br0 have access to the network
-iptables -v -A FORWARD -i br0 -o br0 -j ACCEPT
+echo start docker
+systemctl start docker && sleep 2 && systemctl status --no-pager docker
+
+