<div dir="ltr">Hi,<br>The i386 removal works great and after the dust settled it comes mostly down to adding a few more hints in recent weeks. But sometimes there are i386 tests that are valid to run, but fail and need debugging.<div><br></div><div>If you happen to face such a case the old common pattern won't work anymore:<br><br>$ sudo autopkgtest-buildvm-ubuntu-cloud -a i386 -r bionic -s 15G<br>$ sudo ~/work/autopkgtest/autopkgtest/runner/autopkgtest <YOUR>.dsc \<br>  -- qemu ~/work/autopkgtest-focal-amd64.img<br><br>The above was fine in the past, but with Focal you that won't work due to:<br>$ sudo autopkgtest-buildvm-ubuntu-cloud -a i386 -r focal -s 15G<br>Downloading <a href="https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-i386.img.">https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-i386.img.</a>..<br>No image exists for this release/architecture<br><br>Steve was so kind to help me with the case I was facing and after a bit I learned how to locally run my i386 tests in a VM and wanted to share that with you.<br><br></div><div>First of all, you probably need a more recent autopkgtest to get the features you need.</div><div>So you need to clone git and run it from there.<br><br>$ git clone git+ssh://<a href="http://paelzer@git.launchpad.net/~ubuntu-release/autopkgtest/+git/development">paelzer@git.launchpad.net/~ubuntu-release/autopkgtest/+git/development</a><br>[for me that is in ~/work/autopkgtest/autopkgtest]<br><br>And then - since you only have amd64 images - to run it you have to add<br># to select the architecture for the test<br>  -a i386<br># to get the arch available in the test env before the testing starts<br>  --setup-commands="dpkg --add-architecture i386; apt-get update"<br><br>Overall for me it then worked like:<br>$ sudo ~/work/autopkgtest/autopkgtest/runner/autopkgtest <YOUR>.dsc \<br>  --setup-commands="dpkg --add-architecture i386; apt-get update" -a i386 \<br>  -- qemu ~/work/autopkgtest-focal-amd64.img<br><br>I hope this helps some other people as well.<br>And if anyone knows more tweaks to get this local i386 test to run even better please reply and let us all know.<br><br>P.S. of course my commandline never is that simple, the above is just for illustration.<br>In reality it was more like:<br>$ sudo ~/work/autopkgtest/autopkgtest/runner/autopkgtest --no-built-binaries --apt-upgrade --apt-pocket=proposed=src:re2c --setup-commands="dpkg --add-architecture i386; apt-get update" --shell-fail -a i386 re2c_1.3-1.dsc -- qemu --qemu-options='-cpu host' --ram-size=2048 --cpus 2 ~/work/autopkgtest-focal-amd64.img<br><br>--<br>Christian Ehrhardt<br>Staff Engineer, Ubuntu Server<br>Canonical Ltd<br></div></div>