If nbd isn't enabled you can't boot instances with libvirt using lxc
(unless you're using an lvm backend).
Closes-Bug: #1487195
Co-Authored-By: Andrew Melton <andrew.melton@rackspace.com>
Change-Id: I08c4d498ed35166f566291d9530ca1ecfae05625
... | ... |
@@ -354,6 +354,12 @@ function configure_nova { |
354 | 354 |
sudo mount /cgroup |
355 | 355 |
fi |
356 | 356 |
fi |
357 |
+ |
|
358 |
+ # enable nbd for lxc unless you're using an lvm backend |
|
359 |
+ # otherwise you can't boot instances |
|
360 |
+ if [[ "$NOVA_BACKEND" != "LVM" ]]; then |
|
361 |
+ sudo modprobe nbd |
|
362 |
+ fi |
|
357 | 363 |
fi |
358 | 364 |
fi |
359 | 365 |
fi |