All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* Question about XEN-hypervisor and Yocto build system
@ 2016-03-23 12:46 Olsson Rikard (RBSN/ESW1)
  2016-03-23 13:40 ` M. Gregory
  2016-03-23 14:09   ` [yocto] " Chris Patterson
  0 siblings, 2 replies; 4+ messages in thread
From: Olsson Rikard (RBSN/ESW1) @ 2016-03-23 12:46 UTC (permalink / raw
  To: yocto@yoctoproject.org

Hello Yocto Members,

I am looking into xen-hypervisor and have downloaded the meta-virtualization layer and updated bblayers.conf to pull in the layer. However I am unsure how to proceed:
1) How do I configure the meta-virtualization to use Xen hypervisor
2) What target do I build/bb file do I build.

I usually build either:
bitbake core-image-minimal ==> Standard Linux for our HW board
bitbake core-image-XXX--XXX ==> Standard Linux for our HW board + additional application layers.

I am however unable to understand the connection between the images I currently build and the Xen-hypervisor, for example:
recipes-extended/libvirt/libvirt_1.2.19.bb:# xen-minimal config
recipes-extended/images/kvm-image-minimal.bb:DESCRIPTION = "A minimal kvm image"
recipes-extended/images/xen-image-minimal.bb:DESCRIPTION = "A minimal xen image"
What are above bitbake recipes, should I build xen-image-minimal.bb instead of core-image-minimal or....

I have looked at:
https://wiki.yoctoproject.org/wiki/Virtualization_with_KVM
and the two README files:
./docs/00-README
./README
but there is not much information on Yocto and xen-hypervisor so I am unsure how to setup the build system.

Appreciate any advice or input.

Best regards
Rikard Olsson



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question about XEN-hypervisor and Yocto build system
  2016-03-23 12:46 Question about XEN-hypervisor and Yocto build system Olsson Rikard (RBSN/ESW1)
@ 2016-03-23 13:40 ` M. Gregory
  2016-03-23 14:09   ` [yocto] " Chris Patterson
  1 sibling, 0 replies; 4+ messages in thread
From: M. Gregory @ 2016-03-23 13:40 UTC (permalink / raw
  To: Olsson Rikard (RBSN/ESW1), yocto@yoctoproject.org



On 03/23/2016 08:46 AM, Olsson Rikard (RBSN/ESW1) wrote:
> Hello Yocto Members,
>
> I am looking into xen-hypervisor and have downloaded the meta-virtualization layer and updated bblayers.conf to pull in the layer. However I am unsure how to proceed:
> 1) How do I configure the meta-virtualization to use Xen hypervisor
> 2) What target do I build/bb file do I build.
>
> I usually build either:
> bitbake core-image-minimal ==> Standard Linux for our HW board
> bitbake core-image-XXX--XXX ==> Standard Linux for our HW board + additional application layers.
>
> I am however unable to understand the connection between the images I currently build and the Xen-hypervisor, for example:
> recipes-extended/libvirt/libvirt_1.2.19.bb:# xen-minimal config
> recipes-extended/images/kvm-image-minimal.bb:DESCRIPTION = "A minimal kvm image"
> recipes-extended/images/xen-image-minimal.bb:DESCRIPTION = "A minimal xen image"
> What are above bitbake recipes, should I build xen-image-minimal.bb instead of core-image-minimal or....
>
> I have looked at:
> https://wiki.yoctoproject.org/wiki/Virtualization_with_KVM
> and the two README files:
> ./docs/00-README
> ./README
> but there is not much information on Yocto and xen-hypervisor so I am unsure how to setup the build system.
>
> Appreciate any advice or input.
>
> Best regards
> Rikard Olsson
>
You should send your meta-virtualization questions to
meta-virtualization@yoctoproject.org.

The xen-image-minimal will build an image with the Xen hypervisor. You
need to include xen in your DISTRO_FEATURES to ensure all other required
components are built.

-- 
Machon Gregory



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question about XEN-hypervisor and Yocto build system
  2016-03-23 12:46 Question about XEN-hypervisor and Yocto build system Olsson Rikard (RBSN/ESW1)
@ 2016-03-23 14:09   ` Chris Patterson
  2016-03-23 14:09   ` [yocto] " Chris Patterson
  1 sibling, 0 replies; 4+ messages in thread
From: Chris Patterson @ 2016-03-23 14:09 UTC (permalink / raw
  To: Olsson Rikard (RBSN/ESW1)
  Cc: yocto@yoctoproject.org, meta-virtualization@yoctoproject.org

(CCing meta-virtualization)

On Wed, Mar 23, 2016 at 8:46 AM, Olsson Rikard (RBSN/ESW1)
<Rikard.Olsson@se.bosch.com> wrote:
> Hello Yocto Members,
>
> I am looking into xen-hypervisor and have downloaded the meta-virtualization layer and updated bblayers.conf to pull in the layer. However I am unsure how to proceed:
> 1) How do I configure the meta-virtualization to use Xen hypervisor

You will need to add "xen" to your DISTRO_FEATURES to toggle on the
yocto kernel config fragment for xen support, as well as libvirt.

> 2) What target do I build/bb file do I build.
>
> I usually build either:
> bitbake core-image-minimal ==> Standard Linux for our HW board
> bitbake core-image-XXX--XXX ==> Standard Linux for our HW board + additional application layers.
>
> I am however unable to understand the connection between the images I currently build and the Xen-hypervisor, for example:
> recipes-extended/libvirt/libvirt_1.2.19.bb:# xen-minimal config
> recipes-extended/images/kvm-image-minimal.bb:DESCRIPTION = "A minimal kvm image"
> recipes-extended/images/xen-image-minimal.bb:DESCRIPTION = "A minimal xen image"
> What are above bitbake recipes, should I build xen-image-minimal.bb instead of core-image-minimal or....
>

This largely depends on what you are trying to do, your BSP, if you
are using the yocto kernel, etc..  Building xen-image-minimal should
provide a bootable dom0 out of the box (at least for typical x86-64)
that can start/stop VMs using xl toolstack (not libvirt).

Adding xen support is largely about getting the appropriate kernel
bits enabled (meta-virtualization provides a config fragment).  For
dom0, you will also need to configure your bootloader to boot xen, and
then you will need to add the packages you desire (qemu, libvirt,
xen-base, etc.) to your specific image.

Good luck!


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [yocto] Question about XEN-hypervisor and Yocto build system
@ 2016-03-23 14:09   ` Chris Patterson
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Patterson @ 2016-03-23 14:09 UTC (permalink / raw
  To: Olsson Rikard (RBSN/ESW1)
  Cc: yocto@yoctoproject.org, meta-virtualization@yoctoproject.org

(CCing meta-virtualization)

On Wed, Mar 23, 2016 at 8:46 AM, Olsson Rikard (RBSN/ESW1)
<Rikard.Olsson@se.bosch.com> wrote:
> Hello Yocto Members,
>
> I am looking into xen-hypervisor and have downloaded the meta-virtualization layer and updated bblayers.conf to pull in the layer. However I am unsure how to proceed:
> 1) How do I configure the meta-virtualization to use Xen hypervisor

You will need to add "xen" to your DISTRO_FEATURES to toggle on the
yocto kernel config fragment for xen support, as well as libvirt.

> 2) What target do I build/bb file do I build.
>
> I usually build either:
> bitbake core-image-minimal ==> Standard Linux for our HW board
> bitbake core-image-XXX--XXX ==> Standard Linux for our HW board + additional application layers.
>
> I am however unable to understand the connection between the images I currently build and the Xen-hypervisor, for example:
> recipes-extended/libvirt/libvirt_1.2.19.bb:# xen-minimal config
> recipes-extended/images/kvm-image-minimal.bb:DESCRIPTION = "A minimal kvm image"
> recipes-extended/images/xen-image-minimal.bb:DESCRIPTION = "A minimal xen image"
> What are above bitbake recipes, should I build xen-image-minimal.bb instead of core-image-minimal or....
>

This largely depends on what you are trying to do, your BSP, if you
are using the yocto kernel, etc..  Building xen-image-minimal should
provide a bootable dom0 out of the box (at least for typical x86-64)
that can start/stop VMs using xl toolstack (not libvirt).

Adding xen support is largely about getting the appropriate kernel
bits enabled (meta-virtualization provides a config fragment).  For
dom0, you will also need to configure your bootloader to boot xen, and
then you will need to add the packages you desire (qemu, libvirt,
xen-base, etc.) to your specific image.

Good luck!


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-03-23 14:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-23 12:46 Question about XEN-hypervisor and Yocto build system Olsson Rikard (RBSN/ESW1)
2016-03-23 13:40 ` M. Gregory
2016-03-23 14:09 ` Chris Patterson
2016-03-23 14:09   ` [yocto] " Chris Patterson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.