From dca06dc7dec148cac2d9e27cdb20d7d26bb0a941 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Thu, 20 Aug 2015 13:56:57 -0700 Subject: [PATCH] Enable nbd if you're running an lxc virt_type without an lvm backend 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 Change-Id: I08c4d498ed35166f566291d9530ca1ecfae05625 --- lib/nova | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/nova b/lib/nova index 6441a891eb..087cac6016 100644 --- a/lib/nova +++ b/lib/nova @@ -354,6 +354,12 @@ function configure_nova { sudo mount /cgroup fi fi + + # enable nbd for lxc unless you're using an lvm backend + # otherwise you can't boot instances + if [[ "$NOVA_BACKEND" != "LVM" ]]; then + sudo modprobe nbd + fi fi fi fi