From 0af8122834917b4e44ee0cfae22eb5f93472f1a6 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Sun, 2 Feb 2014 09:59:07 +1300 Subject: [PATCH] Disable file injection for libvirt driver Change-Id: I73289195d3bb455f4076fadd2eadd6036b04b722 --- lib/nova | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/nova b/lib/nova index d5f7514be5..0db242a34a 100644 --- a/lib/nova +++ b/lib/nova @@ -240,10 +240,9 @@ function configure_nova() { sudo sysctl -w net.ipv4.ip_forward=1 if [[ "$VIRT_DRIVER" = 'libvirt' ]]; then - # When libguestfs is available for file injection, enable using - # libguestfs to inspect the image and figure out the proper - # partition to inject into. - iniset $NOVA_CONF libvirt inject_partition '-1' + # File injection is being disabled by default in the near future - + # disable it here for now to avoid surprises later. + iniset $NOVA_CONF libvirt inject_partition '-2' # Check for kvm (hardware based virtualization). If unable to initialize # kvm, we drop back to the slower emulation mode (qemu). Note: many systems