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:rjo...@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
bash-4.1$ sudo virt-resize --expand /dev/vda2 --LV-expand /dev/vg_main/lv_root 
centos6.4-x86_64-gold-master.img centos6.4-x86_64-gold-master-5G.img
Examining centos6.4-x86_64-gold-master.img ...
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: create: flags = 0, handle = 0x13d5bb0
libguestfs: trace: add_drive "centos6.4-x86_64-gold-master.img" "readonly:true"
libguestfs: trace: add_drive = 0
libguestfs: trace: add_drive "centos6.4-x86_64-gold-master-5G.img" 
"readonly:false"
libguestfs: trace: add_drive = 0
libguestfs: trace: launch
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp"
libguestfs: launch: attach-method=appliance
libguestfs: launch: tmpdir=/tmp/libguestfscOUkVu
libguestfs: launch: umask=0022
libguestfs: launch: euid=0
libguestfs: command: run: febootstrap-supermin-helper
libguestfs: command: run: \ --verbose
libguestfs: command: run: \ -f checksum
libguestfs: command: run: \ /usr/lib64/guestfs/supermin.d
libguestfs: command: run: \ x86_64
supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, 
kernel = (null), initrd = (null), appliance = (null)
supermin helper [00000ms] inputs[0] = /usr/lib64/guestfs/supermin.d
checking modpath /lib/modules/2.6.32-358.0.1.el6.x86_64 is a directory
picked vmlinuz-2.6.32-358.0.1.el6.x86_64 because modpath 
/lib/modules/2.6.32-358.0.1.el6.x86_64 exists
checking modpath /lib/modules/2.6.32-279.el6.x86_64 is a directory
picked vmlinuz-2.6.32-279.el6.x86_64 because modpath 
/lib/modules/2.6.32-279.el6.x86_64 exists
checking modpath /lib/modules/2.6.32-431.5.1.el6.x86_64 is a directory
picked vmlinuz-2.6.32-431.5.1.el6.x86_64 because modpath 
/lib/modules/2.6.32-431.5.1.el6.x86_64 exists
supermin helper [00000ms] finished creating kernel
supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d
supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d/base.img
supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d/daemon.img
supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d/hostfiles
supermin helper [00023ms] visiting /usr/lib64/guestfs/supermin.d/init.img
supermin helper [00023ms] visiting /usr/lib64/guestfs/supermin.d/udev-rules.img
supermin helper [00023ms] adding kernel modules
supermin helper [00051ms] finished creating appliance
libguestfs: checksum of existing appliance: 
8b1730261ac5707e649da0575701be9d6d733d196bfc13425803d30575c8ae4f
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: [00054ms] begin testing qemu features
libguestfs: command: run: /usr/libexec/qemu-kvm
libguestfs: command: run: \ -nographic
libguestfs: command: run: \ -help
libguestfs: command: run: /usr/libexec/qemu-kvm
libguestfs: command: run: \ -nographic
libguestfs: command: run: \ -version
libguestfs: qemu version 0.12
libguestfs: command: run: /usr/libexec/qemu-kvm
libguestfs: command: run: \ -nographic
libguestfs: command: run: \ -machine accel=kvm:tcg
libguestfs: command: run: \ -device ?
libguestfs: [00083ms] finished testing qemu features
libguestfs: accept_from_daemon: 0x13d5bb0 g->state = 1
[00083ms] /usr/libexec/qemu-kvm \
    -global virtio-blk-pci.scsi=off \
    -nodefconfig \
    -nodefaults \
    -nographic \
    -machine accel=kvm:tcg \
    -cpu host,+kvmclock \
    -m 500 \
    -no-reboot \
    -kernel /var/tmp/.guestfs-0/kernel.27666 \
    -initrd /var/tmp/.guestfs-0/initrd.27666 \
    -device virtio-scsi-pci,id=scsi \
    -drive file=centos6.4-x86_64-gold-master.img,snapshot=on,id=hd0,if=none \
    -device scsi-hd,drive=hd0 \
    -drive file=centos6.4-x86_64-gold-master-5G.img,cache=none,id=hd1,if=none \
    -device scsi-hd,drive=hd1 \
    -drive 
file=/var/tmp/.guestfs-0/root.27666,snapshot=on,id=appliance,if=none,cache=unsafe
 \
    -device scsi-hd,drive=appliance \
    -device virtio-serial \
    -serial stdio \
    -device sga \
    -chardev socket,path=/tmp/libguestfscOUkVu/guestfsd.sock,id=channel0 \
    -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
    -append 'panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off 
printk.time=1 cgroup_disable=memory root=/dev/sdc selinux=0 guestfs_verbose=1 
TERM=xterm'
kvm_create_vm: Device or resource busy
failed to initialize KVM: Operation not permitted
Back to tcg accelerator.
qemu-kvm: -drive 
file=centos6.4-x86_64-gold-master-5G.img,cache=none,id=hd1,if=none: 'hd1' uses 
a qcow2 feature which is not supported by this qemu version: QCOW version 3
qemu-kvm: -drive 
file=centos6.4-x86_64-gold-master-5G.img,cache=none,id=hd1,if=none: could not 
open disk image centos6.4-x86_64-gold-master-5G.img: Operation not supported
libguestfs: child_cleanup: 0x13d5bb0: child process died
libguestfs: sending SIGTERM to process 27675
libguestfs: trace: launch = -1 (error)
Fatal error: exception Guestfs.Error("guestfs_launch failed, see earlier error 
messages")
libguestfs: trace: close
libguestfs: closing guestfs handle 0x13d5bb0 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfscOUkVu
bash-4.1$ ^C
bash-4.1$ 
_______________________________________________
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs

Reply via email to