Browse code

install libvirt as a dependency of nova

nova compute depends on libvirt, but it was not being installed
in the case of LIBVIRT_TYPE=lxc.

Change-Id: Iedae29e476ad529daa7c7b1be39a58a1c86c3b7c

Scott Moser authored on 2011/12/09 06:22:27
Showing 1 changed files
... ...
@@ -699,6 +699,7 @@ if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then
699 699
 
700 700
     # Virtualization Configuration
701 701
     # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
702
+    apt_get install libvirt-bin
702 703
 
703 704
     # attempt to load modules: network block device - used to manage qcow images
704 705
     sudo modprobe nbd || true
... ...
@@ -707,7 +708,6 @@ if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then
707 707
     # kvm, we drop back to the slower emulation mode (qemu).  Note: many systems
708 708
     # come with hardware virtualization disabled in BIOS.
709 709
     if [[ "$LIBVIRT_TYPE" == "kvm" ]]; then
710
-        apt_get install libvirt-bin
711 710
         sudo modprobe kvm || true
712 711
         if [ ! -e /dev/kvm ]; then
713 712
             echo "WARNING: Switching to QEMU"