On 2021/09/23 Thu 17:21, Andreas Schwab wrote:
On Sep 23 2021, Kai Liu wrote:
For example, for SLES, qemu uses the kernel and initrd under /var/cache/obs/worker/root_*/.mount/boot/kernel. But for CentOS, it uses kernel under /boot. It looks like the SLES worker even runs the exact kernel version of the target OS.
Could some one let me know how can I set my instance to run in such way?
This isn't dependent on the build worker, but on the availability of a kernel-obs-build package in the build environment, which installs /.build.kernel.kvm in the build root. If that file is present, it is used by the build script for the qemu run. See the build-vm script in the build package.
Thanks for the pointer. I got the idea. However I'm a bit confused. The "build" package seems is not a dependent of the obs-worker or other obs-* packages, thus it was not installed on my worker and server. Do I need to manually install it, then my worker script will pick it up? Regards, Kai