Browse code

better check for kvm support

Anthony Young authored on 2011/09/20 05:51:00
Showing 1 changed files
... ...
@@ -291,7 +291,7 @@ if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then
291 291
     # qcow images) and kvm (hardware based virtualization).  If unable to 
292 292
     # load kvm, set the libvirt type to qemu.
293 293
     sudo modprobe nbd || true
294
-    if ! sudo modprobe kvm; then
294
+    if ! -e /dev/kvm; then
295 295
         LIBVIRT_TYPE=qemu
296 296
     fi
297 297
     # User needs to be member of libvirtd group for nova-compute to use libvirt.