Mark Husted (hustedm)
2014-Aug-21 20:20 UTC
Re: [Libguestfs] libguest-test-tool error report
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@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 permittedThis 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
On Thu, Aug 21, 2014 at 08:20:11PM +0000, Mark Husted (hustedm) wrote:> 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.There's not really a "KVM service" as such. It is a part of the kernel is only used when you start a KVM guest. In any case as it looks like you have VirtualBox running, my advice would be to delete the /dev/kvm file, and try running libguestfs-test-tool and/or virt-resize again. sudo 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 libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
Mark Husted (hustedm)
2014-Aug-22 01:50 UTC
Re: [Libguestfs] libguest-test-tool error report
Hello Rich, I figured out how to stop the VB services. I then deleted the /dev/kvm. Then I ran the libguestfs-test-tool and it said 'OK'. Then I ran virt-resize and it was unhappy that /dev/kvm no longer existed. I have attached the debug output for your review. Thanks, Mark Thanks, Mark Husted 770-236-1242 -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Thursday, August 21, 2014 4:34 PM To: Mark Husted (hustedm) Cc: libguestfs@redhat.com Subject: Re: [Libguestfs] libguest-test-tool error report On Thu, Aug 21, 2014 at 08:20:11PM +0000, Mark Husted (hustedm) wrote:> 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.There's not really a "KVM service" as such. It is a part of the kernel is only used when you start a KVM guest. In any case as it looks like you have VirtualBox running, my advice would be to delete the /dev/kvm file, and try running libguestfs-test-tool and/or virt-resize again. sudo 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 libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
Mark Husted (hustedm)
2014-Aug-22 02:41 UTC
Re: [Libguestfs] libguest-test-tool error report
Hey Rich, I added some more libvirt packages that seemed to be missing. Added the /dev/kvm node back... and still no luck. I have attached the latest errors from running virt-resize. I did notice that a call to 'qemu-kvm' is unhappy about the qcow2 format? It looks like it can only do version 3? I am not sure that makes sense. Also, my RHEL Desktop was recently upgraded from the 6.3 channel to the 6.5 channel. Again, not sure if this matters. Thanks, Mark Thanks, Mark Husted 770-236-1242 -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Thursday, August 21, 2014 4:34 PM To: Mark Husted (hustedm) Cc: libguestfs@redhat.com Subject: Re: [Libguestfs] libguest-test-tool error report On Thu, Aug 21, 2014 at 08:20:11PM +0000, Mark Husted (hustedm) wrote:> 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.There's not really a "KVM service" as such. It is a part of the kernel is only used when you start a KVM guest. In any case as it looks like you have VirtualBox running, my advice would be to delete the /dev/kvm file, and try running libguestfs-test-tool and/or virt-resize again. sudo 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 libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org