From 79799796f7489605ba9935091a116d150abf1709 Mon Sep 17 00:00:00 2001 From: Anthony Young Date: Mon, 19 Sep 2011 13:51:00 -0700 Subject: [PATCH] better check for kvm support --- stack.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack.sh b/stack.sh index 0ddf4db..5e1a3cc 100755 --- a/stack.sh +++ b/stack.sh @@ -291,7 +291,7 @@ if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then # qcow images) and kvm (hardware based virtualization). If unable to # load kvm, set the libvirt type to qemu. sudo modprobe nbd || true - if ! sudo modprobe kvm; then + if ! -e /dev/kvm; then LIBVIRT_TYPE=qemu fi # User needs to be member of libvirtd group for nova-compute to use libvirt.