https://vadion.com/xen-hypervisor-setting-up-xen-userland-and-running-domu-guests-part-3/

https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling

https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/virtualization-on-arm-with-xen


https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling#Cross-compile_chroot_environment_using_multiarch

sudo sbuild-createchroot --components=main,universe <your_ubuntu_codename> /srv/chroots/saucy-arm64-cross http://old-releases.ubuntu.com/ubuntu/

The ubuntu codename can be printed with:

 
$ lsb_release -a
 
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04 LTS
Release:	22.04
Codename:	jammy
 
 

you may need to patch some xenstore files if you face the xprintf compile error:

https://lists.xenproject.org/archives/html/xen-devel/2020-05/msg01273.html

on xenstored_core.h:

extern xengnttab_handle **xgt_handle;

on utils.h:

extern void (*xprintf)(const char *fmt, ...);

If you find something like “cc1: all warnings being treated as errors

  • just open the makefile of the directory referenced by the error and remove the -Werror from CFLAGS
  • To find the directory, look for the last make[4]: Entering directory ocurrence that was printed on the stdout
    • For Example:
      • make[4]: Entering directory '/home/sargx/Workspace/TCC/xenonarm/xen-4.12.2/tools/libxl
      • In this case, edit tools/libxl/Makefile.
CFLAGS += -Werror

🌱 Back to Garden