Howto import an 14.04 image from ubuntu cloud-images

I would like to run a Ubuntu 14 container to get a printer running I only have drivers for Ubuntu 14.
So I downloaded the tarball from
https://cloud-images.ubuntu.com/releases/trusty/release/ubuntu-14.04-server-cloudimg-arm64.tar.gz
But when I tried to import that image I get

Error: Metadata tarball is missing metadata.yaml

So I created a simple dummy metadata.yaml as:

architecture: aarch64
creation_date: 1424284563
properties:
  description: Ubuntu 14.04 LTS aarch64
  os: Ubuntu
  release: trusty tahr 14.04

The image imports fine but a new container print created from that image will not start:

lxc print 20240521112053.591 WARN     idmap_utils - ../src/lxc/idmap_utils.c:lxc_map_ids:165 - newuidmap binary is missing
lxc print 20240521112053.591 WARN     idmap_utils - ../src/lxc/idmap_utils.c:lxc_map_ids:171 - newgidmap binary is missing
lxc print 20240521112053.596 WARN     idmap_utils - ../src/lxc/idmap_utils.c:lxc_map_ids:165 - newuidmap binary is missing
lxc print 20240521112053.596 WARN     idmap_utils - ../src/lxc/idmap_utils.c:lxc_map_ids:171 - newgidmap binary is missing
lxc print 20240521112053.819 ERROR    start - ../src/lxc/start.c:start:2204 - No such file or directory - Failed to exec "/sbin/init"
lxc print 20240521112053.819 ERROR    sync - ../src/lxc/sync.c:sync_wait:34 - An error occurred in another process (expected sequence number 7)
lxc print 20240521112053.832 WARN     network - ../src/lxc/network.c:lxc_delete_network_priv:3671 - Failed to rename interface with index 0 from "eth0" to its initial name "veth274b3090"
lxc print 20240521112053.832 ERROR    lxccontainer - ../src/lxc/lxccontainer.c:wait_on_daemonized_start:837 - Received container state "ABORTING" instead of "RUNNING"
lxc print 20240521112053.832 ERROR    start - ../src/lxc/start.c:__lxc_start:2114 - Failed to spawn container "print"
lxc print 20240521112053.833 WARN     start - ../src/lxc/start.c:lxc_abort:1037 - No such process - Failed to send SIGKILL via pidfd 17 for process 1610487
lxc 20240521112054.115 ERROR    af_unix - ../src/lxc/af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Connection reset by peer - Failed to receive response
lxc 20240521112054.115 ERROR    commands - ../src/lxc/commands.c:lxc_cmd_rsp_recv_fds:128 - Failed to receive file descriptors for command "get_init_pid"

I guess it’s related to the metadata.yaml I created manually which does not fit? How would I retrieve a correct one?

So my question is:
how could I create a new Ubuntu 14 container in incus using an image from ubuntu?

https://cloud-images.ubuntu.com/releases/trusty/release/ubuntu-14.04-server-cloudimg-arm64-lxd.tar.xz is

The lxd.tar.xz is your metadata tarball.

Then incus image import --alias ubuntu-14 ubuntu-14.04-server-cloudimg-arm64-lxd.tar.xz ubuntu-14.04-server-cloudimg-arm64.tar.gz to load it.

Your log shows an error starting /sbin/init, suggesting that your system maybe isn’t arm64?

ah - right, thanks! I overlooked that. The image can be imported using that one but I get the same issue with failing init. It’s definitly a aarch64/arm64 cpu. So I guess it’s an glibc issue / my current kernel 6.6.16-current-rockchip64 from host is no longer running that init binary?

Try using https://cloud-images.ubuntu.com/releases/trusty/release/ubuntu-14.04-server-cloudimg-arm64-root.tar.xz for the root filesystem.

It’s possible that the one you’ve been using doesn’t have systemd installed.