summaryrefslogtreecommitdiffstats
path: root/recipes-extended
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2026-02-19 22:39:14 +0000
committerBruce Ashfield <bruce.ashfield@gmail.com>2026-02-26 01:05:01 +0000
commit6d94266a86246ac23abdbc28ac3b5c6e522fb748 (patch)
treef3c14a73c232c1393d491b7f5d1cec318e12e285 /recipes-extended
parent5c891aab54f1432f2afe75bf0dee0027fbb2e4bd (diff)
downloadmeta-virtualization-6d94266a86246ac23abdbc28ac3b5c6e522fb748.tar.gz
xen: add configuration tests and update documentation
Add TestXenImageMinimalX86Config test class verifying: - QB_CPU_KVM host passthrough for Xen CPUID filtering - QB_MEM_VALUE override (not QB_MEM which can't override bbclass) - dom0_mem in both QB_XEN_CMDLINE_EXTRA and WKS syslinux config - vgabios SAVANNAH_GNU_MIRROR usage Update Alpine recipe tests for per-arch checksums (name=${ALPINE_ARCH}) and S variable. Add qemux86-64 build and boot section to README-xen.md. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-extended')
-rw-r--r--recipes-extended/images/README-xen.md35
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes-extended/images/README-xen.md b/recipes-extended/images/README-xen.md
index f16aa743..e5b4ca4a 100644
--- a/recipes-extended/images/README-xen.md
+++ b/recipes-extended/images/README-xen.md
@@ -165,6 +165,8 @@ Guests can be launched after boot with: xl create -c /etc/xen/<guest>.cfg
165Build and boot 165Build and boot
166-------------- 166--------------
167 167
168### qemuarm64
169
168Using a reference qemuarm64 MACHINE, the following are the commands 170Using a reference qemuarm64 MACHINE, the following are the commands
169to build and boot a guest. 171to build and boot a guest.
170 172
@@ -205,3 +207,36 @@ Name ID Mem VCPUs State Time(s)
205Domain-0 0 192 4 r----- 696.2 207Domain-0 0 192 4 r----- 696.2
206xen-guest-image-minimal 1 512 1 -b---- 153.0 208xen-guest-image-minimal 1 512 1 -b---- 153.0
207root@qemuarm64:~# xl destroy xen-guest-image-minimal 209root@qemuarm64:~# xl destroy xen-guest-image-minimal
210
211### qemux86-64
212
213The xen-image-minimal recipe includes x86-64 specific configuration:
214
215 - QB_CPU_KVM uses -cpu host to avoid AVX stripping by Xen's CPUID
216 filtering (required for x86-64-v3 tune)
217 - QB_MEM_VALUE = "1024" for 1GB Dom0 memory
218 - dom0_mem=512M reserves memory for DomU guests
219
220 % MACHINE=qemux86-64 bitbake xen-guest-image-minimal
221 % MACHINE=qemux86-64 bitbake xen-image-minimal
222
223 % runqemu qemux86-64 nographic slirp kvm
224
225qemux86-64 login: root
226
227root@qemux86-64:~# xl list
228Name ID Mem VCPUs State Time(s)
229Domain-0 0 512 4 r----- 12.3
230alpine 1 256 1 -b---- 0.8
231xen-guest-image-minimal 2 256 1 -b---- 3.1
232
233vxn standalone test:
234
235root@qemux86-64:~# vxn run --rm alpine echo hello
236hello
237
238containerd test:
239
240root@qemux86-64:~# ctr image pull docker.io/library/alpine:latest
241root@qemux86-64:~# vctr run --rm docker.io/library/alpine:latest test1 echo hello
242hello