diff options
-rw-r--r-- | recipes-extended/images/xen-image-minimal.bb | 1 | ||||
-rw-r--r-- | wic/qemuboot-xen-x86-64.cfg | 8 | ||||
-rw-r--r-- | wic/qemuboot-xen-x86-64.wks | 12 |
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 |
76 | WKS_FILE:x86-64 = "directdisk-xen.wks" | 76 | WKS_FILE:x86-64 = "directdisk-xen.wks" |
77 | WKS_FILE:qemux86-64 = "qemuboot-xen-x86-64.wks" | ||
77 | QB_MEM ?= "-m 400" | 78 | QB_MEM ?= "-m 400" |
78 | QB_DEFAULT_KERNEL ?= "none" | 79 | QB_DEFAULT_KERNEL ?= "none" |
79 | QB_DEFAULT_FSTYPE ?= "wic" | 80 | QB_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 @@ | |||
1 | DEFAULT boot | ||
2 | TIMEOUT 0 | ||
3 | PROMPT 0 | ||
4 | SERIAL 0 115200 | ||
5 | |||
6 | LABEL 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 | |||
6 | part /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 | ||
10 | part / --source rootfs --ondisk sda --use-uuid --fstype=ext4 --label root --align 1024 | ||
11 | |||
12 | bootloader --configfile="qemuboot-xen-x86-64.cfg" | ||