On Wed, Feb 26, 2025 at 4:35 PM Ryan Lovelett via
lists.yoctoproject.org
<ryan.a.lovelett=saic....@lists.yoctoproject.org> wrote:
>
> I am trying to create a Yocto build that produces a host image containing 
> QEMU and also embeds a guest image that Yocto builds. The idea is to have a 
> host root filesystem that includes QEMU along with a separate "disk" holding 
> the guest image. At boot, a systemd unit in the host would launch QEMU using 
> the embedded guest image as its disk.
>
> I would like to know if this conceptual approach would work and, if so, what 
> the best practices are. In particular, I am looking for guidance on:
>
> The recommended method to build the guest image with the host image.
> The recommended method to include the guest image in the host image.
>
> Any pointers or recommendations would be appreciated.

Look into meta-virtualization layer. There are reference images to
build e.g. kvm-minimal-image
which could be your final image. Then build another image for guest
maybe core-image-minimal or something
write a new image which inherits from kvm-minimal-image and adds
core-image-minimal to install
also adds a systemd unit file which is perhaps another package added
to IMAGE_INSTALL of your-image

>
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64881): https://lists.yoctoproject.org/g/yocto/message/64881
Mute This Topic: https://lists.yoctoproject.org/mt/111407542/21656
Mute #qemu:https://lists.yoctoproject.org/g/yocto/mutehashtag/qemu
Mute #qemux86-64:https://lists.yoctoproject.org/g/yocto/mutehashtag/qemux86-64
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to