summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-extended/images/xen-image-minimal.bb1
-rw-r--r--wic/qemuboot-xen-x86-64.cfg8
-rw-r--r--wic/qemuboot-xen-x86-64.wks12
3 files changed, 21 insertions, 0 deletions
diff --git a/recipes-extended/images/xen-image-minimal.bb b/recipes-extended/images/xen-image-minimal.bb
index b4ddda2f..fbdd007b 100644
--- a/recipes-extended/images/xen-image-minimal.bb
+++ b/recipes-extended/images/xen-image-minimal.bb
@@ -74,6 +74,7 @@ build_syslinux_cfg () {
74 74
75# Enable runqemu. eg: runqemu xen-image-minimal nographic slirp 75# Enable runqemu. eg: runqemu xen-image-minimal nographic slirp
76WKS_FILE:x86-64 = "directdisk-xen.wks" 76WKS_FILE:x86-64 = "directdisk-xen.wks"
77WKS_FILE:qemux86-64 = "qemuboot-xen-x86-64.wks"
77QB_MEM ?= "-m 400" 78QB_MEM ?= "-m 400"
78QB_DEFAULT_KERNEL ?= "none" 79QB_DEFAULT_KERNEL ?= "none"
79QB_DEFAULT_FSTYPE ?= "wic" 80QB_DEFAULT_FSTYPE ?= "wic"
diff --git a/wic/qemuboot-xen-x86-64.cfg b/wic/qemuboot-xen-x86-64.cfg
new file mode 100644
index 00000000..297e19b2
--- /dev/null
+++ b/wic/qemuboot-xen-x86-64.cfg
@@ -0,0 +1,8 @@
1DEFAULT boot
2TIMEOUT 0
3PROMPT 0
4SERIAL 0 115200
5
6LABEL boot
7 KERNEL mboot.c32
8 APPEND /xen.gz console=com1,vga com1=115200,8n1 loglvl=all guest_loglvl=all --- /vmlinuz console=hvc0 earlyprintk=xen root=/dev/sda2 pmtmr=0
diff --git a/wic/qemuboot-xen-x86-64.wks b/wic/qemuboot-xen-x86-64.wks
new file mode 100644
index 00000000..593e0a66
--- /dev/null
+++ b/wic/qemuboot-xen-x86-64.wks
@@ -0,0 +1,12 @@
1# short-description: Create a 'pcbios' direct disk image with Xen hypervisor and bootloader config
2# long-description: Creates a partitioned legacy BIOS disk image to boot Xen
3# with a bootloader config that the user can directly dd to boot media.
4# Boot files are located on the first vfat partition.
5
6part /boot --source bootimg-biosxen --ondisk sda --label boot --active --align 1024
7
8# For the main partition, it can be useful to add additional space for VMs;
9# eg. increase partition size by appending: --size 10G
10part / --source rootfs --ondisk sda --use-uuid --fstype=ext4 --label root --align 1024
11
12bootloader --configfile="qemuboot-xen-x86-64.cfg"