Control: tag -1 + confirmed help On Fri, Nov 08, 2019 at 11:59:48PM +0100, Francesco Poli (wintermute) wrote: > Package: autopkgtest > Version: 5.11 > Severity: wishlist > > Hello and thanks for maintaining autopkgtest! > > I wanted to give the QEMU/KVM testbed a try. Hence I tried to create > a VM image by using autopkgtest-build-qemu. Its man page states: > > [...] > | Note that you need to call this as root. > [...] > > And indeed the command > > $ autopkgtest-build-qemu unstable ~/var/cache/autopkgtest/sid.img > > fails, when issued by a regular user, as it cannot even find parted > in the search PATH. > > I guess this is because of vmdb2, which requires superuser privileges. > But why? > Is there any hope to improve vmdb2 or to use another tool, in order > to create a KVM testbed without requiring superuser privileges?
Most disk images creation tools do it by mounting an empty image as a loop device and then debootstrapping into it, which requires root. There may be ways of creating an image without root, but to be honest this is very low on my priority list. I will take patches though.
signature.asc
Description: PGP signature