This is just documenting the various points to note, trials, errors etc when I tried to run arm64 on x86_64 using qemu. This post does not have a very satisfactory ending - the VM was far too slow for me to try OpenSpace or OCVWarp or anything else for arm64 tests.
Via bing copilot
general qemu setup
from
qemu-system-aarch64 \
-m 2048\
-cpu max \
-M virt \
-nographic \
-drive if=pflash,format=raw,file=efi.img,readonly=on \
-drive if=pflash,format=raw,file=varstore.img \
-drive if=none,file=noble-server-cloudimg-arm64.img,id=hd0 \
-device virtio-blk-device,drive=hd0 \
-netdev type=tap,id=net0 \
-device virtio-net-device,netdev=net0
could not find net0, so tried
without network
---------------
qemu-system-aarch64 \
-m 2048\
-cpu max \
-M virt \
-nographic \
-drive if=pflash,format=raw,file=efi.img,readonly=on \
-drive if=pflash,format=raw,file=varstore.img \
-drive if=none,file=noble-server-cloudimg-arm64.img,id=hd0 \
-device virtio-blk-device,drive=hd0
This went into a loop around 10 minutes in,
[FAILED] Failed to start systemd-resolved.service - Network Name Resolution.
See 'systemctl status systemd-resolved.service' for details.
Starting systemd-resolved.service - Network Name Resolution...
[FAILED] Failed to start systemd-resolved.service - Network Name Resolution.
See 'systemctl status systemd-resolved.service' for details.
Starting systemd-resolved.service - Network Name Resolution...
[FAILED] Failed to start systemd-resolved.service - Network Name Resolution.
See 'systemctl status systemd-resolved.service' for details.
Starting systemd-resolved.service - Network Name Resolution...
[ **] (1 of 2) Job apparmor.service/start running (13min 35s / no limit)
When running virt-manager,
"The emulator may not have search permissions for the path"
First run with sudo and then without?
sudo virt-manager
(say yes when it asks to fix the problem, go to next step, then cancel)
then
virt-manager
That worked.
Chrome remote desktop is an option -
But not available for arm64?
Login incorrect
ubuntu login: password[ 361.700501] cloud-init[1126]: Cloud-init v. 24.4.1-0ubuntu0~24.04.3 running 'modules:final' at Fri, 09 May 2025 07:42:17 +0000. Up 360.36 seconds.
Password: ci-info: no authorized SSH keys fingerprints found for user ubuntu.
Probably must run
virt-sysprep
--password ubuntu:password:ubuntu
sets the password ubuntu for the user ubuntu.
virt-sysprep [--options] -a disk.img
virt-sysprep --password ubuntu:password:ubuntu -a ubuntu2404-arm64.img
sudo apt install libguestfs-tools
virt-customize --password ubuntu:password:ubuntu -a ubuntu2404-arm64.img
virt-customize -a ubuntu2404-arm64.img --password ubuntu:password:ubuntu
Extra parameter on the command line: ‘ --password’.
Try ‘virt-customize --help’ or consult virt-customize(1) for more information
Needed to run as sudo.
sudo virt-customize -v -x -a ubuntu2404-arm64.img --root-password password:password
Boots up in around 5 minutes.
sudo qemu-img resize /home/sssvv/Downloads/QEMU/noble-server-cloudimg-arm64.img +20G
qemu-img: Command not found: resize /home/sssvv/Downloads/QEMU/noble-server-cloudimg-arm64.img +20G
maybe needs converting to raw?