Hello, I have built & installed Xen 4.15 onto my Ubuntu20.04 platform successfully according to https://wiki.xenproject.org/wiki/Compiling_Xen_From_Source After reboot, I entered Domain 0 successfully. The command xl info shows the right version string.
*host : xvgrelease : 5.13.0-30-genericversion : #33~20.04.1-Ubuntu SMP Mon Feb 7 14:25:10 UTC 2022machine : x86_64nr_cpus : 16max_cpu_id : 31nr_nodes : 1cores_per_socket : 8threads_per_core : 2cpu_mhz : 2994.377hw_caps : 178bf3ff:76d8320b:2e500800:244037ff:0000000f:219c91a9:00400004:00000500virt_caps : pv hvm hvm_directio pv_directio hap shadowtotal_memory : 15719free_memory : 11425sharing_freed_memory : 0sharing_used_memory : 0outstanding_claims : 0free_cpus : 0xen_major : 4xen_minor : 15xen_extra : .3-pre-atg08xen_version : 4.15.3-pre-atg08xen_caps : xen-3.0-x86_64 hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64xen_scheduler : credit2xen_pagesize : 4096platform_params : virt_start=0xffff800000000000xen_changeset : Fri Mar 4 13:33:49 2022 +0800 git:6aa4cdbc31xen_commandline : placeholder dom0_mem=4096M,max:8192M no-real-mode edd=offcc_compiler : gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0cc_compile_by : xvgcc_compile_domain :cc_compile_date : Fri Mar 4 14:21:33 CST 2022build_id : 234929adcb7588b1414c2b6e5477fa95052b4dedxend_config_format : 4* Then my next step is to create ubuntu guest VM(sudo or use root user): */usr/local/lib/xen/bin/qemu-system-x86_64 -smp 1 -xen-domid 4 -machine xenfv -m 4G -net nic,model=virtio -net user,hostfwd=tcp::2222-:22 -hda ./u2004.qcow2 -boot d -cdrom ./ubuntu-20.04-desktop-amd64.iso* However, I always failed with the following error: * qemu-system-x86_64: failed to map ioreq server resources: error 3 handle=0x55eeb1f6c0b0 qemu-system-x86_64: xen hardware virtual machine initialisation failed* After debugging, the error is caused by osdep_xenforeignmemory_map_resource failed to invoke IOCTL_PRIVCMD_MMAP_RESOURCE. And this IOCTL will return -1. So my question is, am I using the right qemu command? Anything else is needed to set/config? Note, if I didn't specify the option ' *-xen-domid 4 -machine xenfv* ', I can start qemu successfully Would you please help with it?