Recently, we have a requirement to build snaps (ex. kernel snap, initrd snap) or initramfs on armhf/arm46 environment. We are thinking about using LxD vm to do that.
We do see some images available on this site: https://us.images.linuxcontainers.org/
Is there any packages need to be install first?
When doing lxc launch -p oem-arm64-bionic images:ubuntu/bionic/cloud/arm64 arm64-bionic-test --vm
I got
Creating arm64-bionic-test
Error: Failed instance creation: Failed creating instance record: Requested architecture isn’t supported by this host
Does that mean we need a ARM64 native host to run an arm64 vm? That really challenges my imagination about container. If I can easily have arm64 host, why bother running a container on it.
My original thought is by using LxD vm, I can run any architecture as a container or VM. Is it not correct?
I got it, and thank you so much for the detail.
It would be a great help if this feature can be added into future road map. We have more IoT projects on ARM base, and to build snaps on native machine is always painful, especially from infrastructure point of view.