diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-02-19 22:39:14 +0000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-02-26 01:05:01 +0000 |
| commit | 6d94266a86246ac23abdbc28ac3b5c6e522fb748 (patch) | |
| tree | f3c14a73c232c1393d491b7f5d1cec318e12e285 /recipes-extended | |
| parent | 5c891aab54f1432f2afe75bf0dee0027fbb2e4bd (diff) | |
| download | meta-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.md | 35 |
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 | |||
| 165 | Build and boot | 165 | Build and boot |
| 166 | -------------- | 166 | -------------- |
| 167 | 167 | ||
| 168 | ### qemuarm64 | ||
| 169 | |||
| 168 | Using a reference qemuarm64 MACHINE, the following are the commands | 170 | Using a reference qemuarm64 MACHINE, the following are the commands |
| 169 | to build and boot a guest. | 171 | to build and boot a guest. |
| 170 | 172 | ||
| @@ -205,3 +207,36 @@ Name ID Mem VCPUs State Time(s) | |||
| 205 | Domain-0 0 192 4 r----- 696.2 | 207 | Domain-0 0 192 4 r----- 696.2 |
| 206 | xen-guest-image-minimal 1 512 1 -b---- 153.0 | 208 | xen-guest-image-minimal 1 512 1 -b---- 153.0 |
| 207 | root@qemuarm64:~# xl destroy xen-guest-image-minimal | 209 | root@qemuarm64:~# xl destroy xen-guest-image-minimal |
| 210 | |||
| 211 | ### qemux86-64 | ||
| 212 | |||
| 213 | The 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 | |||
| 225 | qemux86-64 login: root | ||
| 226 | |||
| 227 | root@qemux86-64:~# xl list | ||
| 228 | Name ID Mem VCPUs State Time(s) | ||
| 229 | Domain-0 0 512 4 r----- 12.3 | ||
| 230 | alpine 1 256 1 -b---- 0.8 | ||
| 231 | xen-guest-image-minimal 2 256 1 -b---- 3.1 | ||
| 232 | |||
| 233 | vxn standalone test: | ||
| 234 | |||
| 235 | root@qemux86-64:~# vxn run --rm alpine echo hello | ||
| 236 | hello | ||
| 237 | |||
| 238 | containerd test: | ||
| 239 | |||
| 240 | root@qemux86-64:~# ctr image pull docker.io/library/alpine:latest | ||
| 241 | root@qemux86-64:~# vctr run --rm docker.io/library/alpine:latest test1 echo hello | ||
| 242 | hello | ||
