[Libguestfs] libguest-test-tool error report

Richard W.M. Jones rjones at redhat.com
Thu Aug 21 20:16:35 UTC 2014


On Thu, Aug 21, 2014 at 07:45:31PM +0000, Mark Husted (hustedm) wrote:
> Hello,
>
> I am trying to use virt-resize.  It does not work.  I set the debug
> environment variables and ran libguestfs-test-tool.  The following
> is its output.  I am running RHEL 6.5 desktop with kernel:
>
> Linux hustedm-lnx4 2.6.32-431.5.1.el6.x86_64 #1 SMP Fri Jan 10
> 14:46:43 EST 2014 x86_64 x86_64 x86_64 GNU/Linux
>
> Please let me know what I have missed.

[...]
> kvm_create_vm: Device or resource busy
> failed to initialize KVM: Operation not permitted

This is not good!  Does KVM generally work on this machine?  Do you
have VirtualBox or another hypervisor running at the same time?

If you were running a later version of libguestfs then I would
recommend setting:

  export LIBGUESTFS_BACKEND_SETTINGS=force_tcg

Unfortunately that doesn't work on 1.20 (added in 1.26) and doing the
equivalent in RHEL 6 is rather involved.

If KVM is broken or there's another hypervisor running you could
also try making /dev/kvm unreadable (chmod 0 /dev/kvm <or> rm /dev/kvm).

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v




More information about the Libguestfs mailing list