Thanks Tomáš,

Actually I hit "Send" too quickly. Are you experiencing the issue after
VM reboot or even after shutdown? Because NVRAM is kept between reboots
and is removed only after VM shutdown.

It happens after shutdown and reboot. The VM just goes into a weird state with "Guest hasn't initialised the display (yet)" error.
If I create another VM with the same configuration and use the same boot disk it works fine.

So, if it's not NVRAM, I am not sure what could it be which stays with VM but is not a disk.

Thanks,
shantur

On Mon, Mar 15, 2021 at 3:47 PM Tomáš Golembiovský <tgolembi@redhat.com> wrote:
On Mon, Mar 15, 2021 at 04:43:20PM +0100, Tomáš Golembiovský wrote:
> On Mon, Mar 15, 2021 at 01:13:10PM +0000, Shantur Rathore wrote:
> > Hi all,
> >
> > I am doing some testing with GPU passthrough to VMs and in some cases the
> > OVMF stops booting after a GPU passthrough.
> > I have figured out that it's related to some state stored in NVRAM by OVMF
> > and as soon as I create another VM with the same disks it starts booting up.
> >
> > I believe oVirt saves the NVRAM state.
>
> No it isn't. Or, better said, it wasn't. Storing of NVRAM is a new
> feature in 4.4.5 and it will be enabled only for VMs with Secure Boot.
>
> So whatever you're experiencing is probably caused by something else.

Actually I hit "Send" too quickly. Are you experiencing the issue after
VM reboot or even after shutdown? Because NVRAM is kept between reboots
and is removed only after VM shutdown.

    Tomas

>
> >  Is there a way to clear NVRAM for a VM without deleting it?
>
> This is not part of the feature introduced in 4.4.5. But it would make
> sense to have it if we later extend the NVRAM storing to all VMs with
> UEFI. So despite what I wrote above it would be worth opening a feature
> request bug.
>
>     Tomas
>
> >
> > Regards,
> > Shantur
>
> > _______________________________________________
> > Users mailing list -- users@ovirt.org
> > To unsubscribe send an email to users-leave@ovirt.org
> > Privacy Statement: https://www.ovirt.org/privacy-policy.html
> > oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
> > List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/GJ4AQHJ6SIAT7ML526SSO7IKRTY2BHCQ/
>
>
> --
> Tomáš Golembiovský <tgolembi@redhat.com>

--
Tomáš Golembiovský <tgolembi@redhat.com>