Skip to contentSkip to conversation

Crash w/ bios="ovmf"

DISCUSSION Jason Dickens 3 participants 4 messages Feb 22, 2017 – Feb 27, 2017

lore
Share & tools
lore
#0 lore raw

I'm trying to find a solution to an immediate VM crash which occurs by simply adding "bios='ovmf' to my configuration?

I started with a standard Ubuntu install which contained Xen 4.6.0 and had the crash. The VM works fine booting w/ SeaBIOS once the configuration line is removed. It also works fine with OVMF using just QEMU.

Then I was led to believe that i needed to rebuild Xen with --enable-ovmf , using the source from apt-get source, this proved to be difficult and ultimately I had to disable stub domains to get it to work. (in case, that is relevant)

Still I get the crash almost immediately after the VM is launched. With sdl=1 I can see the window flash up and disappear. I should mention that ultimately I plan to use a non-standard build of the OVMF kernel, but for now I'm happy to get it working with any one.

At this point, I have been studying the source to try and determine where things diverge. I find very little use of LIBXL_BIOS_TYPE_OVMF and can't find exactly where setting hvm.bios that even matters?

In any case, I would appreciate help on how to avoid the crash and/or understanding the Xen modifications for OVMF.

Jason

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#1 lore raw
Quoted 17 lines · Jason Dickens

I'm trying to find a solution to an immediate VM crash which occurs by simply adding "bios='ovmf' to my configuration?

I started with a standard Ubuntu install which contained Xen 4.6.0 and had the crash. The VM works fine booting w/ SeaBIOS once the configuration line is removed. It also works fine with OVMF using just QEMU.

Then I was led to believe that i needed to rebuild Xen with --enable-ovmf , using the source from apt-get source, this proved to be difficult and ultimately I had to disable stub domains to get it to work. (in case, that is relevant)

Still I get the crash almost immediately after the VM is launched. With sdl=1 I can see the window flash up and disappear.
I should mention that ultimately I plan to use a non-standard build of the OVMF kernel, but for now I'm happy to get it working with any one.

Quoted 7 lines

At this point, I have been studying the source to try and determine where things diverge. I find very little use of LIBXL_BIOS_TYPE_OVMF and can't find exactly where setting hvm.bios that even matters?

In any case, I would appreciate help on how to avoid the crash and/or understanding the Xen modifications for OVMF.

Because OVMF doesn't do regular releases, we ship a commit of it when we release a new version of Xen.

Are you comfortable with building Xen from the development branch? If you use 4.8 or our master branch, you should be able to provide an OVMF blob without rebuilding HVMloader every time.

Wei.

Quoted 8 lines

Jason

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#2 lore raw
In reply to Jason Dickens
Quoted 12 lines · Jason Dickens

I'm trying to find a solution to an immediate VM crash which occurs by simply adding "bios='ovmf' to my configuration?

I started with a standard Ubuntu install which contained Xen 4.6.0 and had the crash. The VM works fine booting w/ SeaBIOS once the configuration line is removed. It also works fine with OVMF using just QEMU.

Then I was led to believe that i needed to rebuild Xen with --enable-ovmf , using the source from apt-get source, this proved to be difficult and ultimately I had to disable stub domains to get it to work. (in case, that is relevant)

Quoted 4 lines

Still I get the crash almost immediately after the VM is launched. With sdl=1 I can see the window flash up and disappear.
I should mention that ultimately I plan to use a non-standard build of the OVMF kernel, but for now I'm happy to get it working with any one.

Can you try
pci_platform=0 in your guest config pleae?

Quoted 8 lines

At this point, I have been studying the source to try and determine where things diverge. I find very little use of LIBXL_BIOS_TYPE_OVMF and can't find exactly where setting hvm.bios that even matters?

In any case, I would appreciate help on how to avoid the crash and/or understanding the Xen modifications for OVMF.

Quoted 8 lines

Jason

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

author
#3 lore raw

This turned out to be a xen install problem. The default install location for the build was /usr/local but my system was using /usr. The root cause was hvmloader created by the new build was not actually the one being used.

Quoted 14 lines · Konrad Rzeszutek Wilk
Quoted 13 lines · Jason Dickens

I'm trying to find a solution to an immediate VM crash which occurs by simply adding "bios='ovmf' to my configuration?

I started with a standard Ubuntu install which contained Xen 4.6.0 and had the crash. The VM works fine booting w/ SeaBIOS once the configuration line is removed. It also works fine with OVMF using just QEMU.

Then I was led to believe that i needed to rebuild Xen with --enable-ovmf ,
using the source from apt-get source, this proved to be difficult and ultimately I had to disable stub domains to get it to work. (in case, that is relevant)

Quoted 24 lines
Quoted 4 lines

Still I get the crash almost immediately after the VM is launched. With sdl=1 I can see the window flash up and disappear.
I should mention that ultimately I plan to use a non-standard build of the OVMF kernel, but for now I'm happy to get it working with any one.

Can you try
pci_platform=0 in your guest config pleae?

Quoted 16 lines

At this point, I have been studying the source to try and determine where things diverge. I find very little use of LIBXL_BIOS_TYPE_OVMF and can't find exactly where setting hvm.bios that even matters?

In any case, I would appreciate help on how to avoid the crash and/or understanding the Xen modifications for OVMF.

Jason

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel