diff options
author | Christopher Clark <christopher.w.clark@gmail.com> | 2021-08-31 16:27:40 -0700 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2021-09-02 16:36:23 -0400 |
commit | 5ae8ad3316e52f7faa018aa408dc606edeabbb34 (patch) | |
tree | 30f27a726e685cf8c38cdf8cd912bbd52acc7c53 | |
parent | ec521bd529b87de4a9520057eeb48dd9f659322a (diff) | |
download | meta-virtualization-5ae8ad3316e52f7faa018aa408dc606edeabbb34.tar.gz |
xen-image-minimal: supply bootloader config for qemux86-64 machine
Add a dedicated bootloader config for the qemux86-64 machine so that the
'pmtmr=0' kernel command line argument can be provided, which removes an
error message that otherwise occurs in syslog during boot which is
detected by an OEQA test case causing it to fail.
A new kickstart file is provided that applies the new bootloader config
and it is supplied as an override to WKS_FILE for this image.
This is work towards enabling the Xen Test Framework (XTF) in the OEQA
testimage framework.
Signed-off-by: Christopher Clark <christopher.clark@starlab.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-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" | ||