FreeBSD Xen guest on Debian

From: Henrik Morsing <henrik_at_morsing.cc>
Date: Fri, 31 Dec 2021 13:10:25 UTC
Dear BSDers,

I have recently started moving back in to FreeBSD but have spent the last three days pulling my hair out over installing a FreeBSD guest on my Debian Xen server. I have downloaded both the qcow and bootable ISO images and atempted the fragments of information I have found in discussion thread over days of Googling.

Is this just not something people do? In this virtual world? I have just joined a start-up company as the first IT person and a blank canvas, and was hoping to introduce some FreeBSD systems.

Is there no known procedure for doing this? I can boot neither the qcow or ISO images, getting a mixture between "Invalid option" (I think that's the type/loader/builder options people say I need in the domU.cfg, or the closest I have been with the qcow image is:

libxl: error: libxl_device.c:1391:libxl__wait_for_backend: Backend /local/domain/0/backend/qdisk/0/51728 not ready

I have also seen this:

[Errno 2] No such file or directory
Error opening /usr/lib/xen-4.14/boot/hvmloader in guest

Is that because I need to add something to the image?

And the ISO netinst image just isn't bootable at all. I'm also a bit confused if I need pygrub or not?

Is there no .cfg out there that is known to work on Debian?

P.S. Just realised the image file for Xen is .vhd, but I am still stuck on how to do the .cfg file. I just get:

"Neither kernel nor bootloader specified"

None of people's configurations I have found have these, and if I set:

kernel = "/usr/lib/xen-4.14/boot/hvmloader"

I just get:

xc: error: panic: xc_dom_core.c:692: xc_dom_find_loader: no loader found: Invalid kernel


Thanks for any advice.

--