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: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$ !1186
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 = 0x279abb0
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/libguestfs9sKaqD
libguestfs: launch: umask=0022
libguestfs: launch: euid=172990
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 [00017ms] visiting /usr/lib64/guestfs/supermin.d/init.img
supermin helper [00017ms] visiting /usr/lib64/guestfs/supermin.d/udev-rules.img
supermin helper [00017ms] adding kernel modules
supermin helper [00042ms] finished creating appliance
libguestfs: checksum of existing appliance: 
7b8750ee421097e06adfcd48c6a7fbefc3ab131ff84819e41c15d770fef8702b
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: [00044ms] 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: [00066ms] finished testing qemu features
libguestfs: is_openable: /dev/kvm: No such file or directory
libguestfs: accept_from_daemon: 0x279abb0 g->state = 1
[00066ms] /usr/libexec/qemu-kvm \
    -global virtio-blk-pci.scsi=off \
    -nodefconfig \
    -nodefaults \
    -nographic \
    -machine accel=kvm:tcg \
    -cpu qemu64,+kvmclock \
    -m 500 \
    -no-reboot \
    -kernel /var/tmp/.guestfs-172990/kernel.23559 \
    -initrd /var/tmp/.guestfs-172990/initrd.23559 \
    -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-172990/root.23559,snapshot=on,id=appliance,if=none,cache=unsafe
 \
    -device scsi-hd,drive=appliance \
    -device virtio-serial \
    -serial stdio \
    -device sga \
    -chardev socket,path=/tmp/libguestfs9sKaqD/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'
open /dev/kvm: No such file or directory
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: 0x279abb0: child process died
libguestfs: sending SIGTERM to process 23568
libguestfs: trace: launch = -1 (error)
Fatal error: exception Guestfs.Error("guestfs_launch failed, see earlier error 
messages")
libguestfs: trace: close
libguestfs: closing guestfs handle 0x279abb0 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfs9sKaqD
bash-4.1$ 
_______________________________________________
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs

Reply via email to