Commit e063e898 authored by John Hackett's avatar John Hackett

Moved initialisation script into separate file

parent 200570e8
......@@ -32,7 +32,7 @@ lxd-image:
lxc image delete opennebula-dev || true
lxc launch images:debian/stretch opennebula-dev-build --storage default --network lxdbr0
sleep 3
echo "apt-get update && apt-get install --install-recommends -y inetutils-ping udev iptables bridge-utils busybox-static python gnupg openssh-server avahi-daemon nano vim" | lxc exec opennebula-dev-build bash
cat init-lxd.sh | lxc exec opennebula-dev-build bash
lxc publish opennebula-dev-build --alias opennebula-dev --force
lxc delete opennebula-dev-build --force
......
apt-get update
apt-get install --install-recommends -y inetutils-ping udev iptables bridge-utils busybox-static python gnupg openssh-server avahi-daemon nano vim
systemctl disable NetworkManager || true
systemctl enable systemd-resolved
systemctl start systemd-resolved
rm /etc/resolv.conf || true
ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
systemctl enable systemd-networkd
systemctl restart systemd-networkd
systemctl restart systemd-resolved
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment