|
...
|
...
|
@@ -240,8 +240,10 @@ function configure_nova() {
|
|
240
|
240
|
sudo sysctl -w net.ipv4.ip_forward=1
|
|
241
|
241
|
|
|
242
|
242
|
if [[ "$VIRT_DRIVER" = 'libvirt' ]]; then
|
|
243
|
|
- # Attempt to load modules: network block device - used to manage qcow images
|
|
244
|
|
- sudo modprobe nbd || true
|
|
|
243
|
+ # When libguestfs is available for file injection, enable using
|
|
|
244
|
+ # libguestfs to inspect the image and figure out the proper
|
|
|
245
|
+ # partition to inject into.
|
|
|
246
|
+ iniset $NOVA_CONF libvirt inject_partition '-1'
|
|
245
|
247
|
|
|
246
|
248
|
# Check for kvm (hardware based virtualization). If unable to initialize
|
|
247
|
249
|
# kvm, we drop back to the slower emulation mode (qemu). Note: many systems
|