QEMU on rock5 (emulate x86 on arm)

Hi there,

I’m trying to emulate x86 x64 OS on aarch64. As I was reading about qemu it looks like I have to install qemu + qemu-system-x86. When I install qemu-system-x86 I need to manually install seabios and edk2-ovmf to get it work as it’s advised here. Then when I try to install qemu the installation complain about files ownership

(41/41) checking for file conflicts [----------------------------------------] 100%
error: failed to commit transaction (conflicting files)
qemu-common: /usr/share/qemu/bios-256k.bin exists in filesystem (owned by seabios)
qemu-common: /usr/share/qemu/bios-microvm.bin exists in filesystem (owned by seabios)
qemu-common: /usr/share/qemu/bios.bin exists in filesystem (owned by seabios)
qemu-common: /usr/share/qemu/vgabios-ati.bin exists in filesystem (owned by seabios)
qemu-common: /usr/share/qemu/vgabios-bochs-display.bin exists in filesystem (owned by seabios)
qemu-common: /usr/share/qemu/vgabios-cirrus.bin exists in filesystem (owned by seabios)
qemu-common: /usr/share/qemu/vgabios-qxl.bin exists in filesystem (owned by seabios)
qemu-common: /usr/share/qemu/vgabios-ramfb.bin exists in filesystem (owned by seabios)
qemu-common: /usr/share/qemu/vgabios-stdvga.bin exists in filesystem (owned by seabios)
qemu-common: /usr/share/qemu/vgabios-virtio.bin exists in filesystem (owned by seabios)
qemu-common: /usr/share/qemu/vgabios-vmware.bin exists in filesystem (owned by seabios)
Errors occurred, no packages were upgraded.

When I tried to install qemu then qemu-system-x86 the error is the same but seabios complain about lack of ownership.

I don’t really know how to fix it :sweat_smile: Did anyone play with qemu on rock5 and can help me with this problem? Thanks!

Looks like I managed to install qemu by overwriting.
sudo pacman -S --overwrite /usr/share/qemu/\* qemu

I used virsh before. Then I upgraded packages from bullseye to bookworm while I was working on the network/firewall rules of virsh and something broke. I still don’t know what.

Before that it worked like a charm, so it’s definitely possible to run it.

1 Like