summaryrefslogtreecommitdiffstats
path: root/recipes-extended
diff options
context:
space:
mode:
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