Success CaseMethod 1 (Succeeded)
1. Get EFI file.
I got it from my WSL Ubuntu.
sudo apt-get install qemu-efi
cp /usr/share/qemu-efi-aarch64/QEMU_EFI.fd ./
2. Download img file.
Download the QEMU img file instead of installing from the ISO file.
Download link: https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-arm64.img
Home page: https://cloud-images.ubuntu.com
3. Boot.
It is recommended toBetter make a copy of the img file for backup before booting.:
cp ubuntu-22.04-server-cloudimg-arm64.img ubuntu-arm.img
Boot it.:
qemu-system-aarch64 -M virt -cpu cortex-a72 -nographic \
-net nic -net user \
-bios QEMU_EFI.fd -hda ubuntu-arm.img
If everything is working properlyworks fine, you should be able towill see the boot messages and eventually enter the login screen.
Failure CaseMethod 2 (Failed)
I tried to install the ISO file with the EFI file, it booted and showed the initial installation screen, but it didn't work in the end. A few minutes after I pressed Enter, it prompted me with Failed to start Snap Daemon
, maybe because it failed to connect to the network.
qemu-img create -f qcow2 ubuntu-arm.img 16G
qemu-system-aarch64 -M virt -cpu cortex-a72 -nographic \
-net nic -net user \
-bios QEMU_EFI.fd -hda ubuntu-arm.img \
-cdrom ubuntu-22.04.2-live-server-arm64.iso -boot d