Control: tag -1 + pending Hi again,
On Fri, 04 Jan 2019 12:50:41 +0100 Johannes Schauer <jo...@debian.org> wrote: > On Fri, 26 Oct 2018 15:33:32 -0400 Antoine Beaupre <anar...@debian.org> wrote: > > I have tried to use the autopkgtest backend with the qemu server but it > > completely failed to launch the build: > > > > [...] > > > > chown: invalid user: 'sbuild:sbuild' > > E: Failed to set sbuild:sbuild ownership on /build > > Failed to set up chroot > > > > [...] > > > > I can test that package with autopkgtest fine, for what that's worth, with: > > > > autopkgtest . -- qemu > > > > So this seems to be a problem specific to sbuild. > > could you try adding the sbuild user and group to your qemu guest? > > sbuild-createchroot is doing some customizations after running debootstrap. > One > of them is to copy the sbuild user and group from the host into the chroot so > that the user and group work with schoor. Obviously this is not necessary when > using qemu so maybe sbuild should add a new sbuild user and group itself when > it doesn't find them in the chroot already. okay, I was able to reproduce this problem myself and am hoping that I ran into the same issue as you did. What I used to test was this sbuild invocation: $ sbuild --chroot-mode=autopkgtest --autopkgtest-virt-server=qemu \ > --autopkgtest-virt-server-opts=/srv/qemu/unstable-amd64-autopkgtest.qcow2 And then I got the output you quoted in your first mail: +==============================================================================+ | pkg-minimal 1.0 (amd64) Fri, 04 Jan 2019 20:37:45 +0000 | +==============================================================================+ Package: pkg-minimal Version: 1.0 Source Version: 1.0 Distribution: unstable Machine Architecture: amd64 Host Architecture: amd64 Build Architecture: amd64 Build Type: binary qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5] chown: invalid user: 'sbuild:sbuild' E: Failed to set sbuild:sbuild ownership on /build Failed to set up chroot E: Error creating chroot session: skipping pkg-minimal I fixed the problem by changing sbuild such that it now creates the sbuild user and the BUILD_USER inside the chroot if they don't exist yet. This job is usually done by sbuild-createchroot but since you are using qemu I guess that you didn't use sbuild-createchroot to create the base image? Thanks! cheers, josch
signature.asc
Description: signature