Hi, Having a problem getting a domu to boot correctly. When I enter xl create guest it boots straight into grubdom. If I enter the config location in grubdom t boots as expected. The location of the grub.cfg is the same in my domu config as what in entering but just will not work. Any ideas? Ian .
On Mon, 2012-05-21 at 18:57 +0100, Ian Tobin wrote:> Hi, > > Having a problem getting a domu to boot correctly. > > When I enter xl create guest it boots straight into grubdom. > > If I enter the config location in grubdom t boots as expected. > > The location of the grub.cfg is the same in my domu config as what in entering but just will not work.grub.cfg is the grub2 file, whereas pvgrub is currently grub1 (sometimes called grub legacy). Both the syntax and the location of the config file differs between the two versions of grub. I''m not sure if anyone is working on pvgrub2, I thought I''d heard a rumour of it. There is a tool, pv-grub-menu.lst, which has been proposed for Debian[0] which helps you create and manage a legacy style menu.lst. I think grub-legacy is also still in Debian, but you might need to explicitly install it rather than grub2. Ian. [0] http://bugs.debian.org/672104> > Any ideas? > > Ian > . > > > > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users
Ian, Sorry for the delay. Im using grub.cfg with a sym link to menu.lst, I don’t actually have grub installed on the domu. The domu will boot if I type the path to the grub.cfg or menu.lst but will not automatically. Thanks Ian -----Original Message----- From: Ian Campbell [mailto:Ian.Campbell@citrix.com] Sent: 22 May 2012 09:47 To: Ian Tobin Cc: xen-users@lists.xen.org Subject: Re: [Xen-users] Pvgrub on Debian dom0 On Mon, 2012-05-21 at 18:57 +0100, Ian Tobin wrote:> Hi, > > Having a problem getting a domu to boot correctly. > > When I enter xl create guest it boots straight into grubdom. > > If I enter the config location in grubdom t boots as expected. > > The location of the grub.cfg is the same in my domu config as what in entering but just will not work.grub.cfg is the grub2 file, whereas pvgrub is currently grub1 (sometimes called grub legacy). Both the syntax and the location of the config file differs between the two versions of grub. I'm not sure if anyone is working on pvgrub2, I thought I'd heard a rumour of it. There is a tool, pv-grub-menu.lst, which has been proposed for Debian[0] which helps you create and manage a legacy style menu.lst. I think grub-legacy is also still in Debian, but you might need to explicitly install it rather than grub2. Ian. [0] http://bugs.debian.org/672104> > Any ideas? > > Ian > . > > > > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Thu, Jun 7, 2012 at 4:53 PM, Ian Tobin <itobin@tidyhosts.com> wrote:> Ian, > > Sorry for the delay. > > Im using grub.cfg with a sym link to menu.lst, I don’t actually have grub installed on the domu. > > The domu will boot if I type the path to the grub.cfg or menu.lst but will not automatically. > > Thanks > > IanWhat does your domU config file look like? Have you had success with pv-grub on other environments (e.g xm vs xl, different xen versions, etc)? You need to specify the config file location on domU config file, e.g; kernel = "/usr/lib/xen/boot/pv-grub-x86_64.gz" extra = "(hd0,0)/grub/menu.lst" This is from my environment on RHEL5 with xm, so it might be different on your setup. Worth to try. -- Fajar
On Thu, 2012-06-07 at 10:53 +0100, Ian Tobin wrote:> Ian, > > Sorry for the delay. > > Im using grub.cfg with a sym link to menu.lst, I don’t actually have grub installed on the domu.Don't grub.cfg and menu.lst have different syntax? I would have thought that symlink would confuse something somewhere...> The domu will boot if I type the path to the grub.cfg or menu.lst but will not automatically.What is the path which you have to type? What is the path within the guest? Are there any mount points (e.g. /boot) along that path? Ian.> > Thanks > > Ian > > > > -----Original Message----- > From: Ian Campbell [mailto:Ian.Campbell@citrix.com] > Sent: 22 May 2012 09:47 > To: Ian Tobin > Cc: xen-users@lists.xen.org > Subject: Re: [Xen-users] Pvgrub on Debian dom0 > > On Mon, 2012-05-21 at 18:57 +0100, Ian Tobin wrote: > > Hi, > > > > Having a problem getting a domu to boot correctly. > > > > When I enter xl create guest it boots straight into grubdom. > > > > If I enter the config location in grubdom t boots as expected. > > > > The location of the grub.cfg is the same in my domu config as what in entering but just will not work. > > grub.cfg is the grub2 file, whereas pvgrub is currently grub1 (sometimes called grub legacy). Both the syntax and the location of the config file differs between the two versions of grub. > > I'm not sure if anyone is working on pvgrub2, I thought I'd heard a rumour of it. > > There is a tool, pv-grub-menu.lst, which has been proposed for Debian[0] which helps you create and manage a legacy style menu.lst. > > I think grub-legacy is also still in Debian, but you might need to explicitly install it rather than grub2. > > Ian. > > [0] http://bugs.debian.org/672104 > > > > > > Any ideas? > > > > Ian > > . > > > > > > > > > > > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xen.org > > http://lists.xen.org/xen-users > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Ian, Fajar, This is my config # -*- mode: python; -*- kernel = "/usr/lib/xen/boot/pv-grub-x86_32.gz" memory = 512 name = "testlinux" vif = ['bridge=xenbr0' ] disk = ['phy:/dev/XEN/testlinux,xvda,w','phy:/dev/XEN/testlinuxswap,xvdb,w'] ip="172.20.45.10" netmask="255.255.0.0" gateway="172.20.0.1" hostname = "testlinux" extra = "(hd0)/boot/grub/menu.lst" vcpus = 1 -----Original Message----- From: Ian Campbell [mailto:Ian.Campbell@citrix.com] Sent: 07 June 2012 12:27 To: Ian Tobin Cc: xen-users@lists.xen.org Subject: RE: [Xen-users] Pvgrub on Debian dom0 On Thu, 2012-06-07 at 10:53 +0100, Ian Tobin wrote:> Ian, > > Sorry for the delay. > > Im using grub.cfg with a sym link to menu.lst, I don’t actually have grub installed on the domu.Don't grub.cfg and menu.lst have different syntax? I would have thought that symlink would confuse something somewhere...> The domu will boot if I type the path to the grub.cfg or menu.lst but will not automatically.What is the path which you have to type? What is the path within the guest? Are there any mount points (e.g. /boot) along that path? Ian.> > Thanks > > Ian > > > > -----Original Message----- > From: Ian Campbell [mailto:Ian.Campbell@citrix.com] > Sent: 22 May 2012 09:47 > To: Ian Tobin > Cc: xen-users@lists.xen.org > Subject: Re: [Xen-users] Pvgrub on Debian dom0 > > On Mon, 2012-05-21 at 18:57 +0100, Ian Tobin wrote: > > Hi, > > > > Having a problem getting a domu to boot correctly. > > > > When I enter xl create guest it boots straight into grubdom. > > > > If I enter the config location in grubdom t boots as expected. > > > > The location of the grub.cfg is the same in my domu config as what in entering but just will not work. > > grub.cfg is the grub2 file, whereas pvgrub is currently grub1 (sometimes called grub legacy). Both the syntax and the location of the config file differs between the two versions of grub. > > I'm not sure if anyone is working on pvgrub2, I thought I'd heard a rumour of it. > > There is a tool, pv-grub-menu.lst, which has been proposed for Debian[0] which helps you create and manage a legacy style menu.lst. > > I think grub-legacy is also still in Debian, but you might need to explicitly install it rather than grub2. > > Ian. > > [0] http://bugs.debian.org/672104 > > > > > > Any ideas? > > > > Ian > > . > > > > > > > > > > > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xen.org > > http://lists.xen.org/xen-users > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Thu, Jun 7, 2012 at 8:03 PM, Ian Tobin <itobin@tidyhosts.com> wrote:> kernel = "/usr/lib/xen/boot/pv-grub-x86_32.gz" > extra = "(hd0)/boot/grub/menu.lst"Does the part in "extra" also the same one you in pvgrub''s prompt when booting?> ip="172.20.45.10" > netmask="255.255.0.0" > gateway="172.20.0.1" > hostname = "testlinux"IIRC these settings won''t work with pvgrub. In fact, it will prevent pvgrub from working. Something to do with parameter ordering to the kernel, since those lines basically pass extra parameters to the kernel as well. Try REMOVING those lines, and see if it works. -- Fajar