From c925905e38acd6fed7ddf960abbc70634014efb5 Mon Sep 17 00:00:00 2001 From: Christopher Clark Date: Thu, 27 Feb 2020 14:01:24 -0800 Subject: xen-image-minimal: enable runqemu for x86-64 Booting this Xen image with QEMU works when launching from the wic-generated pcbios disk image with the directdisk-xen.wks kickstart file, so add the variable settings to make doing it simple -- eg: runqemu xen-image-minimal nographic slirp Tested with MACHINEs: qemux86-64 and genericx86-64 Memory allocated to qemu is increased slightly over the default to allow for running Xen and the Linux dom0 and guest VMs. Signed-off-by: Christopher Clark Signed-off-by: Bruce Ashfield --- recipes-extended/images/xen-image-minimal.bb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/recipes-extended/images/xen-image-minimal.bb b/recipes-extended/images/xen-image-minimal.bb index dcdc864a..c965f221 100644 --- a/recipes-extended/images/xen-image-minimal.bb +++ b/recipes-extended/images/xen-image-minimal.bb @@ -72,3 +72,16 @@ build_syslinux_cfg () { echo " APPEND /xen.gz ${SYSLINUX_XEN_ARGS} --- /vmlinuz ${SYSLINUX_KERNEL_ARGS} --- /initrd" >> ${SYSLINUX_CFG} } +# Enable runqemu. eg: runqemu xen-image-minimal nographic slirp +WKS_FILE_x86-64 = "directdisk-xen.wks" +QB_MEM = "-m 400" +QB_DEFAULT_KERNEL = "" +QB_DEFAULT_FSTYPE = "wic" +QB_FSINFO = "wic:kernel-in-fs" +# qemux86-64 machine does not include 'wic' in IMAGE_FSTYPES, which is needed +# to boot this image, so add it here: +IMAGE_FSTYPES_qemux86-64 += "wic" +# Networking: the qemuboot.bbclass default virtio network device works ok +# and so does the emulated e1000 -- choose according to the network device +# drivers that are present in your dom0 Linux kernel. To switch to e1000: +# QB_NETWORK_DEVICE = "-device e1000,netdev=net0,mac=@MAC@" -- cgit v1.2.3-54-g00ecf