diff options
Diffstat (limited to 'travis/setup-host')
-rwxr-xr-x | travis/setup-host | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/travis/setup-host b/travis/setup-host new file mode 100755 index 00000000..fd4ad07f --- /dev/null +++ b/travis/setup-host @@ -0,0 +1,16 @@ +#!/bin/bash +set -x + +sudo apt -t trusty-backports install -y lxd + +sudo sed -i 's/LXD_IPV4_ADDR=".*"/LXD_IPV4_ADDR="192.168.123.1"/' /etc/default/lxd-bridge +sudo sed -i 's/LXD_IPV4_NETMASK=".*"/LXD_IPV4_NETMASK="255.255.255.0"/' /etc/default/lxd-bridge +sudo sed -i 's/LXD_IPV4_NETWORK=".*"/LXD_IPV4_NETWORK="192.168.123.0\/24"/' /etc/default/lxd-bridge +sudo sed -i 's/LXD_IPV4_DHCP_RANGE=".*"/LXD_IPV4_DHCP_RANGE="192.168.123.2,192.168.123.12"/' /etc/default/lxd-bridge +sudo sed -i 's/LXD_IPV4_DHCP_MAX=".*"/LXD_IPV4_DHCP_MAX="10"/' /etc/default/lxd-bridge + +sudo service lxd restart + +sudo lxc launch ubuntu:zesty libvirt -c security.privileged=true +sudo lxc config device add libvirt code disk source=`pwd` path=code +sudo lxc info libvirt |