Hello Rich,

Well, I did give that a try.  But it is back to being unable to access kvm (log 
attached).  It did make the qemu error go away.

Thanks,
Mark



Thanks,
Mark Husted
770-236-1242


-----Original Message-----
From: Richard W.M. Jones [mailto:rjo...@redhat.com] 
Sent: Friday, August 22, 2014 8:31 AM
To: Mark Husted (hustedm)
Cc: libguestfs@redhat.com
Subject: Re: [Libguestfs] libguest-test-tool error report

On Fri, Aug 22, 2014 at 11:33:20AM +0000, Mark Husted (hustedm) wrote:
> Hello Rich,
> 
> Well, that stinks.
> 
> I really appreciate the quick responses.  Thank you for your time and effort, 
> too.  I will see what I can do to solve this problem some other way.  Maybe I 
> can virtualize my disk image maker.

I should have mentioned that it's possible to create the disk image in a 
compatible mode.  You have to use the `compat=0.10' option (see qemu-img man 
page for where to put that).  However once you've created the disk image it is 
my understanding that you cannot `downgrade' it.

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
bash-4.1$ qemu-img create -f qcow2 -o compat=0.10  
centos6.4-x86_64-gold-master-5G.img 5G
Formatting 'centos6.4-x86_64-gold-master-5G.img', fmt=qcow2 size=5368709120 
compat='0.10' encryption=off cluster_size=65536 lazy_refcounts=off 
bash-4.1$ !1260
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
This is your AD password:
Examining centos6.4-x86_64-gold-master.img ...
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: create: flags = 0, handle = 0x2411bb0
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/libguestfssi1vAd
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 [00016ms] visiting /usr/lib64/guestfs/supermin.d/init.img
supermin helper [00016ms] visiting /usr/lib64/guestfs/supermin.d/udev-rules.img
supermin helper [00016ms] adding kernel modules
supermin helper [00041ms] finished creating appliance
libguestfs: checksum of existing appliance: 
e2c81f804f7a2cb3a26b8beedb4f8b25c003d5a7d1382e0ee02d9a58753fb5ed
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: [00070ms] begin building supermin appliance
libguestfs: [00070ms] run supermin-helper
libguestfs: command: run: febootstrap-supermin-helper
libguestfs: command: run: \ --verbose
libguestfs: command: run: \ --copy-kernel
libguestfs: command: run: \ -f ext2
libguestfs: command: run: \ /usr/lib64/guestfs/supermin.d
libguestfs: command: run: \ x86_64
libguestfs: command: run: \ /var/tmp/guestfs.ZlN1BG/kernel
libguestfs: command: run: \ /var/tmp/guestfs.ZlN1BG/initrd
libguestfs: command: run: \ /var/tmp/guestfs.ZlN1BG/root
supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, 
kernel = /var/tmp/guestfs.ZlN1BG/kernel, initrd = 
/var/tmp/guestfs.ZlN1BG/initrd, appliance = /var/tmp/guestfs.ZlN1BG/root
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 [00011ms] finished creating kernel
supermin helper [01780ms] finished mke2fs
supermin helper [01780ms] visiting /usr/lib64/guestfs/supermin.d
supermin helper [01780ms] visiting /usr/lib64/guestfs/supermin.d/base.img
supermin helper [04083ms] visiting /usr/lib64/guestfs/supermin.d/daemon.img
supermin helper [04090ms] visiting /usr/lib64/guestfs/supermin.d/hostfiles
supermin helper [06282ms] visiting /usr/lib64/guestfs/supermin.d/init.img
supermin helper [06282ms] visiting /usr/lib64/guestfs/supermin.d/udev-rules.img
supermin helper [06283ms] adding kernel modules
supermin helper [11023ms] closing ext2 filesystem
supermin helper [12802ms] finished creating appliance
libguestfs: [12876ms] finished building supermin appliance
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /var/tmp/guestfs.ZlN1BG
? 25% 
?¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦--------------------------------------------------------------------------------------?
 --:--
libguestfs: [12983ms] 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: [13016ms] finished testing qemu features
libguestfs: accept_from_daemon: 0x2411bb0 g->state = 1
[13017ms] /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.20152 \
    -initrd /var/tmp/.guestfs-0/initrd.20152 \
    -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.20152,snapshot=on,id=appliance,if=none,cache=unsafe
 \
    -device scsi-hd,drive=appliance \
    -device virtio-serial \
    -serial stdio \
    -device sga \
    -chardev socket,path=/tmp/libguestfssi1vAd/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.
Unknown cpu model: host
Unable to support requested x86 CPU definition
libguestfs: child_cleanup: 0x2411bb0: child process died
libguestfs: sending SIGTERM to process 20178
libguestfs: trace: launch = -1 (error)
Fatal error: exception Guestfs.Error("guestfs_launch failed, see earlier error 
messages")
libguestfs: trace: close
libguestfs: closing guestfs handle 0x2411bb0 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfssi1vAd
bash-4.1$ 
_______________________________________________
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs

Reply via email to