On Sat, 26 Apr 2025 at 13:20:06 +0000, [email protected] wrote:
BTW, how about making the qemu virt backend install python3 by itself,
if it's missing? Then we can use the same images for incus & qemu,
without having to pollute them with python3.
Sorry, no. Because of the Rube Goldberg machine that
autopkgtest-virt-qemu currently uses to invoke arbitrary commands on the
testbed, it needs /usr/bin/python3 before it can run apt. It only needs
python3-minimal and not full python3, I think.
(Technically it could run apt directly in the passwordless root shell,
but then we'd have to duplicate all the machinery to make apt
noninteractive and set useful resolver options, and when something goes
wrong you wouldn't get any of the output of apt logged somewhere that
the autopkgtest caller can see it, except when using a-v-qemu --debug,
which is very noisy.)
Using ssh for command execution would address this, at the cost of
needing to preinstall either openssh-server or its dropbear equivalent.
Is that a normal thing to have in Incus VM images?
smcv