Skip to content

Commit 3825e8e

Browse files
author
Tim Pouyer
committed
Updates to support running Docker in LXD containers.
1 parent 0973d47 commit 3825e8e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

scripts/stackinabox/init.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ echo "Install LXD and initialize with ZFS storage-pool 'lxd' for backend"
3535
sudo apt-get install -y lxd
3636
sudo lxd init --auto --storage-backend zfs --storage-pool lxd
3737

38+
# flip the module parameters to enable user namespace mounts for fuse and/or ext4 within lxd containers
39+
echo Y | sudo tee /sys/module/fuse/parameters/userns_mounts
40+
echo Y | sudo tee /sys/module/ext4/parameters/userns_mounts
41+
3842
sudo apt-get install -y python-pip
3943
sudo pip install -U os-testr
4044
sudo pip install -U pbr
@@ -90,7 +94,7 @@ initial-interval 1;
9094
backoff-cutoff 2;
9195
interface "enp0s3"
9296
{
93-
prepend domain-name-servers 192.168.27.100, 8.8.8.8, 8.8.4.4;
97+
prepend domain-name-servers 8.8.8.8, 8.8.4.4;
9498
request subnet-mask,
9599
broadcast-address,
96100
time-offset,
@@ -175,4 +179,5 @@ sudo update-rc.d devstack start 98 2 3 4 5 . stop 02 0 1 6 .
175179

176180
cp /vagrant/scripts/stackinabox/admin-openrc.sh /home/vagrant
177181
cp /vagrant/scripts/stackinabox/demo-openrc.sh /home/vagrant
182+
cp /vagrant/scripts/stackinabox/openrc /home/vagrant
178183
exit 0

scripts/stackinabox/openrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ fi
1010
export OS_USERNAME=${OS_USERNAME:-demo}
1111
export OS_TENANT_NAME=${OS_TENANT_NAME:-demo}
1212
export OS_PASSWORD=labstack
13-
export OS_NO_CACHE=1
1413
export OS_REGION_NAME=${REGION_NAME:-RegionOne}
1514
export HOST_IP=${HOST_IP:-192.168.27.100}
16-
export SERVICE_HOST=${SERVICE_HOST:-$HOST_IP}
1715
export GLANCE_HOST=${GLANCE_HOST:-$HOST_IP}
16+
export SERVICE_HOST=${SERVICE_HOST:-$HOST_IP}
1817
export SERVICE_PROTOCOL=${SERVICE_PROTOCOL:-http}
1918
export KEYSTONE_AUTH_PROTOCOL=${KEYSTONE_AUTH_PROTOCOL:-$SERVICE_PROTOCOL}
2019
export KEYSTONE_AUTH_HOST=${KEYSTONE_AUTH_HOST:-$SERVICE_HOST}

0 commit comments

Comments
 (0)