+++ This bug was initially created as a clone of Bug #908255 +++ Description of problem: [root@hp-z220-01 images]# virt-tar -x rhel6.32bit /boot/gurb grub.tar ^^^^^^^^^^^ grub.tar: error in chunked encoding at /usr/bin/virt-tar line 272. Simple reproducer from within the libguestfs source tree: $ ./run ./tools/virt-tar -x ./tests/guests/fedora.img /foo /dev/null /dev/null: error in chunked encoding at /home/rjones/d/libguestfs/tools/virt-tar line 272.
The new error is: tar_out: stat: /foo: No such file or directory at /home/rjones/d/libguestfs/tools/virt-tar line 272. or if you point to something which exists but is not a directory: tar_out: /etc/fstab: not a directory at /home/rjones/d/libguestfs/tools/virt-tar line 272. I also fixed the base64-out command in a similar manner. Upstream commit: https://github.com/libguestfs/libguestfs/commit/c78ec7e085e99bfddd0509dece72bf6a8d0188ce