Image build failure(s) when using fakemachine without systemd-resolved
Hello, I tried building my own image with the tools in this repository but I encountered some issues:
- zerofree package should be included in the dependency list in the readme
- qemu-debootstrap fails. Full log attached, here's the relevant part. Probably there are troubles with python3. Please consider switching to the regular debootstrap, as qemu-debootstrap is deprecated.
2022-09-20 07:41:09 INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <unpack_rootfs_plugin.UnpackCacheStepRunner object at 0x7fa79fd84910>>
2022-09-20 07:41:09 INFO Running step: {'qemu-debootstrap': 'bullseye', 'mirror': 'http://deb.debian.org/debian', 'target': '/', 'arch': 'arm64', 'components': ['main', 'contrib', 'non-free'], 'unless': 'rootfs_unpacked'}
2022-09-20 07:41:09 INFO Calling <bound method QemuDebootstrapStepRunner.run of <qemudebootstrap_plugin.QemuDebootstrapStepRunner object at 0x7fa79fd848e0>>
2022-09-20 07:41:09 INFO Exec: ['qemu-debootstrap', '--arch', 'arm64', '--variant', '-', '--components', 'main,contrib,non-free', 'bullseye', '/tmp/tmpnftb7jic', 'http://deb.debian.org/debian']
2022-09-20 07:41:10 DEBUG STDOUT: I: Target architecture can be executed
I: Retrieving InRelease
I: Retrieving Release
E: Failed getting release file http://deb.debian.org/debian/dists/bullseye/Release
2022-09-20 07:41:10 DEBUG STDERR: W: qemu-debootstrap is deprecated. Please use regular debootstrap directly
I: Running command: debootstrap --arch arm64 --variant - --components main,contrib,non-free bullseye /tmp/tmpnftb7jic http://deb.debian.org/debian
W: Unable to read /etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory)
W: Unable to read /etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory)
2022-09-20 07:41:10 ERROR Program failed: 1
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/vmdb/app.py", line 243, in run_steps_helper
method(values, settings, state)
File "/usr/lib/python3/dist-packages/vmdb/plugins/qemudebootstrap_plugin.py", line 72, in run
vmdb.runcmd(
File "/usr/lib/python3/dist-packages/vmdb/runcmd.py", line 58, in runcmd
raise RuncmdError("Program failed: {}".format(p.returncode))
vmdb.runcmd.RuncmdError: Program failed: 1
2022-09-20 07:41:10 ERROR RuncmdError('Program failed: 1')
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/vmdb/app.py", line 243, in run_steps_helper
method(values, settings, state)
File "/usr/lib/python3/dist-packages/vmdb/plugins/qemudebootstrap_plugin.py", line 72, in run
vmdb.runcmd(
File "/usr/lib/python3/dist-packages/vmdb/runcmd.py", line 58, in runcmd
raise RuncmdError("Program failed: {}".format(p.returncode))
vmdb.runcmd.RuncmdError: Program failed: 1
2022-09-20 07:41:10 INFO Something went wrong, cleaning up!
2022-09-20 07:41:10 INFO Running teardown: {'qemu-debootstrap': 'bullseye', 'mirror': 'http://deb.debian.org/debian', 'target': '/', 'arch': 'arm64', 'components': ['main', 'contrib', 'non-free'], 'unless': 'rootfs_unpacked'}
2022-09-20 07:41:10 INFO Calling <bound method StepRunnerInterface.teardown of <qemudebootstrap_plugin.QemuDebootstrapStepRunner object at 0x7fa79fd848e0>>
2022-09-20 07:41:10 INFO Running teardown: {'unpack-rootfs': '/'}
2022-09-20 07:41:10 INFO Calling <bound method StepRunnerInterface.teardown of <unpack_rootfs_plugin.UnpackCacheStepRunner object at 0x7fa79fd84910>>