6 ## install lxc pre-configuration to setup multiple interfaces
7 status-set maintenance "setting up lxc clone hook" || true
8 mkdir -p /usr/local/share/lxc/hooks/
9 install -m 755 lxc/add-more-interfaces /usr/local/share/lxc/hooks/
12 --divert /usr/share/lxc/config/ubuntu-cloud.trusty.conf.ubuntu.orig \
13 --add /usr/share/lxc/config/ubuntu-cloud.trusty.conf
14 mkdir -p /usr/share/lxc/config/
15 install -m 644 lxc/ubuntu-cloud.trusty.conf /usr/share/lxc/config/
18 status-set maintenance "setting up network interfaces" || true
19 apt-get update || true
20 apt-get install -y ifenslave ethtool bridge-utils vlan
22 if ! grep -q 8021q /etc/modules; then
23 echo 8021q >> /etc/modules
26 ## write /etc/network/interfaces for the host
27 install -m 644 network/interfaces.host /etc/network/interfaces
30 status-set active || true