[node-patches] Change in ovirt-node[master]: fix check for kvm support

mburns at redhat.com mburns at redhat.com
Fri Jun 22 16:31:56 UTC 2012


Michael Burns has submitted this change and it was merged.

Change subject: fix check for kvm support
......................................................................


fix check for kvm support

Previously, we used virsh to determine if kvm support existed.  We
wanted to remove the dependence on libvirt in the check, so we
tried using systemd-detect-virt, but that determines if you're
running in a vm and not if you're capable of running a vm.

Now, check for existence of /dev/kvm and for the kvm vendor module
to be loaded.  This will indicate if KVM is enabled.

rhbz#832223

Change-Id: Ia4656b82639999e0328d63a37cef09097b287bdb
Signed-off-by: Mike Burns <mburns at redhat.com>
---
M scripts/ovirt-init-functions.sh
1 file changed, 1 insertion(+), 2 deletions(-)

Approvals:
  Michael Burns: Verified; Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/5366
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia4656b82639999e0328d63a37cef09097b287bdb
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Michael Burns <mburns at redhat.com>
Gerrit-Reviewer: Fabian Deutsch <fabiand at fedoraproject.org>
Gerrit-Reviewer: Michael Burns <mburns at redhat.com>



More information about the node-patches mailing list