grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* PV-Grub2 works here but doesnt work their...
@ 2015-09-10 18:46 Shaun Reitan
  2016-01-22 12:58 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 2+ messages in thread
From: Shaun Reitan @ 2015-09-10 18:46 UTC (permalink / raw
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 1776 bytes --]

I posted this to the Xen Mailing Lists too but figured i should post 
here as well.

We are experiencing a odd issue after we built grub2 support.  The image 
we built works fine on some hosts and then just hangs on others.

I built grub2 as follows...
-------------
git clone http://git.savannah.gnu.org/cgit/grub.git
cd  grub
wget http://prgmr.com/~srn/grub2/xen-linux16.patch
patch -p1 < xen-linux16.patch
./autogen.sh
./configure --target=x86_64 --with-platform=xen --prefix=/opt/grub2
make
make install
export PATH=/opt/grub2/bin:/opt/grub2/sbin:$PATH

Next I built the image as follows...
---------------
cat > grub-bootstrap.cfg << EOF
normal (memdisk)/grub.cfg
EOF
cat > grub.cfg << EOF
for grubcfg in /boot/grub2/grub.cfg /boot/grub2/grub2.cfg 
/boot/grub/grub2.cfg /boot/grub/grub.cfg /grub2/grub2.cfg /grub/grub.cfg 
/etc/grub2.cfg /etc/grub.cfg ; do
    if search -s -f $grubcfg ; then
       echo "Reading (${root}$grubcfg"
       configfile $grubcfg
    fi
done
EOF
tar cf memdisk.tar grub.cfg
/opt/grub2/bin/grub-mkimage -O x86_64-xen -c grub-bootstrap.cfg -m 
memdisk.tar -o grub2-x86_64 /opt/grub2/lib/grub/x86_64-xen/*.mod

This works fine on some of our hosts, but then just seams to hang on 
others.  When starting the guest i see the following...

[root@devhostxxx ~]# xm create -c /home/username/vs.config
Using config file "/home/username/vs.config".
Started domain username (id=34)
                                  [root@devhostxxx ~]#

Then it just hangs from their.

These hosts are CentOS 6 using the CentOS-Xen RPMS. Hosts are running 
Xen version 4.4.1-8el6 and still using xend with xm commands


Any idea what may be going on here? Or how i should go about debugging 
this issue?

--
Shaun

[-- Attachment #2: Type: text/html, Size: 3657 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PV-Grub2 works here but doesnt work their...
  2015-09-10 18:46 PV-Grub2 works here but doesnt work their Shaun Reitan
@ 2016-01-22 12:58 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 0 replies; 2+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2016-01-22 12:58 UTC (permalink / raw
  To: The development of GNU GRUB

[-- Attachment #1: Type: text/plain, Size: 2166 bytes --]

On 10.09.2015 20:46, Shaun Reitan wrote:
> I posted this to the Xen Mailing Lists too but figured i should post
> here as well. 
>  
> We are experiencing a odd issue after we built grub2 support.  The image
> we built works fine on some hosts and then just hangs on others.
>  
> I built grub2 as follows...
> -------------
> git clone http://git.savannah.gnu.org/cgit/grub.git
> cd  grub
> wget http://prgmr.com/~srn/grub2/xen-linux16.patch
> patch -p1 < xen-linux16.patch
> ./autogen.sh
> ./configure --target=x86_64 --with-platform=xen --prefix=/opt/grub2
> make
> make install
> export PATH=/opt/grub2/bin:/opt/grub2/sbin:$PATH
>  
> Next I built the image as follows...
> ---------------
> cat > grub-bootstrap.cfg << EOF
> normal (memdisk)/grub.cfg
> EOF
> cat > grub.cfg << EOF
> for grubcfg in /boot/grub2/grub.cfg /boot/grub2/grub2.cfg
> /boot/grub/grub2.cfg /boot/grub/grub.cfg /grub2/grub2.cfg /grub/grub.cfg
> /etc/grub2.cfg /etc/grub.cfg ; do
>    if search -s -f $grubcfg ; then
>       echo "Reading (${root}$grubcfg"
>       configfile $grubcfg
>    fi
> done
> EOF
> tar cf memdisk.tar grub.cfg
> /opt/grub2/bin/grub-mkimage -O x86_64-xen -c grub-bootstrap.cfg -m
> memdisk.tar -o grub2-x86_64 /opt/grub2/lib/grub/x86_64-xen/*.mod
>  
> This works fine on some of our hosts, but then just seams to hang on
> others.  When starting the guest i see the following...
>  
> [root@devhostxxx ~]# xm create -c /home/username/vs.config
> Using config file "/home/username/vs.config".
> Started domain username (id=34)
>                                  [root@devhostxxx ~]#
>  
> Then it just hangs from their.
>  
Are you able to add echo's along the way and look at xen console?
> These hosts are CentOS 6 using the CentOS-Xen RPMS. Hosts are running
> Xen version 4.4.1-8el6 and still using xend with xm commands
>  
>  
> Any idea what may be going on here? Or how i should go about debugging
> this issue?
>  
> --
> Shaun
> 
> 
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
> 



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 213 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-22 12:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-10 18:46 PV-Grub2 works here but doesnt work their Shaun Reitan
2016-01-22 12:58 ` Vladimir 'φ-coder/phcoder' Serbinenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).