(pv)?grub and PVHv2
Hi,
Is there any method to boot PVHv2 domain using a kernel fetched from that domain's disk image, _without_ mounting it in dom0? Something like pvgrub was for PV.
Signature · 5 lines
Best Regards, Marek Marczykowski-Górecki Invisible Things Lab A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 5 lines · Marek Marczykowski-Górecki
Hi,
Is there any method to boot PVHv2 domain using a kernel fetched from that domain's disk image, _without_ mounting it in dom0? Something like pvgrub was for PV.
Hello,
Anthony (Cced) is working on an OVMF port, so it can be used as firmware for PVHv2 guests.
I cannot seem to be able to find the original cover-letter of that patch series, this is the best I could find:
https://lists.01.org/pipermail/edk2-devel/2017-January/006148.html
Anthony will hopefully be able to provide more info on this.
Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 9 lines · Roger Pau Monné
Quoted 5 lines · Marek Marczykowski-Górecki
Hi,
Is there any method to boot PVHv2 domain using a kernel fetched from that domain's disk image, _without_ mounting it in dom0? Something like pvgrub was for PV.
Hello,
Quoted 7 lines
Anthony (Cced) is working on an OVMF port, so it can be used as firmware for PVHv2 guests.
I cannot seem to be able to find the original cover-letter of that patch series, this is the best I could find:
https://lists.01.org/pipermail/edk2-devel/2017-January/006148.html
Here for the cover-letter:
https://lists.xenproject.org/archives/html/xen-devel/2016-12/msg00953.html
But that a UEFI firmware, so I guess the guest would need UEFI support backed into the disk image.
Quoted 3 lines
Anthony will hopefully be able to provide more info on this.
Roger.
Signature · 6 lines
Anthony PERARD _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 13 lines · Anthony PERARD
Quoted 12 lines · Roger Pau Monné
Quoted 5 lines · Marek Marczykowski-Górecki
Hi,
Is there any method to boot PVHv2 domain using a kernel fetched from that domain's disk image, _without_ mounting it in dom0? Something like pvgrub was for PV.
Hello,
Anthony (Cced) is working on an OVMF port, so it can be used as firmware for PVHv2 guests.
Quoted 7 lines
Quoted 4 lines
I cannot seem to be able to find the original cover-letter of that patch series, this is the best I could find:
https://lists.01.org/pipermail/edk2-devel/2017-January/006148.html
Here for the cover-letter:
https://lists.xenproject.org/archives/html/xen-devel/2016-12/msg00953.html
Thanks!
Quoted 2 lines
But that a UEFI firmware, so I guess the guest would need UEFI support backed into the disk image.
That's totally ok. I assume it should point at linux.efi, not grub.efi, right?
Signature · 5 lines
Best Regards, Marek Marczykowski-Górecki Invisible Things Lab A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 11 lines · Roger Pau Monné
Quoted 5 lines · Marek Marczykowski-Górecki
Hi,
Is there any method to boot PVHv2 domain using a kernel fetched from that domain's disk image, _without_ mounting it in dom0? Something like pvgrub was for PV.
Hello,
Anthony (Cced) is working on an OVMF port, so it can be used as firmware for PVHv2 guests.
I think in theory it shouldn't be too hard to port the pvgrub2 code to boot into PVH, since it already boots in PV, right?
Is this something we should try to encourage, or do you think it would be better to route everyone through EFI?
-George
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 9 lines · George Dunlap
Quoted 8 lines · Roger Pau Monné
Quoted 5 lines · Marek Marczykowski-Górecki
Hi,
Is there any method to boot PVHv2 domain using a kernel fetched from that domain's disk image, _without_ mounting it in dom0? Something like pvgrub was for PV.
Hello,
Quoted 7 lines
Quoted 2 lines
Anthony (Cced) is working on an OVMF port, so it can be used as firmware for PVHv2 guests.
I think in theory it shouldn't be too hard to port the pvgrub2 code to boot into PVH, since it already boots in PV, right?
Is this something we should try to encourage, or do you think it would be better to route everyone through EFI?
Even a PVH pvgrub still suffers the a priori problem which makes booting PV guests extremely difficult. You don't know ahead-of-time which bootloader the guest is using without peering at its disks, which opens a massive attack surface in dom0.
Using things like EFI allows any compatible OS to function, not just ones which use grub.
~Andrew
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 18 lines · Andrew Cooper
Quoted 9 lines · George Dunlap
Quoted 8 lines · Roger Pau Monné
Quoted 5 lines · Marek Marczykowski-Górecki
Hi,
Is there any method to boot PVHv2 domain using a kernel fetched from that domain's disk image, _without_ mounting it in dom0? Something like pvgrub was for PV.
Hello,
Quoted 7 lines
Quoted 2 lines
Anthony (Cced) is working on an OVMF port, so it can be used as firmware for PVHv2 guests.
I think in theory it shouldn't be too hard to port the pvgrub2 code to boot into PVH, since it already boots in PV, right?
Is this something we should try to encourage, or do you think it would be better to route everyone through EFI?
Quoted 7 lines
Even a PVH pvgrub still suffers the a priori problem which makes booting PV guests extremely difficult. You don't know ahead-of-time which bootloader the guest is using without peering at its disks, which opens a massive attack surface in dom0.
Using things like EFI allows any compatible OS to function, not just ones which use grub.
I wasn't suggesting loading the grub bootloader off the disk image; I was suggesting using a fixed pvgrub supplied by the host. That's what happens for PV guests using pvgrub at the moment.
Using pvgrub allows any grub-compatible OS to function; using EFI allows any EFI-compatible OS to function. There are many which would be one but not the other. (But I suppose, there would not be many that were both PVH compatible and not EFI compatible.)
-George
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 19 lines
Quoted 1 line
Quoted 1 line · On 05.06.17 at 14:08, <[email protected]> wrote:
Quoted 9 lines · George Dunlap
Quoted 8 lines · Roger Pau Monné
Quoted 5 lines · Marek Marczykowski-Górecki
Hi,
Is there any method to boot PVHv2 domain using a kernel fetched from that domain's disk image, _without_ mounting it in dom0? Something like pvgrub was for PV.
Hello,
Quoted 7 lines
Quoted 2 lines
Anthony (Cced) is working on an OVMF port, so it can be used as firmware for PVHv2 guests.
I think in theory it shouldn't be too hard to port the pvgrub2 code to boot into PVH, since it already boots in PV, right?
Is this something we should try to encourage, or do you think it would be better to route everyone through EFI?
Quoted 7 lines
Even a PVH pvgrub still suffers the a priori problem which makes booting PV guests extremely difficult. You don't know ahead-of-time which bootloader the guest is using without peering at its disks, which opens a massive attack surface in dom0.
Using things like EFI allows any compatible OS to function, not just ones which use grub.
This is certainly valid to say when considering only 64-bit OSes, but as soon as you look at a mix of 32- and 64-bit ones there are complications again resulting from possibly mixed bitness between EFI and OS.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 10 lines · George Dunlap
Quoted 9 lines · Roger Pau Monné
Quoted 5 lines · Marek Marczykowski-Górecki
Hi,
Is there any method to boot PVHv2 domain using a kernel fetched from that domain's disk image, _without_ mounting it in dom0? Something like pvgrub was for PV.
Hello,
Quoted 8 lines
Quoted 2 lines
Anthony (Cced) is working on an OVMF port, so it can be used as firmware for PVHv2 guests.
I think in theory it shouldn't be too hard to port the pvgrub2 code to boot into PVH, since it already boots in PV, right?
Is this something we should try to encourage, or do you think it would be better to route everyone through EFI?
For Qubes OS I think EFI is good enough here. Any system supporting PVHv2 also support EFI (right?), so it shouldn't limit anything.
Signature · 5 lines
Best Regards, Marek Marczykowski-Górecki Invisible Things Lab A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel