Qeme on AArch64 missing various dependency

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

Qeme on AArch64 missing various dependency

Postby adam900710 » Fri Aug 19, 2022 6:30 am

Hi,

I'm running libvirt + qemu KVM to do extra tests on my CM4 boards.

Unfortunately the setup is harder to install due to recent qemu packaging change:

1. Qemu-base points to qemu-systme-x86
This is definitely not what most guys wants on Aarch64, especially if they want to use KVM.

2. Missing edk2-armvirt package
Even one is trying to install qemu-system-aarch64, it will not succeed due to missing edk2-armvirt.
That package provides the UEFI runtime for Aarch64 VMs.
For now, one needs to grab the same package from Archlinux x86_64.

Please consider to fix the qemu packaging problems for Aarch64.

Thanks.
adam900710
 
Posts: 44
Joined: Thu Sep 13, 2012 1:27 pm

Re: Qeme on AArch64 missing various dependency

Postby umbrellarunaround » Tue Aug 30, 2022 8:49 am

Hi adam900710

Thanks for your post.

If its of use to anyone else, I use libvirt with QEMU and KVM on a RPI4 host, with archlinuxarm guests. All has been working fine for months.

I updated all ok as per

[url]https://archlinuxarm.org/forum/viewtopic.php?f=15&t=16037&p=69689&hilit=qemu#p69676
[/url]
I started receiving error receiving a few errors after a power cycle from a powercut.

I tried removing and reinstalling
https://archlinux.org/packages/extra/any/edk2-ovmf/
https://archlinux.org/packages/extra/any/seabios/
https://archlinux.org/packages/extra/any/edk2-armvirt/

with pacman -U as per
[url]https://archlinuxarm.org/forum/viewtopic.php?f=15&t=16037&p=69689&hilit=qemu#p69690
[/url]
then
qemu-system-aarch64

After this, I was still getting the below when trying to start my virtual machine.
error: Path '/usr/share/edk2/aarch64/QEMU_EFI-pflash.raw' is not accessible: No such file or directory

and needed to recreate a new "virtual machine" with libvirt install use the same disk image as my old machine.

when I diffed the qemu xml files produced by libvirt install, the relevant change seemed to be

old xml that produced error above
$this->bbcode_second_pass_code('', ' <os>
<type arch='aarch64' machine='virt-6.1'>hvm</type>
<loader readonly='yes' type='pflash'>/usr/share/edk2/aarch64/QEMU_EFI-pflash.raw</loader>
<nvram>/var/lib/libvirt/qemu/nvram/x_VARS.fd</nvram>
<boot dev='hd'/>
</os>
')

new xml additions / changes of note (?) that booted virtual machine without error
$this->bbcode_second_pass_code('', '<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://archlinux.org/archlinux/rolling"/>
</libosinfo:libosinfo>
</metadata>
<memory unit='KiB'>2097152</memory>

...

<os firmware='efi'>
<type arch='aarch64' machine='virt-7.0'>hvm</type>
<boot dev='hd'/>
</os>')
Last edited by umbrellarunaround on Tue Aug 30, 2022 8:54 am, edited 1 time in total.
umbrellarunaround
 
Posts: 14
Joined: Fri Mar 12, 2021 12:31 pm

Re: Qeme on AArch64 missing various dependency

Postby umbrellarunaround » Tue Aug 30, 2022 8:51 am

I should add to those who might try and follow what I've written, I don't know really what I'm doing so follow with caution. I'm not sure if I really need all three of those packages for instance. :? but I'm not too bothered as long as everything works. :D
umbrellarunaround
 
Posts: 14
Joined: Fri Mar 12, 2021 12:31 pm


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 7 guests