Deepti Navale
2015-Jul-02 04:47 UTC
[Libguestfs] libguestfs error: need help troubleshooting
Hi, I'm trying to manually create a rhel7 image using the qemu-img and virt-install commands. I'm re-testing a procedure I previously wrote with the new grub commands that a customer suggested we add in. This procedure is available at: http://file.bne.redhat.com/dnavale/docs/review/RH-guides/AG-020715/#sect-create-images As in the procedure, I'm able to run all steps successfully until step 12. When I run the virt-sysprep command, I get the following errors: -------------- ➜ RHEL7 sudo virt-sysprep -d rhel7 --format qcow2 [ 0.0] Examining the guest ... Fatal error: exception Guestfs.Error("qemu-img: /tmp/libguestfsStQSH1/overlay1: qemu-img exited with error status 1. To see full error messages you may need to enable debugging. See http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs") -------------- Then I updated the qemu-img package and started getting this error: -------------- ➜ RHEL7 sudo virt-sysprep -d rhel7 [ 0.0] Examining the guest ... Fatal error: exception Guestfs.Error("/usr/bin/supermin exited with error status 1. To see full error messages you may need to enable debugging. See http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs") -------------- I'm using the following packages: libguestfs-tools-c-1.26.10-1.fc20.x86_64, libguestfs-1.26.10-1.fc20.x86_64 on a Fedora20 machine. And I used 'yum install -y libguestfs-tools-c' command to install the package. The complete, unedited output of the libguestfs-test-tool command is as below: ➜ RHEL7 libguestfs-test-tool ************************************************************ * IMPORTANT NOTICE * * When reporting bugs, include the COMPLETE, UNEDITED * output below in your bug report. * ************************************************************ libguestfs: trace: set_verbose true libguestfs: trace: set_verbose = 0 libguestfs: trace: set_verbose true libguestfs: trace: set_verbose = 0 LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1 PATH=/home/deepti/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/home/deepti/bin:/usr/local/sbin:/usr/sbin SELinux: Enforcing libguestfs: trace: add_drive_scratch 104857600 libguestfs: trace: get_tmpdir libguestfs: trace: get_tmpdir = "/tmp" libguestfs: trace: disk_create "/tmp/libguestfss2QPvp/scratch.1" "raw" 104857600 libguestfs: trace: disk_create = 0 libguestfs: trace: add_drive "/tmp/libguestfss2QPvp/scratch.1" "format:raw" "cachemode:unsafe" libguestfs: trace: add_drive = 0 libguestfs: trace: add_drive_scratch = 0 libguestfs: trace: get_append libguestfs: trace: get_append = "NULL" guestfs_get_append: (null) libguestfs: trace: get_autosync libguestfs: trace: get_autosync = 1 guestfs_get_autosync: 1 libguestfs: trace: get_backend libguestfs: trace: get_backend = "libvirt" guestfs_get_backend: libvirt libguestfs: trace: get_backend_settings libguestfs: trace: get_backend_settings = [] guestfs_get_backend_settings: [] libguestfs: trace: get_cachedir libguestfs: trace: get_cachedir = "/var/tmp" guestfs_get_cachedir: /var/tmp libguestfs: trace: get_direct libguestfs: trace: get_direct = 0 guestfs_get_direct: 0 libguestfs: trace: get_hv libguestfs: trace: get_hv = "/usr/bin/qemu-kvm" guestfs_get_hv: /usr/bin/qemu-kvm libguestfs: trace: get_memsize libguestfs: trace: get_memsize = 500 guestfs_get_memsize: 500 libguestfs: trace: get_network libguestfs: trace: get_network = 0 guestfs_get_network: 0 libguestfs: trace: get_path libguestfs: trace: get_path = "/usr/lib64/guestfs" guestfs_get_path: /usr/lib64/guestfs libguestfs: trace: get_pgroup libguestfs: trace: get_pgroup = 0 guestfs_get_pgroup: 0 libguestfs: trace: get_program libguestfs: trace: get_program = "libguestfs-test-tool" guestfs_get_program: libguestfs-test-tool libguestfs: trace: get_recovery_proc libguestfs: trace: get_recovery_proc = 1 guestfs_get_recovery_proc: 1 libguestfs: trace: get_selinux libguestfs: trace: get_selinux = 0 guestfs_get_selinux: 0 libguestfs: trace: get_smp libguestfs: trace: get_smp = 1 guestfs_get_smp: 1 libguestfs: trace: get_tmpdir libguestfs: trace: get_tmpdir = "/tmp" guestfs_get_tmpdir: /tmp libguestfs: trace: get_trace libguestfs: trace: get_trace = 1 guestfs_get_trace: 1 libguestfs: trace: get_verbose libguestfs: trace: get_verbose = 1 guestfs_get_verbose: 1 host_cpu: x86_64 Launching appliance, timeout set to 600 seconds. libguestfs: trace: launch libguestfs: trace: version libguestfs: trace: version = <struct guestfs_version *> libguestfs: trace: get_backend libguestfs: trace: get_backend = "libvirt" libguestfs: launch: program=libguestfs-test-tool libguestfs: launch: version=1.26.10fedora=20,release=1.fc20,libvirt libguestfs: launch: backend registered: unix libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: libvirt libguestfs: launch: backend registered: direct libguestfs: launch: backend=libvirt libguestfs: launch: tmpdir=/tmp/libguestfss2QPvp libguestfs: launch: umask=0002 libguestfs: launch: euid=1000 libguestfs: libvirt version = 1001003 (1.1.3) libguestfs: guest random name = guestfs-5v6jdpn1di0f0280 libguestfs: [00000ms] connect to libvirt libguestfs: opening libvirt handle: URI = qemu:///session, auth = default+wrapper, flags = 0 libguestfs: successfully opened libvirt handle: conn = 0x7f7fa5839a20 libguestfs: qemu version (reported by libvirt) = 1006002 (1.6.2) libguestfs: [00393ms] get libvirt capabilities libguestfs: [00401ms] parsing capabilities XML libguestfs: [00401ms] build appliance libguestfs: trace: get_cachedir libguestfs: trace: get_cachedir = "/var/tmp" libguestfs: [00402ms] begin building supermin appliance libguestfs: [00402ms] run supermin libguestfs: command: run: /usr/bin/supermin libguestfs: command: run: \ --build libguestfs: command: run: \ --verbose libguestfs: command: run: \ --if-newer libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock libguestfs: command: run: \ --copy-kernel libguestfs: command: run: \ -f ext2 libguestfs: command: run: \ --host-cpu x86_64 libguestfs: command: run: \ /usr/lib64/guestfs/supermin.d libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d supermin: version: 5.1.9 supermin: rpm: detected RPM version 4.11 supermin: package handler: fedora/rpm supermin: acquiring lock on /var/tmp/.guestfs-1000/lock supermin: build: /usr/lib64/guestfs/supermin.d supermin: build: visiting /usr/lib64/guestfs/supermin.d/base.tar.gz type gzip base image (tar) tar: ./etc/tcsd.conf: Cannot write: No space left on device tar: ./etc/aliases: Cannot write: No space left on device tar: ./etc/bashrc: Cannot write: No space left on device tar: ./etc/csh.cshrc: Cannot write: No space left on device tar: ./etc/csh.login: Cannot write: No space left on device tar: ./etc/filesystems: Cannot write: No space left on device tar: ./etc/group: Cannot write: No space left on device tar: ./etc/host.conf: Cannot write: No space left on device tar: ./etc/hosts: Cannot write: No space left on device tar: ./etc/hosts.allow: Cannot write: No space left on device tar: ./etc/hosts.deny: Cannot write: No space left on device tar: ./etc/inputrc: Cannot write: No space left on device tar: ./etc/passwd: Cannot write: No space left on device tar: ./etc/printcap: Cannot write: No space left on device tar: ./etc/profile: Cannot write: No space left on device tar: ./etc/protocols: Cannot write: No space left on device tar: ./etc/securetty: Cannot write: No space left on device tar: ./etc/services: Cannot write: No space left on device tar: ./etc/shells: Cannot write: No space left on device tar: ./etc/pki/nssdb/cert8.db: Cannot write: No space left on device tar: ./etc/pki/nssdb/cert9.db: Cannot write: No space left on device tar: ./etc/pki/nssdb/key3.db: Cannot write: No space left on device tar: ./etc/pki/nssdb/key4.db: Cannot write: No space left on device tar: ./etc/pki/nssdb/pkcs11.txt: Cannot write: No space left on device tar: ./etc/pki/nssdb/secmod.db: Cannot write: No space left on device tar: ./etc/selinux/semanage.conf: Cannot write: No space left on device tar: ./etc/pki/ca-trust/ca-legacy.conf: Cannot write: No space left on device tar: ./etc/default/useradd: Cannot write: No space left on device tar: ./etc/login.defs: Cannot write: No space left on device tar: ./etc/pam.d/config-util: Cannot write: No space left on device tar: ./etc/pam.d/fingerprint-auth: Cannot write: No space left on device tar: ./etc/pam.d/other: Cannot write: No space left on device tar: ./etc/pam.d/password-auth: Cannot write: No space left on device tar: ./etc/pam.d/postlogin: Cannot write: No space left on device tar: ./etc/pam.d/smartcard-auth: Cannot write: No space left on device tar: ./etc/pam.d/system-auth: Cannot write: No space left on device tar: ./etc/security/access.conf: Cannot write: No space left on device tar: ./etc/security/chroot.conf: Cannot write: No space left on device tar: ./etc/security/console.handlers: Cannot write: No space left on device tar: ./etc/security/console.perms: Cannot write: No space left on device tar: ./etc/security/group.conf: Cannot write: No space left on device tar: ./etc/security/limits.conf: Cannot write: No space left on device tar: ./etc/security/limits.d/90-nproc.conf: Cannot write: No space left on device tar: ./etc/security/namespace.conf: Cannot write: No space left on device tar: ./etc/security/namespace.init: Cannot write: No space left on device tar: ./etc/security/pam_env.conf: Cannot write: No space left on device tar: ./etc/security/sepermit.conf: Cannot write: No space left on device tar: ./etc/security/time.conf: Cannot write: No space left on device tar: ./etc/pki/tls/openssl.cnf: Cannot write: No space left on device tar: ./etc/ssh/moduli: Cannot write: No space left on device tar: ./etc/openldap/ldap.conf: Cannot write: No space left on device tar: ./etc/mtools.conf: Cannot write: No space left on device tar: ./etc/libuser.conf: Cannot write: No space left on device tar: ./etc/security/pwquality.conf: Cannot write: No space left on device tar: ./etc/krb5.conf: Cannot write: No space left on device tar: ./etc/sysconfig/ip6tables-config: Cannot write: No space left on device tar: ./etc/sysconfig/iptables-config: Cannot write: No space left on device tar: ./etc/xtables/connlabel.conf: Cannot write: No space left on device tar: ./usr/share/info/dir: Cannot write: No space left on device tar: ./etc/groff/site-tmac/man.local: Cannot write: No space left on device tar: ./etc/groff/site-tmac/mdoc.local: Cannot write: No space left on device tar: ./etc/default/nss: Cannot write: No space left on device tar: ./etc/ld.so.conf: Cannot write: No space left on device tar: ./etc/nsswitch.conf: Cannot write: No space left on device tar: ./etc/rpc: Cannot write: No space left on device tar: ./usr/lib64/gconv/gconv-modules: Cannot write: No space left on device tar: ./etc/fuse.conf: Cannot write: No space left on device tar: ./etc/dracut.conf: Cannot write: No space left on device tar: ./etc/dbus-1/session.conf: Cannot write: No space left on device tar: ./etc/dbus-1/system.conf: Cannot write: No space left on device tar: ./etc/libaudit.conf: Cannot write: No space left on device tar: ./etc/pam.d/chfn: Cannot write: No space left on device tar: ./etc/pam.d/chsh: Cannot write: No space left on device tar: ./etc/pam.d/login: Cannot write: No space left on device tar: ./etc/pam.d/remote: Cannot write: No space left on device tar: ./etc/pam.d/runuser: Cannot write: No space left on device tar: ./etc/pam.d/runuser-l: Cannot write: No space left on device tar: ./etc/pam.d/su: Cannot write: No space left on device tar: ./etc/pam.d/su-l: Cannot write: No space left on device tar: ./usr/lib/udev/rules.d/60-raw.rules: Cannot write: No space left on device tar: ./etc/rsyncd.conf: Cannot write: No space left on device tar: ./etc/sysconfig/rsyncd: Cannot write: No space left on device tar: ./etc/cron.d/raid-check: Cannot write: No space left on device tar: ./etc/sysconfig/raid-check: Cannot write: No space left on device tar: ./usr/lib/tmpfiles.d/mdadm.conf: Cannot write: No space left on device tar: ./etc/lvm/lvm.conf: Cannot write: No space left on device tar: ./etc/GREP_COLORS: Cannot write: No space left on device tar: ./etc/profile.d/colorgrep.csh: Cannot write: No space left on device tar: ./etc/profile.d/colorgrep.sh: Cannot write: No space left on device tar: ./etc/magic: Cannot write: No space left on device tar: ./etc/DIR_COLORS: Cannot write: No space left on device tar: ./etc/DIR_COLORS.256color: Cannot write: No space left on device tar: ./etc/DIR_COLORS.lightbgcolor: Cannot write: No space left on device tar: ./etc/profile.d/colorls.csh: Cannot write: No space left on device tar: ./etc/profile.d/colorls.sh: Cannot write: No space left on device tar: ./etc/skel/.bash_logout: Cannot write: No space left on device tar: ./etc/skel/.bash_profile: Cannot write: No space left on device tar: ./etc/skel/.bashrc: Cannot write: No space left on device tar: ./etc/sysconfig/zfs-fuse: Cannot write: No space left on device tar: ./etc/virc: Cannot write: No space left on device tar: ./etc/dbus-1/system.d/org.freedesktop.hostname1.conf: Cannot write: No space left on device tar: ./etc/dbus-1/system.d/org.freedesktop.locale1.conf: Cannot write: No space left on device tar: ./etc/dbus-1/system.d/org.freedesktop.login1.conf: Cannot write: No space left on device tar: ./etc/dbus-1/system.d/org.freedesktop.machine1.conf: Cannot write: No space left on device tar: ./etc/dbus-1/system.d/org.freedesktop.systemd1.conf: Cannot write: No space left on device tar: ./etc/dbus-1/system.d/org.freedesktop.timedate1.conf: Cannot write: No space left on device tar: ./etc/pam.d/systemd-user: Cannot write: No space left on device tar: ./etc/rsyslog.d/listen.conf: Cannot write: No space left on device tar: ./etc/systemd/bootchart.conf: Cannot write: No space left on device tar: ./etc/systemd/journald.conf: Cannot write: No space left on device tar: ./etc/systemd/logind.conf: Cannot write: No space left on device tar: ./etc/systemd/system.conf: Cannot write: No space left on device tar: ./etc/systemd/user.conf: Cannot write: No space left on device tar: ./etc/udev/udev.conf: Cannot write: No space left on device tar: ./etc/yum/protected.d/systemd.conf: Cannot write: No space left on device tar: ./etc/ssh/ssh_config: Cannot write: No space left on device tar: ./etc/nilfs_cleanerd.conf: Cannot write: No space left on device tar: ./etc/sysconfig/rdisc: Cannot write: No space left on device tar: ./etc/iproute2/ematch_map: Cannot write: No space left on device tar: ./etc/iproute2/group: Cannot write: No space left on device tar: ./etc/iproute2/rt_dsfield: Cannot write: No space left on device tar: ./etc/iproute2/rt_protos: Cannot write: No space left on device tar: ./etc/iproute2/rt_realms: Cannot write: No space left on device tar: ./etc/iproute2/rt_scopes: Cannot write: No space left on device tar: ./etc/iproute2/rt_tables: Cannot write: No space left on device tar: ./etc/sysconfig/cbq/avpkt: Cannot write: No space left on device tar: ./etc/sysconfig/cbq/cbq-0000.example: Cannot write: No space left on device tar: ./etc/e2fsck.conf: Cannot write: No space left on device tar: ./etc/mke2fs.conf: Cannot write: No space left on device tar: Exiting with failure status due to previous errors supermin: zcat '/usr/lib64/guestfs/supermin.d/base.tar.gz' | tar -C '/tmp/superminef2565.tmpdir/base.d' -xf -: command failed, see earlier errors libguestfs: error: /usr/bin/supermin exited with error status 1, see debug messages above libguestfs: trace: launch = -1 (error) libguestfs-test-tool: failed to launch appliance libguestfs: trace: close libguestfs: closing guestfs handle 0x7f7fa5839320 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfss2QPvp Please help me resolve this issue and get a compatible rhel7 image that I can upload to OpenStack and create an instance from. Thanks in advance, Deepti
Richard W.M. Jones
2015-Jul-02 08:17 UTC
Re: [Libguestfs] libguestfs error: need help troubleshooting
On Thu, Jul 02, 2015 at 12:47:38AM -0400, Deepti Navale wrote:> Hi,> I'm trying to manually create a rhel7 image using the qemu-img and > virt-install commands. I'm re-testing a procedure I previously wrote > with the new grub commands that a customer suggested we add in. This > procedure is available at:[...]> libguestfs: [00402ms] run supermin > libguestfs: command: run: /usr/bin/supermin > libguestfs: command: run: \ --build > libguestfs: command: run: \ --verbose > libguestfs: command: run: \ --if-newer > libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock > libguestfs: command: run: \ --copy-kernel > libguestfs: command: run: \ -f ext2 > libguestfs: command: run: \ --host-cpu x86_64 > libguestfs: command: run: \ /usr/lib64/guestfs/supermin.d > libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d > supermin: version: 5.1.9 > supermin: rpm: detected RPM version 4.11 > supermin: package handler: fedora/rpm > supermin: acquiring lock on /var/tmp/.guestfs-1000/lock > supermin: build: /usr/lib64/guestfs/supermin.d > supermin: build: visiting /usr/lib64/guestfs/supermin.d/base.tar.gz type gzip base image (tar) > tar: ./etc/tcsd.conf: Cannot write: No space left on device > tar: ./etc/aliases: Cannot write: No space left on device > tar: ./etc/bashrc: Cannot write: No space left on device > tar: ./etc/csh.cshrc: Cannot write: No space left on device > tar: ./etc/csh.login: Cannot write: No space left on device > tar: ./etc/filesystems: Cannot write: No space left on deviceThere is a bug about this somewhere, and I cannot find it at the moment. It was fixed in newer versions of Fedora. Try running the following command and attach all of the output. It will give us much more information about what's going wrong: /usr/bin/supermin --build -v -v -v --copy-kernel -f ext2 --host-cpu x86_64 /usr/lib64/guestfs/supermin.d -o /tmp/appliance.d Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
Deepti Navale
2015-Jul-03 00:32 UTC
Re: [Libguestfs] libguestfs error: need help troubleshooting
Hi Rich, I'm not sure how far this helps as it mostly says 'No space left on device', but here's the output of the command you asked me to run: ➜ tmp /usr/bin/supermin --build -v -v -v --copy-kernel -f ext2 --host-cpu x86_64 /usr/lib64/guestfs/supermin.d -o /tmp/appliance.d supermin: version: 5.1.9 supermin: rpm: detected RPM version 4.11 supermin: package handler: fedora/rpm supermin: build: /usr/lib64/guestfs/supermin.d supermin: build: visiting /usr/lib64/guestfs/supermin.d/base.tar.gz type gzip base image (tar) tar: ./etc/aliases: Cannot write: No space left on device tar: ./etc/bashrc: Cannot write: No space left on device tar: ./etc/csh.cshrc: Cannot write: No space left on device tar: ./etc/csh.login: Cannot write: No space left on device tar: ./etc/filesystems: Cannot write: No space left on device tar: ./etc/group: Cannot write: No space left on device tar: ./etc/host.conf: Cannot write: No space left on device tar: ./etc/hosts: Cannot write: No space left on device tar: ./etc/hosts.allow: Cannot write: No space left on device tar: ./etc/hosts.deny: Cannot write: No space left on device tar: ./etc/inputrc: Cannot write: No space left on device tar: ./etc/passwd: Cannot write: No space left on device tar: ./etc/printcap: Cannot write: No space left on device tar: ./etc/profile: Cannot write: No space left on device tar: ./etc/protocols: Cannot write: No space left on device tar: ./etc/securetty: Cannot write: No space left on device tar: ./etc/services: Cannot write: No space left on device tar: ./etc/shells: Cannot write: No space left on device tar: ./etc/pki/nssdb/cert8.db: Cannot write: No space left on device tar: ./etc/pki/nssdb/cert9.db: Cannot write: No space left on device tar: ./etc/pki/nssdb/key3.db: Cannot write: No space left on device tar: ./etc/pki/nssdb/key4.db: Cannot write: No space left on device tar: ./etc/pki/nssdb/pkcs11.txt: Cannot write: No space left on device tar: ./etc/pki/nssdb/secmod.db: Cannot write: No space left on device tar: ./etc/selinux/semanage.conf: Cannot write: No space left on device tar: ./etc/pki/ca-trust/ca-legacy.conf: Cannot write: No space left on device tar: ./etc/default/useradd: Cannot write: No space left on device tar: ./etc/login.defs: Cannot write: No space left on device tar: ./etc/pam.d/config-util: Cannot write: No space left on device tar: ./etc/pam.d/fingerprint-auth: Cannot write: No space left on device tar: ./etc/pam.d/other: Cannot write: No space left on device tar: ./etc/pam.d/password-auth: Cannot write: No space left on device tar: ./etc/pam.d/postlogin: Cannot write: No space left on device tar: ./etc/pam.d/smartcard-auth: Cannot write: No space left on device tar: ./etc/pam.d/system-auth: Cannot write: No space left on device tar: ./etc/security/access.conf: Cannot write: No space left on device tar: ./etc/security/chroot.conf: Cannot write: No space left on device tar: ./etc/security/console.handlers: Cannot write: No space left on device tar: ./etc/security/console.perms: Cannot write: No space left on device tar: ./etc/security/group.conf: Cannot write: No space left on device tar: ./etc/security/limits.conf: Cannot write: No space left on device tar: ./etc/security/limits.d/90-nproc.conf: Cannot write: No space left on device tar: ./etc/security/namespace.conf: Cannot write: No space left on device tar: ./etc/security/namespace.init: Cannot write: No space left on device tar: ./etc/security/pam_env.conf: Cannot write: No space left on device tar: ./etc/security/sepermit.conf: Cannot write: No space left on device tar: ./etc/security/time.conf: Cannot write: No space left on device tar: ./etc/pki/tls/openssl.cnf: Cannot write: No space left on device tar: ./etc/ssh/moduli: Cannot write: No space left on device tar: ./etc/openldap/ldap.conf: Cannot write: No space left on device tar: ./etc/mtools.conf: Cannot write: No space left on device tar: ./etc/libuser.conf: Cannot write: No space left on device tar: ./etc/security/pwquality.conf: Cannot write: No space left on device tar: ./etc/krb5.conf: Cannot write: No space left on device tar: ./etc/sysconfig/ip6tables-config: Cannot write: No space left on device tar: ./etc/sysconfig/iptables-config: Cannot write: No space left on device tar: ./etc/xtables/connlabel.conf: Cannot write: No space left on device tar: ./usr/share/info/dir: Cannot write: No space left on device tar: ./etc/groff/site-tmac/man.local: Cannot write: No space left on device tar: ./etc/groff/site-tmac/mdoc.local: Cannot write: No space left on device tar: ./etc/default/nss: Cannot write: No space left on device tar: ./etc/ld.so.conf: Cannot write: No space left on device tar: ./etc/nsswitch.conf: Cannot write: No space left on device tar: ./etc/rpc: Cannot write: No space left on device tar: ./usr/lib64/gconv/gconv-modules: Cannot write: No space left on device tar: ./etc/fuse.conf: Cannot write: No space left on device tar: ./etc/dracut.conf: Cannot write: No space left on device tar: ./etc/dbus-1/session.conf: Cannot write: No space left on device tar: ./etc/dbus-1/system.conf: Cannot write: No space left on device tar: ./etc/libaudit.conf: Cannot write: No space left on device tar: ./etc/pam.d/chfn: Cannot write: No space left on device tar: ./etc/pam.d/chsh: Cannot write: No space left on device tar: ./etc/pam.d/login: Cannot write: No space left on device tar: ./etc/pam.d/remote: Cannot write: No space left on device tar: ./etc/pam.d/runuser: Cannot write: No space left on device tar: ./etc/pam.d/runuser-l: Cannot write: No space left on device tar: ./etc/pam.d/su: Cannot write: No space left on device tar: ./etc/pam.d/su-l: Cannot write: No space left on device tar: ./usr/lib/udev/rules.d/60-raw.rules: Cannot write: No space left on device tar: ./etc/rsyncd.conf: Cannot write: No space left on device tar: ./etc/sysconfig/rsyncd: Cannot write: No space left on device tar: ./etc/cron.d/raid-check: Cannot write: No space left on device tar: ./etc/sysconfig/raid-check: Cannot write: No space left on device tar: ./usr/lib/tmpfiles.d/mdadm.conf: Cannot write: No space left on device tar: ./etc/lvm/lvm.conf: Cannot write: No space left on device tar: ./etc/GREP_COLORS: Cannot write: No space left on device tar: ./etc/profile.d/colorgrep.csh: Cannot write: No space left on device tar: ./etc/profile.d/colorgrep.sh: Cannot write: No space left on device tar: ./etc/magic: Cannot write: No space left on device tar: ./etc/DIR_COLORS: Cannot write: No space left on device tar: ./etc/DIR_COLORS.256color: Cannot write: No space left on device tar: ./etc/DIR_COLORS.lightbgcolor: Cannot write: No space left on device tar: ./etc/profile.d/colorls.csh: Cannot write: No space left on device tar: ./etc/profile.d/colorls.sh: Cannot write: No space left on device tar: ./etc/skel/.bash_logout: Cannot write: No space left on device tar: ./etc/skel/.bash_profile: Cannot write: No space left on device tar: ./etc/skel/.bashrc: Cannot write: No space left on device tar: ./etc/sysconfig/zfs-fuse: Cannot write: No space left on device tar: ./etc/virc: Cannot write: No space left on device tar: ./etc/dbus-1/system.d/org.freedesktop.hostname1.conf: Cannot write: No space left on device tar: ./etc/dbus-1/system.d/org.freedesktop.locale1.conf: Cannot write: No space left on device tar: ./etc/dbus-1/system.d/org.freedesktop.login1.conf: Cannot write: No space left on device tar: ./etc/dbus-1/system.d/org.freedesktop.machine1.conf: Cannot write: No space left on device tar: ./etc/dbus-1/system.d/org.freedesktop.systemd1.conf: Cannot write: No space left on device tar: ./etc/dbus-1/system.d/org.freedesktop.timedate1.conf: Cannot write: No space left on device tar: ./etc/pam.d/systemd-user: Cannot write: No space left on device tar: ./etc/rsyslog.d/listen.conf: Cannot write: No space left on device tar: ./etc/systemd/bootchart.conf: Cannot write: No space left on device tar: ./etc/systemd/journald.conf: Cannot write: No space left on device tar: ./etc/systemd/logind.conf: Cannot write: No space left on device tar: ./etc/systemd/system.conf: Cannot write: No space left on device tar: ./etc/systemd/user.conf: Cannot write: No space left on device tar: ./etc/udev/udev.conf: Cannot write: No space left on device tar: ./etc/yum/protected.d/systemd.conf: Cannot write: No space left on device tar: ./etc/ssh/ssh_config: Cannot write: No space left on device tar: ./etc/nilfs_cleanerd.conf: Cannot write: No space left on device tar: ./etc/sysconfig/rdisc: Cannot write: No space left on device tar: ./etc/iproute2/ematch_map: Cannot write: No space left on device tar: ./etc/iproute2/group: Cannot write: No space left on device tar: ./etc/iproute2/rt_dsfield: Cannot write: No space left on device tar: ./etc/iproute2/rt_protos: Cannot write: No space left on device tar: ./etc/iproute2/rt_realms: Cannot write: No space left on device tar: ./etc/iproute2/rt_scopes: Cannot write: No space left on device tar: ./etc/iproute2/rt_tables: Cannot write: No space left on device tar: ./etc/sysconfig/cbq/avpkt: Cannot write: No space left on device tar: ./etc/sysconfig/cbq/cbq-0000.example: Cannot write: No space left on device tar: ./etc/e2fsck.conf: Cannot write: No space left on device tar: ./etc/mke2fs.conf: Cannot write: No space left on device tar: Exiting with failure status due to previous errors supermin: zcat '/usr/lib64/guestfs/supermin.d/base.tar.gz' | tar -C '/tmp/supermind80093.tmpdir/base.d' -xf -: command failed, see earlier errors Thanks, Deepti -- Deepti Navale Content Author, Red Hat OpenStack Customer Content Services Red Hat Asia Pacific Sydney, Australia dnavale@redhat.com ----- Original Message -----> From: "Richard W.M. Jones" <rjones@redhat.com> > To: "Deepti Navale" <dnavale@redhat.com> > Cc: libguestfs@redhat.com > Sent: Thursday, July 2, 2015 6:17:16 PM > Subject: Re: [Libguestfs] libguestfs error: need help troubleshooting > > On Thu, Jul 02, 2015 at 12:47:38AM -0400, Deepti Navale wrote: > > Hi, > > > I'm trying to manually create a rhel7 image using the qemu-img and > > virt-install commands. I'm re-testing a procedure I previously wrote > > with the new grub commands that a customer suggested we add in. This > > procedure is available at: > [...] > > > libguestfs: [00402ms] run supermin > > libguestfs: command: run: /usr/bin/supermin > > libguestfs: command: run: \ --build > > libguestfs: command: run: \ --verbose > > libguestfs: command: run: \ --if-newer > > libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock > > libguestfs: command: run: \ --copy-kernel > > libguestfs: command: run: \ -f ext2 > > libguestfs: command: run: \ --host-cpu x86_64 > > libguestfs: command: run: \ /usr/lib64/guestfs/supermin.d > > libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d > > supermin: version: 5.1.9 > > supermin: rpm: detected RPM version 4.11 > > supermin: package handler: fedora/rpm > > supermin: acquiring lock on /var/tmp/.guestfs-1000/lock > > supermin: build: /usr/lib64/guestfs/supermin.d > > supermin: build: visiting /usr/lib64/guestfs/supermin.d/base.tar.gz type > > gzip base image (tar) > > tar: ./etc/tcsd.conf: Cannot write: No space left on device > > tar: ./etc/aliases: Cannot write: No space left on device > > tar: ./etc/bashrc: Cannot write: No space left on device > > tar: ./etc/csh.cshrc: Cannot write: No space left on device > > tar: ./etc/csh.login: Cannot write: No space left on device > > tar: ./etc/filesystems: Cannot write: No space left on device > > There is a bug about this somewhere, and I cannot find it at the > moment. It was fixed in newer versions of Fedora. > > Try running the following command and attach all of the output. It > will give us much more information about what's going wrong: > > /usr/bin/supermin --build -v -v -v --copy-kernel -f ext2 --host-cpu x86_64 > /usr/lib64/guestfs/supermin.d -o /tmp/appliance.d > > Rich. > > -- > Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones > Read my programming and virtualization blog: http://rwmj.wordpress.com > virt-df lists disk usage of guests without needing to install any > software inside the virtual machine. Supports Linux and Windows. > http://people.redhat.com/~rjones/virt-df/ >