It think you are missing "VMinstall: kernel-obs-build" in the prjconf.
Thanks, I tried that and it results in an unresolvable. It seems there is no kernel-obs-build for aarch64 available.
I wanted to understand the concept better and was reading more code. Please correct me when wrong. In the build package code there is:
armv8l|aarch64) kvm_bin="/usr/bin/qemu-system-aarch64" kvm_console=ttyAMA0 vm_kernel=/boot/Image vm_initrd=/boot/initrd test -e /boot/kernel.obs.guest && vm_kernel=/boot/kernel.obs.guest test -e /boot/initrd.obs.guest && vm_initrd=/boot/initrd.obs.guest
This is the issue we see. The worker does not provide /boot/kernel.obs.guest and /boot/initrd.obs.guest. The default settings for kernel and initrd applies but that doesn't work.
The suggested instruction:
would install the package on the worker prior the build-vm-kvm code and this would lead to the use of obs.guest initrd/kernel files. Is that correct ?
Next I looked at one of my packages that builds successfully on build.opensuse.org. In the log I see:
[ 1s] unpacking preinstall image Ubuntu:debbuild/Ubuntu_20.04/preinstallimage-base [6fe2b94cfc6f3d08b3f38c628716bdc5] [ 4s] booting kvm... [ 4s] ### VM INTERACTION START ### [ 4s] Using UART console [ 4s] /usr/bin/qemu-system-aarch64 ... -kernel /boot/kernel.obs.guest -initrd /boot/initrd.obs.guest ...
There is no extra install of kernel-obs-build. Instead a preinstall image which probably provides the required data is used.
I see this behavior when building for Ubuntu using debbuild. Package builds for e.g Leap, Fedora on aarch64 seems to provide a kernel-obs-build package and contains:
[ 15s] [8/47] preinstalling kernel-obs-build...
In all of this situations the location for initrd and kernel is passed to kvm as
-kernel /var/cache/obs/worker/root_13/.mount/boot/kernel -initrd /var/cache/obs/worker/root_13/.mount/boot/initrd
Which was weird because I thought it would also be *.obs.guest
Can you advise what the preferred solution is to fix this OBS instance to allow package builds on the aarch64 workers ?
Sorry if the questions sounds dumb, I'm just reading my way through the code and got confused here and there