#1041900 cloud.debian.org: please publish arm64 vagrant boxes

#1041900#5
Date:
2023-07-25 05:00:43 UTC
From:
To:
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

#1041900#10
Date:
2023-07-26 18:53:29 UTC
From:
To:
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

#1041900#15
Date:
2023-08-03 05:38:20 UTC
From:
To:
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

#1041900#20
Date:
2023-08-07 05:53:21 UTC
From:
To:
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

#1041900#25
Date:
2024-12-17 10:18:23 UTC
From:
To:
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