- Package:
- cloud.debian.org
- Source:
- cloud.debian.org
- Submitter:
- Ross Vandegrift
- Date:
- 2024-12-17 10:21:01 UTC
- Severity:
- normal
Hello, I've been in touch with folks from the kdevops project [1]. They are looking for more vagrant images for arm64. Would it be possible to publish the arm64 boxes that debian-vagrant-images can build? I started looking into this. I'm pretty new to vagrant, but here's what I learned so far: - vagrant doesn't handle boxes with different architectures [2]. The advice seems to be to publish under a different name: e.g. "debian/testing-arm64". - Building the arm64 box works just fine, and I can import it sucessfully. - I'm trying to get vagrant to boot it, but still not quite there yet. Thanks, Ross [1] - https://github.com/mcgrof/kdevops/ [2] - https://github.com/hashicorp/vagrant/issues/12610
Hi Ross, If you manage to get working images for arm64, I would then be happy to maintain them at the same time as the amd64 images. Lucas
Hi Lucas,
I've confirmed the vagrant arm64 build works with qemu on amd64. If you have
qemu-system-arm and qemu-efi-aarch64 installed, the following Vagrantfile
should boot up:
Vagrant.configure("2") do |config|
config.vm.box = "debian/bookworm-arm64"
config.vm.provider :libvirt do |libvirt|
libvirt.cpu_mode = "custom"
libvirt.cpu_model = "max"
libvirt.driver = "qemu"
libvirt.emulator_path = "/usr/bin/qemu-system-aarch64"
libvirt.graphics_type = "none"
libvirt.input :type => "mouse", :bus => "virtio"
libvirt.loader = "/usr/share/AAVMF/AAVMF_CODE.fd"
libvirt.nvram = "/var/lib/libvirt/qemu/nvram/vagrant.fd"
libvirt.machine_arch = "aarch64"
libvirt.machine_type = "virt"
libvirt.memory = 512
end
end
The system tests need some easy fixes. The end to end test tries to boot the
image on the native arch. It probably needs a feature to check if qemu is
needed. Time permitting, I plan to look at these in the next few days.
Ross
Hi Lucas, I have the tests fixed and added support for non-native arch E2E test runs with qemu. I've opened: - system test fixes: https://salsa.debian.org/cloud-team/debian-vagrant-images/-/merge_requests/16 - arm64 pipeline support wip: https://salsa.debian.org/cloud-team/debian-vagrant-images/-/merge_requests/17 The first could be merged, the second needs some more work. I'm not really clear on how to work on this pipeline - is the `debvagrant` script available anywhere? Ross
Hi, This is now fixed for all boxes that are actively maintained (bullseye, bookworm, testing) There is #1041900 about this but I haven't had time to work on this. Lucas