ARM64 autoinstall crashes at netplan apply

Bug #2038701 reported by Aliseo Purpura-Pontoniere
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad Bug Reporter
New
Undecided
Unassigned

Bug Description

Hello, I'm trying to run a completely non-interactive autoinstall of ARM64 Ubuntu Server on a VM hosted on an x64 machine. I have no issues doing this with an x64 Ubuntu Server ISO and qemu-system-x86_64, but when I try to do it with an ARM image and qemu-system-aarch64, it always crashes towards the beginning of the autoinstall process with:

connecting...
waiting for cloud-init...
finish: subiquity/Network/_send_update: CHANGE enp0s1
start: subiquity/Filesystem/_probe/probe_once: restricted=False
start: subiquity/Meta/status_GET
start: subiquity/Meta/status_GET
finish: subiquity/Filesystem/_probe/probe_once: restricted=False
finish: subiquity/Filesystem/_probe
finish: subiquity/Network/apply_autoinstall_config/apply_config: Command '['netplan', 'apply']' returned non-zero exit status 1.
start: subiquity/ErrorReporter/1696628062.839221239.network_fail/add_info
finish: subiquity/Network/apply_autoinstall_config/wait_for_apply: Command '['netplan', 'apply']' returned non-zero exit status 1.
finish: subiquity/Network/apply_autoinstall_config: Command '['netplan', 'apply']' returned non-zero exit status 1.
finish: subiquity/apply_autoinstall_config: Command '['netplan', 'apply']' returned non-zero exit status 1.
start: subiquity/Network/_send_update: CHANGE enp0s1
finish: subiquity/Network/_send_update: CHANGE enp0s1
start: subiquity/Network/_send_update: CHANGE enp0s1
finish: subiquity/Network/_send_update: CHANGE enp0s1
start: subiquity/Network/_send_update: CHANGE enp0s1
finish: subiquity/Network/_send_update: CHANGE enp0s1
start: subiquity/Network/_send_update: CHANGE enp0s1
finish: subiquity/Network/_send_update: CHANGE enp0s1
start: subiquity/Network/_send_update: CHANGE enp0s1
finish: subiquity/Network/_send_update: CHANGE enp0s1
finish: subiquity/ErrorReporter/1696628062.839221239.network_fail/add_info: written to /var/crash/1696628062.839221239.network_fail.crash
An error occurred. Press enter to start a shell

I've tried many different variations of the qemu command, but this is the base I started with:

qemu-system-aarch64 -M virt -cpu cortex-a72 -smp 8 \
-bios /usr/share/qemu-efi-aarch64/QEMU_EFI.fd \
-nographic \
-m 65535 \
-vnc :2 \
-net nic -net user \
-drive file=/home/alip/images/ubuntu22armserver.img,format=raw,if=virtio \
-drive file=/home/alip/isos/autoinstall.iso,format=raw,if=virtio \
-cdrom /home/alip/isos/ubuntu-22.04.3-live-server-arm64.iso \
-kernel /isomount/casper/vmlinuz \
-initrd /isomount/casper/initrd \
-append 'console=ttyS0 autoinstall'

 - ubuntu22armserver.img is the blank image file I'm installing to, made with 'truncate -s 10G ubuntu22armserver.img'. I've also tried using 'qemu-img create ubuntu22armserver.img 10G'
 - autoinstall.iso contains the blank meta-data file and the user-data file with the autoinstall configuration, created with 'cloud-localds ./autoinstall.iso ./user-data ./meta-data'
 - the ubuntu-22.04.3-live-server-arm64.iso is mounted at /isomount to provide kernel and initrd

Contents of the user-data autoinstall file:

#cloud-config
# autoinstall configuration file for Ubuntu/subiquity
autoinstall:
    version: 1
    locale: en_US.UTF-8
    keyboard:
        layout: us
    storage:
        layout:
            name: direct
    identity:
        hostname: base-img
        username: user1
        password: $6$wejMbHwWIqXMStbm$vm68OXNq/SipR6gi3ZhiQa4/PtQsTX8V9LiT3UWOyG9HZewcXgFTlAF9wXYvDnrLREUkK4M3Qjc1oh8c8nmHn.
    ssh:
        install-server: yes
        allow-pw: true
    apt:
        fallback: offline-install
    user-data:
        disable_root: false

Interactive installs with the above qemu command work without any problems. The installer is able to update itself, and mirror checks pass.

Crash file is attached. Please let me know if I can provide any more info.

Any help you could provide would be great. Is there a way to simply disable the network entirely during the install? Thanks in advance for your help.

Revision history for this message
Aliseo Purpura-Pontoniere (alip22) wrote :
Revision history for this message
Aliseo Purpura-Pontoniere (alip22) wrote :

Bumping for vis

Revision history for this message
Aliseo Purpura-Pontoniere (alip22) wrote :

I've tried running the above on an ARM platform with the same results

I've tried including 'netcfg/do_not_use_netplan=true' to the kernel cmdline with the same results

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.