[macos] Does not use Xenial uefi image on mac pro m1
Describe the bug I cannot launch with ubuntu version 16.04
To Reproduce How, and what happened?
multipass launch -vvv -c 4 -d 64G -m 8G -n ubuntu1604 xenial
Expected behavior
Logs
cong.hoangtien@YKN2Q427PJ marketplace-api % multipass launch -vvv -c 4 -d 64G -m 8G -n ubuntu1604 xenial
[2022-05-25T03:31:58.603] [debug] [qemu-system-aarch64] [25359] started: qemu-system-aarch64 --version
[2022-05-25T03:31:58.706] [debug] [qemu-img] [25360] started: qemu-img info /var/root/Library/Caches/multipassd/qemu/vault/images/xenial-20211001/ubuntu-16.04-server-cloudimg-arm64-disk1.img
[2022-05-25T03:31:58.730] [debug] [qemu-img] [25361] started: qemu-img resize /var/root/Library/Application Support/multipassd/qemu/vault/instances/ubuntu1604/ubuntu-16.04-server-cloudimg-arm64-disk1.img 68719476736
[2022-05-25T03:31:58.739] [debug] [qemu-img] [25362] started: qemu-img snapshot -l /var/root/Library/Application Support/multipassd/qemu/vault/instances/ubuntu1604/ubuntu-16.04-server-cloudimg-arm64-disk1.img
[2022-05-25T03:31:58.745] [debug] [ubuntu1604] process working dir ''
[2022-05-25T03:31:58.745] [info] [ubuntu1604] process program 'qemu-system-aarch64'
[2022-05-25T03:31:58.745] [info] [ubuntu1604] process arguments '-machine, virt,highmem=off, -accel, hvf, -drive, file=/Library/Application Support/com.canonical.multipass/bin/../Resources/qemu/edk2-aarch64-code.fd,if=pflash,format=raw,readonly=on, -cpu, cortex-a72, -nic, vmnet-shared,model=virtio-net-pci,mac=52:54:00:94:2e:cd, -device, virtio-scsi-pci,id=scsi0, -drive, file=/var/root/Library/Application Support/multipassd/qemu/vault/instances/ubuntu1604/ubuntu-16.04-server-cloudimg-arm64-disk1.img,if=none,format=qcow2,discard=unmap,id=hda, -device, scsi-hd,drive=hda,bus=scsi0.0, -smp, 4, -m, 8192M, -qmp, stdio, -chardev, null,id=char0, -serial, chardev:char0, -nographic, -cdrom, /var/root/Library/Application Support/multipassd/qemu/vault/instances/ubuntu1604/cloud-init-config.iso'
[2022-05-25T03:31:58.747] [debug] [qemu-system-aarch64] [25363] started: qemu-system-aarch64 -machine virt,highmem=off -nographic -dump-vmstate /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/multipassd.uRsKcz
[2022-05-25T03:31:58.786] [info] [ubuntu1604] process state changed to Starting
[2022-05-25T03:31:58.787] [info] [ubuntu1604] process state changed to Running
[2022-05-25T03:31:58.788] [debug] [qemu-system-aarch64] [25364] started: qemu-system-aarch64 -machine virt,highmem=off -accel hvf -drive file=/Library/Application Support/com.canonical.multipass/bin/../Resources/qemu/edk2-aarch64-code.fd,if=pflash,format=raw,readonly=on -cpu cortex-a72 -nic vmnet-shared,model=virtio-net-pci,mac=52:54:00:94:2e:cd -device virtio-scsi-pci,id=scsi0 -drive file=/var/root/Library/Application Support/multipassd/qemu/vault/instances/ubuntu1604/ubuntu-16.04-server-cloudimg-arm64-disk1.img,if=none,format=qcow2,discard=unmap,id=hda -device scsi-hd,drive=hda,bus=scsi0.0 -smp 4 -m 8192M -qmp stdio -chardev null,id=char0 -serial chardev:char0 -nographic -cdrom /var/root/Library/Application Support/multipassd/qemu/vault/instances/ubuntu1604/cloud-init-config.iso
[2022-05-25T03:31:58.788] [info] [ubuntu1604] process started
launch failed: The following errors occurred:
ubuntu1604: timed out waiting for response
Additional info
-
OS: [e.g. macOS 10.15] ProductName: macOS ProductVersion: 12.3.1 BuildVersion: 21E258
-
multipass versionmultipass 1.9.0+mac multipassd 1.9.0+mac -
multipass info --allName: ubuntu1604 State: Unknown IPv4: -- Release: -- Image hash: edb87e678aea (Ubuntu 16.04 LTS) Load: -- Disk usage: -- Memory usage: -- Mounts: --
Additional context
multipass find
Image Aliases Version Description
18.04 bionic 20220523 Ubuntu 18.04 LTS
20.04 focal,lts 20220505 Ubuntu 20.04 LTS
21.10 impish 20220309 Ubuntu 21.10
22.04 jammy 20220506 Ubuntu 22.04 LTS
anbox-cloud-appliance latest Anbox Cloud Appliance
charm-dev latest A development and testing environment for charmers
docker latest A Docker environment with Portainer and related tools
minikube latest minikube is local Kubernetes
I'm seeing the same since upgrading both Qemu and multipass via brew this morning.
For my case, the VM doesn't boot, I rebooted my MacBook Pro and started working again.
unfortunately, I did not have that luck.
I don't see ubuntu 16.04(xenial) in multipass find. Does it suggest that xenial is not supported anymore?
Hi @tiencong283!
I looked into this a bit and the problem is that for 16.04, there is a separate uefi image that we are not accounting for and we need to boot uefi on arm64.
Does it suggest that xenial is not supported anymore?
Xenial is no longer under the standard 5 year maintenance, but is covered by ESM. That's not to say Multipass shouldn't work with xenial.
how to install Xenial in multipass, I also meet this problem