diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-01-23 15:22:41 -0500 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-02-09 03:34:12 +0000 |
| commit | 729c4bb01402aac1348d5d40eea6a42ff2bc1934 (patch) | |
| tree | f6c6d3cad6ff6e3f2d3da9548d48713c869ea731 /conf | |
| parent | 0f5344e8c36eef45c4886a903bc5f0ccef305111 (diff) | |
| download | meta-virtualization-729c4bb01402aac1348d5d40eea6a42ff2bc1934.tar.gz | |
vcontainer: add sanity checks and auto-enable virtfs for QEMU
Fix virtio-9p (virtfs) support for container-cross-install batch
imports which provides ~50x speedup over base64-over-serial.
The issue was that native recipes don't see target DISTRO_FEATURES,
so qemu-system-native wasn't getting virtfs enabled.
Fix by:
- layer.conf: Propagate virtualization to DISTRO_FEATURES_NATIVE when
vcontainer or virtualization is in target DISTRO_FEATURES
- qemu-system-native: Check DISTRO_FEATURES_NATIVE for virtfs enable
- container-cross-install: Prepend native sysroot to PATH so vrunner
finds the QEMU with virtfs support
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'conf')
| -rw-r--r-- | conf/layer.conf | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/conf/layer.conf b/conf/layer.conf index 85694344..6eadc87f 100644 --- a/conf/layer.conf +++ b/conf/layer.conf | |||
| @@ -76,4 +76,8 @@ USER_CLASSES:append = " meta-virt-hosts" | |||
| 76 | 76 | ||
| 77 | HOSTTOOLS_NONFATAL += "getent" | 77 | HOSTTOOLS_NONFATAL += "getent" |
| 78 | 78 | ||
| 79 | # Propagate virtualization/vcontainer to native DISTRO_FEATURES for qemu virtfs support | ||
| 80 | # This enables virtio-9p in qemu-system-native for container-cross-install batch imports | ||
| 81 | DISTRO_FEATURES_NATIVE:append = " ${@bb.utils.contains_any('DISTRO_FEATURES', 'vcontainer virtualization', 'virtualization', '', d)}" | ||
| 82 | |||
| 79 | NON_MULTILIB_RECIPES:append:x86-64 = " kubernetes" | 83 | NON_MULTILIB_RECIPES:append:x86-64 = " kubernetes" |
