[Ovirt-devel] [PATCH node] Checks for hardware support for virtualization.
Darryl L. Pierce
dpierce at redhat.com
Thu Feb 26 19:06:25 UTC 2009
If hardware support is not found then an error is logged calling out
that hardware virt is not supported.
Signed-off-by: Darryl L. Pierce <dpierce at redhat.com>
---
scripts/ovirt-post | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/scripts/ovirt-post b/scripts/ovirt-post
index 068c709..3c8cb13 100755
--- a/scripts/ovirt-post
+++ b/scripts/ovirt-post
@@ -11,6 +11,15 @@
. /etc/init.d/ovirt-functions
start() {
+ hwvirt=$(virsh capabilities)
+ if [[ $hwvirt =~ kvm ]]; then
+ log "Hardware virtualization detected"
+ else
+ log "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+ log "!!! No hardware virtualization detected. !!!"
+ log "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+ fi
+
if is_standalone; then
return 0
fi
--
1.6.0.6
More information about the ovirt-devel
mailing list