Hello Rich,
I am not sure if KVM ever ran. I put VirtualBox in it because I have never done
virtualization before and found some instructions for VB. That said, I might have naively
shut something off because I didn't know any better. No VB was not running at the
time. I thought of that and turned it off. Though, I bet the services are still up.
What is the standard kvm service? I could check to see if it is running properly. And we
could go from there.
Thanks for the quick response!
-Mark
Thanks,
Mark Husted
770-236-1242
-----Original Message-----
From: Richard W.M. Jones [mailto:rjones@redhat.com]
Sent: Thursday, August 21, 2014 4:17 PM
To: Mark Husted (hustedm)
Cc: libguestfs(a)redhat.com
Subject: Re: [Libguestfs] libguest-test-tool error report
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