<div dir="ltr">I'm trying to use virt-sysprep on an Ubuntu 13.10 vm running on OpenStack. I've followed the command "gotchas" from the FAQ and still not had any luck.<div><br></div><div><b>What are you trying to do?</b></div>
<div><b><br></b></div><div>Attempting to use virt-sysprep on a qcow2 image made with virt-install</div><div><br></div><div><b>What commands?</b></div><div><b><br></b></div><div>I've run virt-sysprep (with both -d and -a options) and gotten the following error:</div>
<div><br></div><div><div>Fatal error: exception Guestfs.Error("guestfs_launch failed.</div><div>This usually means the libguestfs appliance failed to start or crashed.</div><div>See <a href="http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs">http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs</a></div>
<div>or run 'libguestfs-test-tool' and post the *complete* output into a</div><div>bug report </div></div><div><br></div><div>I then went through the FAQ and followed the recommended steps.</div><div><br></div><div>
Running libguestft-test-tool yields:</div><div><br></div><div><br></div><div><div>     ************************************************************</div><div>     *                    IMPORTANT NOTICE</div><div>     *</div>
<div>     * When reporting bugs, include the COMPLETE, UNEDITED</div><div>     * output below in your bug report.</div><div>     *</div><div>     ************************************************************</div><div>PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin</div>
<div>SELinux: sh: 1: getenforce: not found</div><div>library version: 1.22.4</div><div>guestfs_get_append: (null)</div><div>guestfs_get_backend: direct</div><div>guestfs_get_autosync: 1</div><div>guestfs_get_cachedir: /var/tmp</div>
<div>guestfs_get_direct: 0</div><div>guestfs_get_memsize: 500</div><div>guestfs_get_network: 0</div><div>guestfs_get_path: /usr/lib/guestfs</div><div>guestfs_get_pgroup: 0</div><div>guestfs_get_program: libguestfs-test-tool</div>
<div>guestfs_get_qemu: /usr/bin/qemu-system-x86_64</div><div>guestfs_get_recovery_proc: 1</div><div>guestfs_get_selinux: 0</div><div>guestfs_get_smp: 1</div><div>guestfs_get_tmpdir: /tmp</div><div>guestfs_get_trace: 0</div>
<div>guestfs_get_verbose: 1</div><div>host_cpu: x86_64</div><div>Launching appliance, timeout set to 600 seconds.</div><div>libguestfs: launch: backend=direct</div><div>libguestfs: launch: tmpdir=/tmp/libguestfsH1o0hZ</div>
<div>libguestfs: launch: umask=0022</div><div>libguestfs: launch: euid=0</div><div>libguestfs: command: run: supermin-helper</div><div>libguestfs: command: run: \ --verbose</div><div>libguestfs: command: run: \ -f checksum</div>
<div>libguestfs: command: run: \ /usr/lib/guestfs/supermin.d</div><div>libguestfs: command: run: \ x86_64</div><div>supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, kernel = (null), initrd = (null), appliance = (null)</div>
<div>supermin helper [00000ms] inputs[0] = /usr/lib/guestfs/supermin.d</div><div>checking modpath /lib/modules/3.11.0-15-generic is a directory</div><div>picked vmlinuz-3.11.0-15-generic because modpath /lib/modules/3.11.0-15-generic exists</div>
<div>supermin helper [00000ms] finished creating kernel</div><div>supermin helper [00000ms] visiting /usr/lib/guestfs/supermin.d</div><div>supermin helper [00000ms] visiting /usr/lib/guestfs/supermin.d/base.img</div><div>
supermin helper [00000ms] visiting /usr/lib/guestfs/supermin.d/daemon.img</div><div>supermin helper [00000ms] visiting /usr/lib/guestfs/supermin.d/hostfiles</div><div>supermin helper [00024ms] visiting /usr/lib/guestfs/supermin.d/init.img</div>
<div>supermin helper [00024ms] visiting /usr/lib/guestfs/supermin.d/udev-rules.img</div><div>supermin helper [00024ms] adding kernel modules</div><div>supermin helper [00036ms] finished creating appliance</div><div>libguestfs: checksum of existing appliance: 9b64713489581d48f30dd83cc66458a1ef2d1a86dbc27d385cac945d7491f121</div>
<div>libguestfs: [00040ms] begin testing qemu features</div><div>libguestfs: command: run: /usr/bin/qemu-system-x86_64</div><div>libguestfs: command: run: \ -nographic</div><div>libguestfs: command: run: \ -help</div><div>
libguestfs: command: run: /usr/bin/qemu-system-x86_64</div><div>libguestfs: command: run: \ -nographic</div><div>libguestfs: command: run: \ -version</div><div>libguestfs: qemu version 1.5</div><div>libguestfs: command: run: /usr/bin/qemu-system-x86_64</div>
<div>libguestfs: command: run: \ -nographic</div><div>libguestfs: command: run: \ -machine accel=kvm:tcg</div><div>libguestfs: command: run: \ -device ?</div><div>libguestfs: [00145ms] finished testing qemu features</div>
<div>[00145ms] /usr/bin/qemu-system-x86_64 \</div><div>    -global virtio-blk-pci.scsi=off \</div><div>    -nodefconfig \</div><div>    -nodefaults \</div><div>    -nographic \</div><div>    -device virtio-scsi-pci,id=scsi \</div>
<div>    -drive file=/tmp/libguestfs-test-tool-sda-r1GMFw,cache=none,format=raw,id=hd0,if=none \</div><div>    -device scsi-hd,drive=hd0 \</div><div>    -drive file=/var/tmp/.guestfs-0/root.2492,snapshot=on,id=appliance,if=none,cache=unsafe \</div>
<div>    -device scsi-hd,drive=appliance \</div><div>    -machine accel=kvm:tcg \</div><div>    -m 500 \</div><div>    -no-reboot \</div><div>    -no-hpet \</div><div>    -device virtio-serial \</div><div>    -serial stdio \</div>
<div>    -device sga \</div><div>    -chardev socket,path=/tmp/libguestfsH1o0hZ/guestfsd.sock,id=channel0 \</div><div>    -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \</div><div>    -kernel /var/tmp/.guestfs-0/kernel.2492 \</div>
<div>    -initrd /var/tmp/.guestfs-0/initrd.2492 \</div><div>    -append 'panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm'\x1b[1;256r\x1b[256;256H\x1b[6n</div>
<div>Google, Inc.</div><div>Serial Graphics Adapter 06/09/13</div><div>SGABIOS $Id: sgabios.S 8 2010-04-22 00:03:40Z nlaredo $ (buildd@allspice) Sun Jun  9 17:23:53 UTC 2013</div><div>Term: 80x24</div><div>4 0</div><div>SeaBIOS (version 1.7.3-20130708_231806-aatxe)</div>
<div>Booting from ROM...</div><div>\x1b[2J[    0.000000] Initializing cgroup subsys cpuset</div><div>libguestfs: error: appliance closed the connection unexpectedly, see earlier error messages</div><div>libguestfs: child_cleanup: 0x19a9580: child process died</div>
<div>libguestfs: sending SIGTERM to process 2502</div><div>libguestfs: error: guestfs_launch failed, see earlier error messages</div><div>libguestfs-test-tool: failed to launch appliance</div><div>libguestfs: closing guestfs handle 0x19a9580 (state 0)</div>
<div>libguestfs: command: run: rm</div><div>libguestfs: command: run: \ -rf /tmp/libguestfsH1o0hZ</div></div><div><br></div><div><b>Version information:</b></div><div><br></div><div><div>libguestfs-tools:</div><div>  Installed: 1:1.22.4-1ubuntu1</div>
<div>  Candidate: 1:1.22.4-1ubuntu1</div><div>  Version table:</div><div> *** 1:1.22.4-1ubuntu1 0</div><div>        500 <a href="http://archive.ubuntu.com/ubuntu/">http://archive.ubuntu.com/ubuntu/</a> saucy-updates/universe amd64 Packages</div>
<div>        100 /var/lib/dpkg/status</div><div>     1:1.22.4-1 0</div><div>        500 <a href="http://archive.ubuntu.com/ubuntu/">http://archive.ubuntu.com/ubuntu/</a> saucy/universe amd64 Packages</div><div>virtinst:</div>
<div>  Installed: 0.600.4-2ubuntu2.1</div><div>  Candidate: 0.600.4-2ubuntu2.1</div><div>  Version table:</div><div> *** 0.600.4-2ubuntu2.1 0</div><div>        500 <a href="http://archive.ubuntu.com/ubuntu/">http://archive.ubuntu.com/ubuntu/</a> saucy-updates/main amd64 Packages</div>
<div>        100 /var/lib/dpkg/status</div><div>     0.600.4-2ubuntu2 0</div><div>        500 <a href="http://archive.ubuntu.com/ubuntu/">http://archive.ubuntu.com/ubuntu/</a> saucy/main amd64 Packages</div><div>seabios:</div>
<div>  Installed: 1.7.3-1</div><div>  Candidate: 1.7.3-1</div><div>  Version table:</div><div> *** 1.7.3-1 0</div><div>        500 <a href="http://archive.ubuntu.com/ubuntu/">http://archive.ubuntu.com/ubuntu/</a> saucy/main amd64 Packages</div>
<div>        100 /var/lib/dpkg/status</div><div><br></div></div><div><br></div></div>