]> xenbits.xensource.com Git - libvirt.git/commit
Add a virt-host-validate command to sanity check HV config
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 10 Jan 2012 17:31:21 +0000 (17:31 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 27 Jan 2012 17:53:18 +0000 (17:53 +0000)
commit54a38915d80b5fa2f21f9124dd72f20a354aa6f5
tree7ba5d635035c65b62e38f6190bc73b3327034a8f
parentb66d1bef14739ab56ed9f430b4c4e5b89ed5ed12
Add a virt-host-validate command to sanity check HV config

To assist people in verifying that their host is operating in an
optimal manner, provide a 'virt-host-validate' command. For each
type of hypervisor, it will check any pre-requisites, or other
good recommendations and report what's working & what is not.

eg

  # virt-host-validate
  QEMU: Checking for device /dev/kvm                                         : FAIL (Check that the 'kvm-intel' or 'kvm-amd' modules are loaded & the BIOS has enabled virtualization)
  QEMU: Checking for device /dev/vhost                                       : WARN (Load the 'vhost_net' module to improve performance of virtio networking)
  QEMU: Checking for device /dev/net/tun                                     : PASS
   LXC: Checking for Linux >= 2.6.26                                         : PASS

This warns people if they have vmx/svm, but don't have /dev/kvm. It
also warns about missing /dev/vhost net.
libvirt.spec.in
mingw32-libvirt.spec.in
po/POTFILES.in
tools/Makefile.am
tools/virt-host-validate-common.c [new file with mode: 0644]
tools/virt-host-validate-common.h [new file with mode: 0644]
tools/virt-host-validate-lxc.c [new file with mode: 0644]
tools/virt-host-validate-lxc.h [new file with mode: 0644]
tools/virt-host-validate-qemu.c [new file with mode: 0644]
tools/virt-host-validate-qemu.h [new file with mode: 0644]
tools/virt-host-validate.c [new file with mode: 0644]