Hi forum – I’m trying to use my NVIDIA Jetson TX2 to build a snap for ARM64. Virtualization/KVM is not available (and so neither is Multipass) on the TX2, so I’m trying to use LXD as my build environment.
As an FYI, the snap in question builds fine for amd64, also using LXD, but my problems occur before the build step of my snap begins.
LXD is installed as a snap from latest/stable (v4.0.1).
First try: I installed snapcraft from the
latest/stable track (v3.11) and
snapcraft --use-lxd returns the error “An error occured with the instance when trying to launch ‘LXD’: Create instance: Requested architecture isn’t supported by this host.”
Decided to try freshing
snapcraft to the channel latest/candidate (v4.0) and I get much further – an LXD container is created. It’s assigned an IP and
apt-get update appears to execute just fine. However the next challenge is:
An error occured when trying to execute 'apt-get dist-upgrade --yes' with 'LXD': returned exit code 100.
Immediately preceding this error, there’s lots of messages involving ‘Temporary failure resolving ports.ubuntu.com’.
I also appear to be unable to drop in to a shell with ‘–debug’ at this phase. Any help greatly appreciated.