|
@@ -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/lib/libvirt /var/lib/libvirt
|
|
mount --verbose --bind /srv/data/guests/etc/libvirt /etc/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
|
|
# Those services should have been disabled
|
|
# systemctl disable docker libvirtd libvirt-guests
|
|
# 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
|
|
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
|
|
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
|
|
|
|
+
|
|
|
|
+
|