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 /recipes-devtools | |
| 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 'recipes-devtools')
| -rw-r--r-- | recipes-devtools/qemu/qemu-system-native_%.bbappend | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/recipes-devtools/qemu/qemu-system-native_%.bbappend b/recipes-devtools/qemu/qemu-system-native_%.bbappend index d360af80..b04b6934 100644 --- a/recipes-devtools/qemu/qemu-system-native_%.bbappend +++ b/recipes-devtools/qemu/qemu-system-native_%.bbappend | |||
| @@ -5,6 +5,8 @@ | |||
| 5 | # Enable virtfs (virtio-9p) for vcontainer cross-architecture container bundling. | 5 | # Enable virtfs (virtio-9p) for vcontainer cross-architecture container bundling. |
| 6 | # This is required for the fast batch-import path in container-cross-install. | 6 | # This is required for the fast batch-import path in container-cross-install. |
| 7 | # | 7 | # |
| 8 | # Only applied when "vcontainer" or "virtualization" is in DISTRO_FEATURES. | 8 | # Note: Native recipes don't see target DISTRO_FEATURES directly. |
| 9 | # The layer.conf propagates virtualization to DISTRO_FEATURES_NATIVE when | ||
| 10 | # vcontainer or virtualization is in the target DISTRO_FEATURES. | ||
| 9 | 11 | ||
| 10 | PACKAGECONFIG:append = " ${@bb.utils.contains_any('DISTRO_FEATURES', 'vcontainer virtualization', 'virtfs', '', d)}" | 12 | PACKAGECONFIG:append = " ${@bb.utils.contains('DISTRO_FEATURES_NATIVE', 'virtualization', 'virtfs', '', d)}" |
