diff --git a/defaults/main.yml b/defaults/main.yml index 28b3e603..6865ce6d 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -541,6 +541,10 @@ lxd_storage_backend: dir # This variable should be used with lxd when using a # storage backend that utilizes storage pools #lxd_storage_pool: +# This variable should be used with lxd when using a +# storage backend that utilizes storage pool if you +# want to use a specific bloc device instead of loop +#lxd_storage_create_device: "/dev/sdb" # PCI devices passthrough to nova # For SR-IOV please use: diff --git a/templates/lxd-init.sh.j2 b/templates/lxd-init.sh.j2 index 1fa213fb..b2c70328 100644 --- a/templates/lxd-init.sh.j2 +++ b/templates/lxd-init.sh.j2 @@ -11,5 +11,8 @@ --storage-backend={{ lxd_storage_backend }} \ {% if lxd_storage_pool is defined %} --storage-pool={{ lxd_storage_pool }} \ +{% endif %} +{% if lxd_storage_create_device is defined %} + --storage-create-device={{ lxd_storage_create_device }} \ {% endif %} --trust-password={{ lxd_trust_password }} diff --git a/vars/ubuntu-16.04.yml b/vars/ubuntu-16.04.yml index 59e46b82..5bfeec56 100644 --- a/vars/ubuntu-16.04.yml +++ b/vars/ubuntu-16.04.yml @@ -70,6 +70,7 @@ nova_compute_lxd_distro_packages: - python-libguestfs - sysfsutils - vlan + - thin-provisioning-tools nova_nginx_distro_packages: - nginx-full