Hello! # uname -a Linux localhost 3.0.6-gentoo #4 SMP Sun Jan 1 04:25:00 Local time zone must be set--see zic m x86_64 Intel(R) Xeon(R) CPU E31270 @ 3.40GHz GenuineIntel GNU/Linux # xl list Name ID Mem VCPUs State Time(s) Domain-0 0 3045 8 r----- 1060.0 DomU .config: # cat /usr/src/linux/.config | grep XEN # CONFIG_XEN is not set # CONFIG_XEN_PRIVILEGED_GUEST is not set # cat /xen/gentoo.vm kernel = "/xen/gentoo-3.0.6" <----- DomU kernel memory = 1024 name = "gentoo" disk = [''file:/xen/disks/gentoo-root.img,sda1,w''] <---- Image with Gentoo root = "/dev/sda1 ro" vcpus = 2 # xl create gentoo.vm Parsing config file gentoo.vm xc: error: elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images: Invalid kernel libxl: error: libxl_dom.c:196:libxl__build_pv xc_dom_parse_image failed: Success cannot (re-)build domain: -3 What did I do wrong?
> # xl create gentoo.vm > Parsing config file gentoo.vm > xc: error: elf_xen_note_check: ERROR: Will only load images built for > the generic loader or Linux images: Invalid kernel libxl: error: > libxl_dom.c:196:libxl__build_pv xc_dom_parse_image failed: Success > cannot (re-)build domain: -3> What did I do wrong?Is the kernel compressed with xz? Try to build a kernel with bzip2 compression. Afaik the fairly recently implemented xz compression is still not working properly on Xen stable.
> DomU .config: > # cat /usr/src/linux/.config | grep XEN > # CONFIG_XEN is not set > # CONFIG_XEN_PRIVILEGED_GUEST is not set > > > # cat /xen/gentoo.vm > kernel = "/xen/gentoo-3.0.6" <----- DomU kernel > memory = 1024 > name = "gentoo" > disk = [''file:/xen/disks/gentoo-root.img,sda1,w''] <---- Image > with Gentoo > root = "/dev/sda1 ro" > vcpus = 2It also appears that you didn''t add Xen PV support to the kernel according to those configuration options. In this case you will need to use the HVM loader in your gentoo.vm configuration (loader = "hvm") or rebuild your kernel to add PV support. James
> > # xl create gentoo.vm > > Parsing config file gentoo.vm > > xc: error: elf_xen_note_check: ERROR: Will only load images built > > for the generic loader or Linux images: Invalid kernel libxl: error: > > libxl_dom.c:196:libxl__build_pv xc_dom_parse_image failed: Success > > cannot (re-)build domain: -3 > > > What did I do wrong? > > Is the kernel compressed with xz? Try to build a kernel with bzip2 > compression. Afaik the fairly recently implemented xz compression is > still not working properly on Xen stable.Hmm, yesterday I recompiled xen stable from hg, revision 23206 and get this error too when I use pv-grub. I tried to use a previous, working pv-grub while not downgrading Xen and this was enough to get my pv''s to boot again. Might be a bug... Devs?
Apparently Analagous Threads
- Bare-metal Xen on ARM boot
- [PATCH] libxl - fix a variable underflow in libxl_wait_for_free_memory
- [PATCH v2 00/14] xen: arm: 64-bit guest support and domU FDT autogeneration
- [PATCH v6 00/16] xen: arm: 64-bit guest support and domU FDT autogeneration
- Bug#776450: Xen PVH support for grub-xen in Buster