<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>16402</bug_id>
          
          <creation_ts>2026-08-19 12:52:04 +0000</creation_ts>
          <short_desc>meta-virtualization : docker container bundling failure</short_desc>
          <delta_ts>2026-10-27 22:16:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>virtual machines</component>
          <version>6.0</version>
          <rep_platform>ARM</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Martin Frétigné">martin.fretigne</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>106561</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Frétigné">martin.fretigne</who>
    <bug_when>2026-08-19 12:52:04 +0000</bug_when>
    <thetext>Hello,

using yocto wrynose, I want to bundle a docker image into a linux system image, as described in docs/container-bundling.md

My system image inherits from container-cross-install.bbclass, which depends on the output of this command &apos;bitbake mc:vruntime-aarch64:vdkr-initramfs-create&apos;, but there are two problems.

1) vdkr-initramfs-create :                                                                                                                                                                                                                                    
The image depends on &apos;cgroup-lite&apos; (dependencies chain : [&apos;vdkr-initramfs-create&apos;, &apos;vdkr-rootfs-image&apos;, &apos;docker-moby&apos;, &apos;cgroup-lite&apos;]), which is masked in conf/distro/include/vruntime-bbmask.inc. I deleted the BBMASK/cgroup-lite line to fix that problem.         
                                                                                                                                                                                                                                                              
2) container-cross-install :                                                                                                                                                                                                                                  
vrunner launches qemu, which fails to mount the rootfs.img file, hence fails to bundle the docker image.                                                                                                                                  
This is because &apos;virtualization&apos; is not added to distro_features, hence vcontainer.scc fragment is not used for the kernel build.                                                                                                                                                                                                                                                                                                                                                                                    
I added DISTRO_FEATURES:append = &quot;virtualization&quot; to vruntime.conf to fix that problem                                                                                                                                                                                         
                                                                                                                                                                                                                                                              
With these two changes my docker image is bundled in my system image. Do these fixes seem correct to you ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106563</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2026-08-19 18:18:09 +0000</bug_when>
    <thetext>I don&apos;t normally do meta-virt bugs here, but since this is now part of AB runs for reference containers, I&apos;m definitely more willing.

Thanks for the report and the reproducer .. this bundling path is exercised
heavily and often here, so it&apos;s known-good in the configuration stack we run
it in. What you ran into is that docs/container-bundling.md doesn&apos;t spell out
the full DISTRO_FEATURES the vruntime side expects -- your build had a leaner
config than the doc&apos;s flow assumes, so a couple of things our stack provides
weren&apos;t present.

Concretely: our host configs pull in meta-virt-host.conf, which sets
virtualization and systemd in DISTRO_FEATURES, and those carry into the
vruntime multiconfig. That&apos;s what makes both of the spots you hit line up:

  - with systemd set, docker-moby doesn&apos;t pull cgroup-lite (docker.inc only
    needs it when systemd is absent), so the BBMASK never comes into play;
  - with virtualization set, the container kernel fragment (container.scc -&gt;
    9p/squashfs/overlayfs) is applied, so the guest mounts rootfs.img.

Both of your changes are re-supplying what that stack normally provides, so
they&apos;re the right move for a leaner config.

Rather than just filling the doc gap, there are a couple of usability holes
here worth closing, so this works without the extra edits and fails clearly
when the config is incomplete. I&apos;ve committed:

  1. Stopped masking cgroup-lite. The vruntime rootfs is busybox-init (no
     systemd), and docker legitimately wants cgroup-lite there, so a
     no-systemd stack should resolve without anyone touching the mask.

  2. Made the vruntime distro declare virtualization itself, so it carries
     the container kernel feature on its own instead of relying on a
     top-level append being in place. It&apos;s only the one feature and pulls no
     extra userspace packages, so the rootfs doesn&apos;t grow.

  3. Added a REQUIRED_DISTRO_FEATURES / features_check guard on the
     vdkr/vpdmn rootfs images, so an incomplete config gives a clear
     parse-time error instead of a silent runtime mount failure.

I&apos;m testing these right now on master; I&apos;ll get them onto wrynose too since
that&apos;s what you&apos;re on. After that the bundling flow should work without
either of your local changes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106564</commentid>
    <comment_count>2</comment_count>
    <who name="Martin Frétigné">martin.fretigne</who>
    <bug_when>2026-08-19 21:48:02 +0000</bug_when>
    <thetext>Ok, cool, thank you, I appreciate that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107207</commentid>
    <comment_count>3</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2026-10-27 22:16:33 +0000</bug_when>
    <thetext>Reporter confirmed the wrynose branch works, including the fixes for this issue. Closing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>