Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236380 - app-emulation/xen-tools-3.3.0 does not install pv-grub
Summary: app-emulation/xen-tools-3.3.0 does not install pv-grub
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Xen Devs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-01 18:49 UTC by Rambaldi
Modified: 2011-10-04 14:21 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
work in progress ebuild for pvgrub support (xen-tools-3.3.0.ebuild,8.18 KB, text/plain)
2009-04-02 18:27 UTC, Rambaldi
Details
app-emulation/xen-tools-3.4.0-r2 (xen-tools-3.4.0-r2.ebuild,7.83 KB, text/plain)
2009-07-14 02:38 UTC, Peter Große
Details
xen-tools-3.4.0-r2.ebuild (xen-tools-3.4.0-r2.ebuild,7.85 KB, text/plain)
2009-07-17 02:02 UTC, Peter Große
Details
app-emulation/xen-tools-3.3.1-r1 (xen-tools-3.3.1-r1.ebuild,8.01 KB, text/plain)
2009-07-17 02:05 UTC, Peter Große
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rambaldi 2008-09-01 18:49:23 UTC
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
Comment 1 Wolfram Schlich (RETIRED) gentoo-dev 2008-10-07 17:08:43 UTC
ping
Comment 2 Maurice Volaski 2009-03-28 06:38:57 UTC
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.
Comment 3 Rambaldi 2009-04-02 18:27:06 UTC
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.
Comment 4 Peter Große 2009-07-14 02:38:29 UTC
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.
Comment 5 Peter Große 2009-07-17 02:02:27 UTC
Created attachment 198242 [details]
xen-tools-3.4.0-r2.ebuild

fixed for compiling on amd64
Comment 6 Peter Große 2009-07-17 02:05:49 UTC
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)
Comment 7 Nathan March 2010-06-22 19:15:17 UTC
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)
> 

Comment 8 Peter Große 2010-06-23 15:28:10 UTC
> 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.
Comment 9 David Sperling 2010-12-26 09:31:02 UTC
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,

Comment 10 Alexey Shvetsov archtester gentoo-dev 2011-03-26 11:39:45 UTC
Xen 4.1 in tree. Please test with it and reopen if it doesnt work
Comment 11 Rambaldi 2011-03-27 16:17:38 UTC
After installing xen-tools-4.1.0 the support for pv-grub is still missing.
Comment 12 Ian Delaney (RETIRED) gentoo-dev 2011-10-04 14:21:51 UTC
pv-grub works in 4.1.1 and has been tested.
Fixed in the tree.