Hi all, Somebody have tried to install SLES 10 SP1 as a para-virtualized guest under a RHEL 5.1 xenhost?? I have do it a clean install of SLES 10 SP1, but when installation is finished and I want to start sles guest, pygrub returns me this error: xm create /etc/xen/slesips Using config file "/etc/xen/slesips". Traceback (most recent call last): File "/usr/bin/pygrub", line 651, in ? fs = fsimage.open(file, get_fs_offset(file)) File "/usr/bin/pygrub", line 117, in get_fs_offset offset += get_solaris_slice(file, offset) File "/usr/bin/pygrub", line 80, in get_solaris_slice raise RuntimeError, "Invalid disklabel magic" RuntimeError: Invalid disklabel magic No handlers could be found for logger "xend" Error: Boot loader didn''t return any data! Usage: xm create <ConfigFile> [options] [vars] My cfg file for sles guest is: kernel = "/boot/vmlinuz-2.6.16.46-0.12-xenpae" ramdisk = "/boot/initrd-2.6.16.46-0.12-xenpae" bootloader = "/usr/bin/pygrub" name = "Sles10" memory = "512" maxmem = "512" disk = [ ''phy:/dev/xvmvol/slesips01vol,xvda,w'' ] vif = [ ''mac=00:16:3e:55:ad:13, bridge=xenbr0'' ] vcpus = 1 on_reboot = ''restart'' on_crash = ''destroy'' sdl = 1 vnc = 0 Kernel version 2.6.16.46 is the default installed by sles ... Many thanks. -- CL Martinez carlopmart {at} gmail {d0t} com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2007-Dec-03 09:31 UTC
Re: [Xen-users] Sles 10 SP1 as a guest under rhel5.1
carlopmart wrote:> Hi all, > > Somebody have tried to install SLES 10 SP1 as a para-virtualized guest > under a RHEL 5.1 xenhost?? I have do it a clean install of SLES 10 > SP1, but when installation is finished and I want to start sles guest, > pygrub returns me this error: > > xm create /etc/xen/slesips > Using config file "/etc/xen/slesips". > Traceback (most recent call last): > File "/usr/bin/pygrub", line 651, in ? > fs = fsimage.open(file, get_fs_offset(file)) >> My cfg file for sles guest is: > > kernel = "/boot/vmlinuz-2.6.16.46-0.12-xenpae" > ramdisk = "/boot/initrd-2.6.16.46-0.12-xenpae" > bootloader = "/usr/bin/pygrub"You need either : - kernel and (optionally) a ramdisk line, OR - bootloader line on domU''s config file. Your cfg file has both, and (from the error log) pygrub is active. Depending on how you install your domU : - you should have /boot/grub/menu.lst on domU''s filesystem, in which case you should use grub and comment out the kernel and ramdisk line, OR - Copy SLES''s kernel and initrd to dom0 (in your config that will be /boot), and try comment out the bootloader line. Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
carlopmart
2007-Dec-03 11:21 UTC
Re: [Xen-users] Sles 10 SP1 as a guest under rhel5.1 (solved)
Fajar A. Nugraha wrote:> carlopmart wrote: >> Hi all, >> >> Somebody have tried to install SLES 10 SP1 as a para-virtualized guest >> under a RHEL 5.1 xenhost?? I have do it a clean install of SLES 10 >> SP1, but when installation is finished and I want to start sles guest, >> pygrub returns me this error: >> >> xm create /etc/xen/slesips >> Using config file "/etc/xen/slesips". >> Traceback (most recent call last): >> File "/usr/bin/pygrub", line 651, in ? >> fs = fsimage.open(file, get_fs_offset(file)) >> > >> My cfg file for sles guest is: >> >> kernel = "/boot/vmlinuz-2.6.16.46-0.12-xenpae" >> ramdisk = "/boot/initrd-2.6.16.46-0.12-xenpae" >> bootloader = "/usr/bin/pygrub" > > You need either : > - kernel and (optionally) a ramdisk line, OR > - bootloader line > on domU''s config file. Your cfg file has both, and (from the error log) > pygrub is active. > > Depending on how you install your domU : > - you should have /boot/grub/menu.lst on domU''s filesystem, in which > case you should use grub and comment out the kernel and ramdisk line, OR > - Copy SLES''s kernel and initrd to dom0 (in your config that will be > /boot), and try comment out the bootloader line. > > Regards, > > FajarThanks Fajar, but the problem was grub setup during installation .. Grub needs to be changed to "install on boot partition" ....> > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- CL Martinez carlopmart {at} gmail {d0t} com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2007-Dec-04 02:00 UTC
Re: [Xen-users] Sles 10 SP1 as a guest under rhel5.1 (solved)
carlopmart wrote:> Fajar A. Nugraha wrote: >> carlopmart wrote: >>> My cfg file for sles guest is: >>> >>> kernel = "/boot/vmlinuz-2.6.16.46-0.12-xenpae" >>> ramdisk = "/boot/initrd-2.6.16.46-0.12-xenpae" >>> bootloader = "/usr/bin/pygrub" >> >> You need either : >> - kernel and (optionally) a ramdisk line, OR >> - bootloader line >> on domU''s config file. Your cfg file has both, and (from the error log) >> pygrub is active. >>> > Thanks Fajar, but the problem was grub setup during installation .. > Grub needs to be changed to "install on boot partition" ....Wow. That''s new. I didn''t expect that. RHEL PV install seems to work just fine using default options. Thanks for the info. I''d still recommend you remove kernel and ramdisk from cfg file though, seeing as they''re not used anyway. Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nico Kadel-Garcia
2007-Dec-04 08:23 UTC
Re: [Xen-users] Sles 10 SP1 as a guest under rhel5.1 (solved)
Fajar A. Nugraha wrote:> carlopmart wrote: > >> Fajar A. Nugraha wrote: >> >>> carlopmart wrote: >>> >>>> My cfg file for sles guest is: >>>> >>>> kernel = "/boot/vmlinuz-2.6.16.46-0.12-xenpae" >>>> ramdisk = "/boot/initrd-2.6.16.46-0.12-xenpae" >>>> bootloader = "/usr/bin/pygrub" >>>> >>> You need either : >>> - kernel and (optionally) a ramdisk line, OR >>> - bootloader line >>> on domU''s config file. Your cfg file has both, and (from the error log) >>> pygrub is active. >>> >>> > > >> Thanks Fajar, but the problem was grub setup during installation .. >> Grub needs to be changed to "install on boot partition" .... >> > > Wow. That''s new. I didn''t expect that. RHEL PV install seems to work > just fine using default options. Thanks for the info. > > I''d still recommend you remove kernel and ramdisk from cfg file though, > seeing as they''re not used anyway. > > Regards, > > Fajar >\It''s also apparently not true. The grub installation for RHEL 5 DomU''s seems to operate quite happily on the /boot partition or on a / partition itself. Many of us do put the MBR on the start of the first partiton as a default, but it''s not strictly required. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
carlopmart
2007-Dec-04 09:23 UTC
Re: [Xen-users] Sles 10 SP1 as a guest under rhel5.1 (solved)
Nico Kadel-Garcia wrote:> Fajar A. Nugraha wrote: >> carlopmart wrote: >> >>> Fajar A. Nugraha wrote: >>> >>>> carlopmart wrote: >>>> >>>>> My cfg file for sles guest is: >>>>> >>>>> kernel = "/boot/vmlinuz-2.6.16.46-0.12-xenpae" >>>>> ramdisk = "/boot/initrd-2.6.16.46-0.12-xenpae" >>>>> bootloader = "/usr/bin/pygrub" >>>>> >>>> You need either : >>>> - kernel and (optionally) a ramdisk line, OR >>>> - bootloader line >>>> on domU''s config file. Your cfg file has both, and (from the error log) >>>> pygrub is active. >>>> >>>> >> >> >>> Thanks Fajar, but the problem was grub setup during installation .. >>> Grub needs to be changed to "install on boot partition" .... >>> >> >> Wow. That''s new. I didn''t expect that. RHEL PV install seems to work >> just fine using default options. Thanks for the info. >> >> I''d still recommend you remove kernel and ramdisk from cfg file though, >> seeing as they''re not used anyway. >> >> Regards, >> >> Fajar >> > \It''s also apparently not true. The grub installation for RHEL 5 DomU''s > seems to operate quite happily on the /boot partition or on a / > partition itself. > > Many of us do put the MBR on the start of the first partiton as a > default, but it''s not strictly required. >Niko, my problem was with sles domU grub setup , not with rhel5 grub setup.> _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- CL Martinez carlopmart {at} gmail {d0t} com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users