Mark Pryor
2015-Sep-14 05:49 UTC
[CentOS-virt] adding xen support to grub2 got segfault running grub2-mkimage
There is some interest lately in making a self-contained grub2 boot image - call it pvgrub2, used for booting paravirtual domU in xen where a grub2 config is installed. First attempt------------------ I first tried using the grub2*.src.rpm from the C7 vault. I configured as shown belowhttps://blog.xenproject.org/2015/01/07/using-grub-2-as-a-bootloader-for-xen-pv-guests/ for headers, I used xen-devel, xen-libs, xen-licenses from a recent build I didhttp://107.185.144.55/xen/cent7/dom0/RPMS/stable-4.5/mock/ this gave a segfault from grub2-mkimage with a cmdline like/usr/bin/grub2-mkimage? -O x86_64-xen?? -C auto? -d /usr/lib/grub/x86_64-xen -c ./grub-bootstrap.cfg???? -m ./memdisk.tar???? -o ./grub2-x86_64-xen.bin -v? ext2 fat file font fshelp gzio halt hashsum help legacycfg linux loadenv loopback part_dvh part_gpt part_msdos part_plan part_sun xfs xnu_uuid xnu_uuid_test xzio the image would finish if I cut down the module list to about 8 or less modules. This is not enough for a useful image . Second Attempt----------------In the same build env, I started with the git clone (see link). Now when running grub-mkimage I included all the modules in/usr/lib/grub/x86_64-xen/ and the image formed without error and works as expected as a xen bootloader. The only difference in the two builds is the size of grubX-mkimage: one is stripped and the other not.?Using the official grub2 C7 packages failed and a rogue build from git worked. regards,PryMar56 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos-virt/attachments/20150914/28c00a63/attachment-0002.html>
George Dunlap
2015-Sep-15 09:56 UTC
[CentOS-virt] adding xen support to grub2 got segfault running grub2-mkimage
FYI, your mail provider (yahoo.com) has asked all mail providers to treat any mail that doesn't come directly from their servers as spam -- this includes mail from mailing lists. As a result a large number of people will never see mail sent to any mailing list from this address, since the message will end up in their spam folder. You might consider either complaining to your mail provider to get them to change their policy, or switching mail providers when sending to mailing lists. -George On Mon, Sep 14, 2015 at 6:49 AM, Mark Pryor <tlviewer at yahoo.com> wrote:> There is some interest lately in making a self-contained grub2 boot image - > call it pvgrub2, used for booting paravirtual domU in xen where a grub2 > config is installed. > > First attempt > ------------------ > I first tried using the grub2*.src.rpm from the C7 vault. > > I configured as shown below > https://blog.xenproject.org/2015/01/07/using-grub-2-as-a-bootloader-for-xen-pv-guests/ > > for headers, I used xen-devel, xen-libs, xen-licenses from a recent build I > did > http://107.185.144.55/xen/cent7/dom0/RPMS/stable-4.5/mock/ > > this gave a segfault from grub2-mkimage with a cmdline like > /usr/bin/grub2-mkimage -O x86_64-xen -C auto -d /usr/lib/grub/x86_64-xen > -c ./grub-bootstrap.cfg -m ./memdisk.tar -o ./grub2-x86_64-xen.bin > -v ext2 fat file font fshelp gzio halt hashsum help legacycfg linux loadenv > loopback part_dvh part_gpt part_msdos part_plan part_sun xfs xnu_uuid > xnu_uuid_test xzio > > the image would finish if I cut down the module list to about 8 or less > modules. This is not enough for a useful image . > > Second Attempt > ---------------- > In the same build env, I started with the git clone (see link). Now when > running grub-mkimage I included all the modules in > /usr/lib/grub/x86_64-xen/ and the image formed without error and works as > expected as a xen bootloader. > > The only difference in the two builds is the size of grubX-mkimage: one is > stripped and the other not. > Using the official grub2 C7 packages failed and a rogue build from git > worked. > > regards, > PryMar56 > > > > > > > _______________________________________________ > CentOS-virt mailing list > CentOS-virt at centos.org > https://lists.centos.org/mailman/listinfo/centos-virt >
Mark Pryor
2015-Sep-17 02:37 UTC
[CentOS-virt] adding xen support to grub2 got segfault running grub2-mkimage
http://107.185.144.55/xen/cent7/grub2/ I have properly packaged a split off of xen support in grub2 for Centos 7. No more segfaults. I have not seen anyone attempt to package this starting with the official C7 SRPM from the vaults. On Sunday, September 13, 2015 10:50 PM, Mark Pryor <tlviewer at yahoo.com> wrote: There is some interest lately in making a self-contained grub2 boot image - call it pvgrub2, used for booting paravirtual domU in xen where a grub2 config is installed. First attempt------------------ I first tried using the grub2*.src.rpm from the C7 vault. I configured as shown belowhttps://blog.xenproject.org/2015/01/07/using-grub-2-as-a-bootloader-for-xen-pv-guests/ for headers, I used xen-devel, xen-libs, xen-licenses from a recent build I didhttp://107.185.144.55/xen/cent7/dom0/RPMS/stable-4.5/mock/ this gave a segfault from grub2-mkimage with a cmdline like/usr/bin/grub2-mkimage? -O x86_64-xen?? -C auto? -d /usr/lib/grub/x86_64-xen -c ./grub-bootstrap.cfg???? -m ./memdisk.tar???? -o ./grub2-x86_64-xen.bin -v? ext2 fat file font fshelp gzio halt hashsum help legacycfg linux loadenv loopback part_dvh part_gpt part_msdos part_plan part_sun xfs xnu_uuid xnu_uuid_test xzio the image would finish if I cut down the module list to about 8 or less modules. This is not enough for a useful image . Second Attempt----------------In the same build env, I started with the git clone (see link). Now when running grub-mkimage I included all the modules in/usr/lib/grub/x86_64-xen/ and the image formed without error and works as expected as a xen bootloader. The only difference in the two builds is the size of grubX-mkimage: one is stripped and the other not.?Using the official grub2 C7 packages failed and a rogue build from git worked. regards,PryMar56 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos-virt/attachments/20150917/11243d41/attachment-0002.html>