public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Guidance about CI
@ 2022-01-04 23:37 Boeuf, Sebastien
  2022-01-04 23:40 ` [edk2-devel] " Sean
  0 siblings, 1 reply; 9+ messages in thread
From: Boeuf, Sebastien @ 2022-01-04 23:37 UTC (permalink / raw)
  To: devel@edk2.groups.io, Yao, Jiewen, kraxel@redhat.com

Hi folks,

I was wondering if you would be okay with me adding Cloud Hypervisor to the EDK2 CI.
The idea would be to run a quick/simple test that Cloud Hypervisor can properly boot
with the OVMF binary built from source on every pull request.

And if you think that makes sense, any guidance on how to achieve that the right way?

Thanks,
Sebastien
---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris, 
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


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

* Re: [edk2-devel] Guidance about CI
  2022-01-04 23:37 Guidance about CI Boeuf, Sebastien
@ 2022-01-04 23:40 ` Sean
  2022-01-05 13:32   ` Boeuf, Sebastien
       [not found]   ` <16C7631DD6C10C6A.32496@groups.io>
  0 siblings, 2 replies; 9+ messages in thread
From: Sean @ 2022-01-04 23:40 UTC (permalink / raw)
  To: devel, sebastien.boeuf, Yao, Jiewen, kraxel@redhat.com

can cloud hypervisor boot on any of the free CI providers?
If you look at ArmVirt, Ovmf, and even the emulatorpkg those all do 
similar things.  They are able to run on azure dev-ops cloud agents.

If that is the case following a pattern from defined here would lead to 
the easiest and most consistent path.

https://github.com/tianocore/edk2/tree/master/ArmVirtPkg/PlatformCI
https://github.com/tianocore/edk2/tree/master/EmulatorPkg/PlatformCI
https://github.com/tianocore/edk2/tree/master/OvmfPkg/PlatformCI

Thanks
Sean


On 1/4/2022 3:37 PM, Boeuf, Sebastien wrote:
> ight way?

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

* Re: [edk2-devel] Guidance about CI
  2022-01-04 23:40 ` [edk2-devel] " Sean
@ 2022-01-05 13:32   ` Boeuf, Sebastien
       [not found]   ` <16C7631DD6C10C6A.32496@groups.io>
  1 sibling, 0 replies; 9+ messages in thread
From: Boeuf, Sebastien @ 2022-01-05 13:32 UTC (permalink / raw)
  To: devel@edk2.groups.io, Yao, Jiewen, kraxel@redhat.com,
	spbrogan@outlook.com

[-- Attachment #1: Type: text/plain, Size: 2061 bytes --]

Hi Sean,

Cloud Hypervisor can boot on Microsoft Azure VMs as this is what our project
relies on to validate every PR. And it should be able to boot on any other CI
providers.

I've been looking at https://github.com/tianocore/edk2/tree/master/OvmfPkg/PlatformCI
but I don't understand where the QEMU binary is built (I will need to do the same
for Cloud Hypervisor so that it's available on the machine), and I can't find the actual
tests that are being run there.

Thanks,
Sebastien
________________________________
From: devel@edk2.groups.io <devel@edk2.groups.io> on behalf of Sean <spbrogan@outlook.com>
Sent: Wednesday, January 5, 2022 12:40 AM
To: devel@edk2.groups.io <devel@edk2.groups.io>; Boeuf, Sebastien <sebastien.boeuf@intel.com>; Yao, Jiewen <jiewen.yao@intel.com>; kraxel@redhat.com <kraxel@redhat.com>
Subject: Re: [edk2-devel] Guidance about CI

can cloud hypervisor boot on any of the free CI providers?
If you look at ArmVirt, Ovmf, and even the emulatorpkg those all do
similar things.  They are able to run on azure dev-ops cloud agents.

If that is the case following a pattern from defined here would lead to
the easiest and most consistent path.

https://github.com/tianocore/edk2/tree/master/ArmVirtPkg/PlatformCI
https://github.com/tianocore/edk2/tree/master/EmulatorPkg/PlatformCI
https://github.com/tianocore/edk2/tree/master/OvmfPkg/PlatformCI

Thanks
Sean


On 1/4/2022 3:37 PM, Boeuf, Sebastien wrote:
> ight way?





---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris, 
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

[-- Attachment #2: Type: text/html, Size: 4762 bytes --]

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

* Re: [edk2-devel] Guidance about CI
       [not found]   ` <16C7631DD6C10C6A.32496@groups.io>
@ 2022-01-05 13:44     ` Boeuf, Sebastien
  2022-01-05 16:55       ` Gerd Hoffmann
  0 siblings, 1 reply; 9+ messages in thread
From: Boeuf, Sebastien @ 2022-01-05 13:44 UTC (permalink / raw)
  To: devel@edk2.groups.io, Yao, Jiewen, kraxel@redhat.com,
	spbrogan@outlook.com, Boeuf, Sebastien

[-- Attachment #1: Type: text/plain, Size: 3268 bytes --]

Ah nevermind I found out QEMU was installed from packaging.

We don't have packages for Cloud Hypervisor, but we can download
a static binary from a specific release, do you think that would be
acceptable?

Thanks,
Sebastien
________________________________
From: devel@edk2.groups.io <devel@edk2.groups.io> on behalf of Boeuf, Sebastien <sebastien.boeuf@intel.com>
Sent: Wednesday, January 5, 2022 2:32 PM
To: devel@edk2.groups.io <devel@edk2.groups.io>; Yao, Jiewen <jiewen.yao@intel.com>; kraxel@redhat.com <kraxel@redhat.com>; spbrogan@outlook.com <spbrogan@outlook.com>
Subject: Re: [edk2-devel] Guidance about CI

Hi Sean,

Cloud Hypervisor can boot on Microsoft Azure VMs as this is what our project
relies on to validate every PR. And it should be able to boot on any other CI
providers.

I've been looking at https://github.com/tianocore/edk2/tree/master/OvmfPkg/PlatformCI
but I don't understand where the QEMU binary is built (I will need to do the same
for Cloud Hypervisor so that it's available on the machine), and I can't find the actual
tests that are being run there.

Thanks,
Sebastien
________________________________
From: devel@edk2.groups.io <devel@edk2.groups.io> on behalf of Sean <spbrogan@outlook.com>
Sent: Wednesday, January 5, 2022 12:40 AM
To: devel@edk2.groups.io <devel@edk2.groups.io>; Boeuf, Sebastien <sebastien.boeuf@intel.com>; Yao, Jiewen <jiewen.yao@intel.com>; kraxel@redhat.com <kraxel@redhat.com>
Subject: Re: [edk2-devel] Guidance about CI

can cloud hypervisor boot on any of the free CI providers?
If you look at ArmVirt, Ovmf, and even the emulatorpkg those all do
similar things.  They are able to run on azure dev-ops cloud agents.

If that is the case following a pattern from defined here would lead to
the easiest and most consistent path.

https://github.com/tianocore/edk2/tree/master/ArmVirtPkg/PlatformCI
https://github.com/tianocore/edk2/tree/master/EmulatorPkg/PlatformCI
https://github.com/tianocore/edk2/tree/master/OvmfPkg/PlatformCI

Thanks
Sean


On 1/4/2022 3:37 PM, Boeuf, Sebastien wrote:
> ight way?






---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris,
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris, 
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

[-- Attachment #2: Type: text/html, Size: 7178 bytes --]

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

* Re: [edk2-devel] Guidance about CI
  2022-01-05 13:44     ` Boeuf, Sebastien
@ 2022-01-05 16:55       ` Gerd Hoffmann
  2022-01-06 14:21         ` Boeuf, Sebastien
  0 siblings, 1 reply; 9+ messages in thread
From: Gerd Hoffmann @ 2022-01-05 16:55 UTC (permalink / raw)
  To: devel, sebastien.boeuf; +Cc: Yao, Jiewen, spbrogan@outlook.com

On Wed, Jan 05, 2022 at 01:44:01PM +0000, Boeuf, Sebastien wrote:
> Ah nevermind I found out QEMU was installed from packaging.

On ubuntu.

> We don't have packages for Cloud Hypervisor, but we can download
> a static binary from a specific release, do you think that would be
> acceptable?

As far I know the same happens for qemu on windows,
so that should be fine.

take care,
  Gerd


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

* Re: [edk2-devel] Guidance about CI
  2022-01-05 16:55       ` Gerd Hoffmann
@ 2022-01-06 14:21         ` Boeuf, Sebastien
  2022-01-07 12:17           ` Gerd Hoffmann
  0 siblings, 1 reply; 9+ messages in thread
From: Boeuf, Sebastien @ 2022-01-06 14:21 UTC (permalink / raw)
  To: kraxel@redhat.com, devel@edk2.groups.io; +Cc: Yao, Jiewen, spbrogan@outlook.com

On Wed, 2022-01-05 at 17:55 +0100, kraxel@redhat.com wrote:
> On Wed, Jan 05, 2022 at 01:44:01PM +0000, Boeuf, Sebastien wrote:
> > Ah nevermind I found out QEMU was installed from packaging.
> 
> On ubuntu.
> 
> > We don't have packages for Cloud Hypervisor, but we can download
> > a static binary from a specific release, do you think that would be
> > acceptable?
> 
> As far I know the same happens for qemu on windows,
> so that should be fine.

Cool!

BTW, about microvm, I saw that you're skipping QEMU, so does that mean
you're not *really* testing that OVMF works with microvm, or am I
missing something?

Thanks,
Sebastien

> 
> take care,
>   Gerd
> 

---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris, 
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

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

* Re: [edk2-devel] Guidance about CI
  2022-01-06 14:21         ` Boeuf, Sebastien
@ 2022-01-07 12:17           ` Gerd Hoffmann
  2022-01-07 13:07             ` Boeuf, Sebastien
  2022-01-11 12:58             ` Boeuf, Sebastien
  0 siblings, 2 replies; 9+ messages in thread
From: Gerd Hoffmann @ 2022-01-07 12:17 UTC (permalink / raw)
  To: Boeuf, Sebastien; +Cc: devel@edk2.groups.io, Yao, Jiewen, spbrogan@outlook.com

On Thu, Jan 06, 2022 at 02:21:59PM +0000, Boeuf, Sebastien wrote:
> On Wed, 2022-01-05 at 17:55 +0100, kraxel@redhat.com wrote:
> > On Wed, Jan 05, 2022 at 01:44:01PM +0000, Boeuf, Sebastien wrote:
> > > Ah nevermind I found out QEMU was installed from packaging.
> > 
> > On ubuntu.
> > 
> > > We don't have packages for Cloud Hypervisor, but we can download
> > > a static binary from a specific release, do you think that would be
> > > acceptable?
> > 
> > As far I know the same happens for qemu on windows,
> > so that should be fine.
> 
> Cool!
> 
> BTW, about microvm, I saw that you're skipping QEMU, so does that mean
> you're not *really* testing that OVMF works with microvm, or am I
> missing something?

Correct, not tested right now.  The code needs some improvements, it's
not flexible enough, havn't found the time to do that yet.  Also have
to check whenever the qemu version shipped by ubuntu is new enough to
actually have microvm support ...

take care,
  Gerd


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

* Re: [edk2-devel] Guidance about CI
  2022-01-07 12:17           ` Gerd Hoffmann
@ 2022-01-07 13:07             ` Boeuf, Sebastien
  2022-01-11 12:58             ` Boeuf, Sebastien
  1 sibling, 0 replies; 9+ messages in thread
From: Boeuf, Sebastien @ 2022-01-07 13:07 UTC (permalink / raw)
  To: kraxel@redhat.com; +Cc: Yao, Jiewen, spbrogan@outlook.com, devel@edk2.groups.io

On Fri, 2022-01-07 at 13:17 +0100, kraxel@redhat.com wrote:
> On Thu, Jan 06, 2022 at 02:21:59PM +0000, Boeuf, Sebastien wrote:
> > On Wed, 2022-01-05 at 17:55 +0100, kraxel@redhat.com wrote:
> > > On Wed, Jan 05, 2022 at 01:44:01PM +0000, Boeuf, Sebastien wrote:
> > > > Ah nevermind I found out QEMU was installed from packaging.
> > > 
> > > On ubuntu.
> > > 
> > > > We don't have packages for Cloud Hypervisor, but we can
> > > > download
> > > > a static binary from a specific release, do you think that
> > > > would be
> > > > acceptable?
> > > 
> > > As far I know the same happens for qemu on windows,
> > > so that should be fine.
> > 
> > Cool!
> > 
> > BTW, about microvm, I saw that you're skipping QEMU, so does that
> > mean
> > you're not *really* testing that OVMF works with microvm, or am I
> > missing something?
> 
> Correct, not tested right now.  The code needs some improvements,
> it's
> not flexible enough, havn't found the time to do that yet.  Also have
> to check whenever the qemu version shipped by ubuntu is new enough to
> actually have microvm support ...

Okay thanks for your confirmation, that makes sense :)

> 
> take care,
>   Gerd
> 

---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris, 
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

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

* Re: [edk2-devel] Guidance about CI
  2022-01-07 12:17           ` Gerd Hoffmann
  2022-01-07 13:07             ` Boeuf, Sebastien
@ 2022-01-11 12:58             ` Boeuf, Sebastien
  1 sibling, 0 replies; 9+ messages in thread
From: Boeuf, Sebastien @ 2022-01-11 12:58 UTC (permalink / raw)
  To: kraxel@redhat.com; +Cc: Yao, Jiewen, spbrogan@outlook.com, devel@edk2.groups.io

Is the CI only relying on QEMU using TCG? I have some patches to run
the CI with Cloud Hypervisor but I got an error about /dev/kvm not
being available :/

Is there a certain type of machine used by the AzurePipelines that
would support nested virtualization?

Thanks,
Sebastien

On Fri, 2022-01-07 at 13:17 +0100, kraxel@redhat.com wrote:
> On Thu, Jan 06, 2022 at 02:21:59PM +0000, Boeuf, Sebastien wrote:
> > On Wed, 2022-01-05 at 17:55 +0100, kraxel@redhat.com wrote:
> > > On Wed, Jan 05, 2022 at 01:44:01PM +0000, Boeuf, Sebastien wrote:
> > > > Ah nevermind I found out QEMU was installed from packaging.
> > > 
> > > On ubuntu.
> > > 
> > > > We don't have packages for Cloud Hypervisor, but we can
> > > > download
> > > > a static binary from a specific release, do you think that
> > > > would be
> > > > acceptable?
> > > 
> > > As far I know the same happens for qemu on windows,
> > > so that should be fine.
> > 
> > Cool!
> > 
> > BTW, about microvm, I saw that you're skipping QEMU, so does that
> > mean
> > you're not *really* testing that OVMF works with microvm, or am I
> > missing something?
> 
> Correct, not tested right now.  The code needs some improvements,
> it's
> not flexible enough, havn't found the time to do that yet.  Also have
> to check whenever the qemu version shipped by ubuntu is new enough to
> actually have microvm support ...
> 
> take care,
>   Gerd
> 

---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris, 
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

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

end of thread, other threads:[~2022-01-11 12:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-04 23:37 Guidance about CI Boeuf, Sebastien
2022-01-04 23:40 ` [edk2-devel] " Sean
2022-01-05 13:32   ` Boeuf, Sebastien
     [not found]   ` <16C7631DD6C10C6A.32496@groups.io>
2022-01-05 13:44     ` Boeuf, Sebastien
2022-01-05 16:55       ` Gerd Hoffmann
2022-01-06 14:21         ` Boeuf, Sebastien
2022-01-07 12:17           ` Gerd Hoffmann
2022-01-07 13:07             ` Boeuf, Sebastien
2022-01-11 12:58             ` Boeuf, Sebastien

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox