The project page http://libguestfs.org/ claims that we can do operations without sudo
, which is awesome.
However, if I try it out:
sudo apt-get install libguestfs-tools
mkdir sysroot
# Just a test file.
dd if=/dev/urandom of=sysroot/myfile bs=1024 count=1024
virt-make-fs --format=ext2 --type=qcow2 sysroot sysroot.qcow2
I get the error:
libguestfs: error: /usr/bin/supermin exited with error status 1.
To see full error messages you may need to enable debugging.
Do:
export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
and run the command again. For further information, read:
http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
You can also run 'libguestfs-test-tool' and post the *complete* output
into a bug report or message to the libguestfs mailing list.
How to solve that?
Tested in Ubuntu 16.04.4, libguestfs-tools
1:1.32.2-4ubuntu2.