Minor changes to the LXD preseed were required as part of the
update to LXD 5.0
Change-Id: I6741e74b811f8435b4e74a9587c93d3c4d368dab
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
sudo usermod -a -G lxd `whoami`
cat /usr/share/osm-devops/installers/lxd-preseed.conf | sed 's/^config: {}/config:\n core.https_address: '$LXDENDPOINT':8443/' | sg lxd -c "lxd init --preseed"
sg lxd -c "lxd waitready"
sudo usermod -a -G lxd `whoami`
cat /usr/share/osm-devops/installers/lxd-preseed.conf | sed 's/^config: {}/config:\n core.https_address: '$LXDENDPOINT':8443/' | sg lxd -c "lxd init --preseed"
sg lxd -c "lxd waitready"
- DEFAULT_MTU=$(ip addr show $DEFAULT_IF | perl -ne 'if (/mtu\s(\d+)/) {print $1;}')
- sg lxd -c "lxc profile device set default eth0 mtu $DEFAULT_MTU"
- sg lxd -c "lxc network set lxdbr0 bridge.mtu $DEFAULT_MTU"
cat << EOF > $LXD_CLOUD
clouds:
cat << EOF > $LXD_CLOUD
clouds:
sudo usermod -a -G lxd `whoami`
cat ${OSM_DEVOPS}/installers/lxd-preseed.conf | sed 's/^config: {}/config:\n core.https_address: '$OSM_DEFAULT_IP':8443/' | sg lxd -c "lxd init --preseed"
sg lxd -c "lxd waitready"
sudo usermod -a -G lxd `whoami`
cat ${OSM_DEVOPS}/installers/lxd-preseed.conf | sed 's/^config: {}/config:\n core.https_address: '$OSM_DEFAULT_IP':8443/' | sg lxd -c "lxd init --preseed"
sg lxd -c "lxd waitready"
- sg lxd -c "lxc profile device set default eth0 mtu $DEFAULT_MTU"
- sg lxd -c "lxc network set lxdbr0 bridge.mtu $DEFAULT_MTU"
- # sudo systemctl stop lxd-bridge
- # sudo systemctl --system daemon-reload
- # sudo systemctl enable lxd-bridge
- # sudo systemctl start lxd-bridge
# Configure LXD to work behind a proxy
if [ -n "${OSM_BEHIND_PROXY}" ] ; then
# Configure LXD to work behind a proxy
if [ -n "${OSM_BEHIND_PROXY}" ] ; then
ipv4.address: auto
ipv6.address: none
description: ""
ipv4.address: auto
ipv6.address: none
description: ""
description: ""
name: default
driver: btrfs
description: ""
name: default
driver: btrfs
devices:
eth0:
name: eth0
devices:
eth0:
name: eth0
- nictype: bridged
- parent: lxdbr0
type: nic
root:
path: /
pool: default
type: disk
name: default
type: nic
root:
path: /
pool: default
type: disk
name: default
+projects: []
+cluster: null
\ No newline at end of file