Xen 3.3.0 introduced pv-grub, a more secure replacement for pygrub. The current ebuild does not install pv-grub. Reproducible: Always Steps to Reproduce: 1. emerge xen-tools 2. create a domU based on /etc/xen/xmexample.pv-grub 3. boot the new domU Actual Results: xen # xm create /etc/xen/xmexample.pv-grub Using config file "/etc/xen/xmexample.pv-grub". Error: Kernel image does not exist: /usr/lib/xen/boot/pv-grub.gz Expected Results: Using config file "/etc/xen/xmexample.pv-grub". Started domain ExampleDomain
ping
From a post at http://forums.gentoo.org/viewtopic-t-709908-postdays-0-postorder-asc-highlight-pvgrub-start-25.html I had a similar problem with the stubdom tools not being built, I emailed Robert Buchholz who maintains the ebuild and he explained that the build script downloads files in the build phase and that causes problems, so stubdom and pv-grub support is disabled in the ebuild. I say this is a bug, not an enhancement! I'm also not buying that this situation has yet to be encountered in portage and no general solution worked out. In any case, it seems that the ebuild should be doing the downloading and the Makefile edited to present it with the downloaded stuff.
Created attachment 187114 [details] work in progress ebuild for pvgrub support this ebuild uses the 'gentoo' way to download the needed components. It fails however with a gcc error. I tried to fix this but have thus far failed in doing so.
Created attachment 197864 [details] app-emulation/xen-tools-3.4.0-r2 Attached my attempt to build xen-tools with pvgrub support. This ebuild uses downloaded files in $DESTDIR instead of wget, but it's still a hack.
Created attachment 198242 [details] xen-tools-3.4.0-r2.ebuild fixed for compiling on amd64
Created attachment 198243 [details] app-emulation/xen-tools-3.3.1-r1 patched ebuild for xen-tools-3.3.1 note: requires xen-tools-3.3.1-udevinfo.patch (see bug #236819)
This is still an issue in xen-tools-4.0.0. pygrub should not be getting included due to security issues and this patch seems to work fine. Can this please get addressed? (In reply to comment #6) > Created an attachment (id=198243) [details] > app-emulation/xen-tools-3.3.1-r1 > > patched ebuild for xen-tools-3.3.1 > > note: requires xen-tools-3.3.1-udevinfo.patch (see bug #236819) >
> Can this please get addressed? I got tired of patching the xen-tools ebuild, so I wrote ebuilds for pv-grub only. They can be found in our overlay: http://subversion.fem.tu-ilmenau.de/repository/fem-overlay/trunk/ in app-emulation/xen-pvgrub. We are using pvgrub on productive servers for some time now and didn't have any problems worth noting. Tested with Xen 3.3, 3.4 and 4.0.
Added a pvgrub howto using Peter Grobe's overlay: http://forums.gentoo.org/viewtopic-t-857650-highlight-pvgrub.html Thanks Peter for the fine overlay. Works great! Cheers,
Xen 4.1 in tree. Please test with it and reopen if it doesnt work
After installing xen-tools-4.1.0 the support for pv-grub is still missing.
pv-grub works in 4.1.1 and has been tested. Fixed in the tree.