WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] pygrub is failing to boot centos domu on Debian lenny do

To: Tapas Mishra <mightydreams@xxxxxxxxx>
Subject: Re: [Xen-users] pygrub is failing to boot centos domu on Debian lenny dom0
From: David Markey <admin@xxxxxxxxxxx>
Date: Sun, 23 May 2010 19:31:20 +0100
Cc: Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sun, 23 May 2010 11:35:59 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTilQiJQMArKHWTdZcowizlghWCGVMg3DSeinJuE8@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTimIPr4pFLWr-I_9XpSuxT0bjak8aEKJEzm-G5Xq@xxxxxxxxxxxxxx> <AANLkTik66ThPiFSdBV5nDfoXYTZiiMHilQtQmd3NIIAY@xxxxxxxxxxxxxx> <AANLkTim-Pi86KwGZDoxhP6LgAJ4HEIHpw64qPqGZvuhg@xxxxxxxxxxxxxx> <AANLkTimQCDYGJQATPEKLyLbP-REevP9wYf5J03wA1nC0@xxxxxxxxxxxxxx> <AANLkTinuOoYX2XP6aMB1C1ZxcAys_DanaP22MgxI6LPE@xxxxxxxxxxxxxx> <AANLkTilhRc0UcqXaVrB73kxpe_ISR3fMyspFKZZzlgrN@xxxxxxxxxxxxxx> <AANLkTiky0pMK7UOaUeH-iw4SQ0ToZGnapus_Vxb6NKpi@xxxxxxxxxxxxxx> <AANLkTikIepahRSWOhxO7KrcgDDyMVDHr25HHicFAsmI4@xxxxxxxxxxxxxx> <AANLkTilQiJQMArKHWTdZcowizlghWCGVMg3DSeinJuE8@xxxxxxxxxxxxxx>
Reply-to: admin@xxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Create it.

On 22 May 2010 04:11, Tapas Mishra <mightydreams@xxxxxxxxx> wrote:
No I checked on Dom0 it does not exist.

On Sat, May 22, 2010 at 2:39 AM, David Markey <admin@xxxxxxxxxxx> wrote:
> Does /var/run/xend/boot/ exist?
>
> On 21 May 2010 20:12, Tapas Mishra <mightydreams@xxxxxxxxx> wrote:
>>
>> On DomU the grub.conf
>> is
>> default=0
>> timeout=5
>> splashimage=(hd0,0)/boot/grub/splash.xpm.gz
>> hiddenmenu
>> title CentOS
>>     root (hd0,0)
>>     kernel /boot/vmlinuz-2.6.18-194.e15 ro root=LABEL=/
>>     initrd /boot/initrd-2.6.18-194.e15.img
>>
>>
>> and menu.lst on Dom0 which is Debian is
>>
>> title           Xen 3.2-1-amd64 / Debian GNU/Linux, kernel
>> 2.6.26-2-xen-amd64
>> root            (hd0,0)
>> kernel          /boot/xen-3.2-1-amd64.gz
>> module          /boot/vmlinuz-2.6.26-2-xen-amd64 root=/dev/sda1 ro
>> console=tty0
>> module          /boot/initrd.img-2.6.26-2-xen-amd64
>>
>>
>>
>> On Fri, May 21, 2010 at 6:44 PM, David Markey <admin@xxxxxxxxxxx> wrote:
>> > grub.conf(menu.lst) within the DomU
>> >
>> > On 21 May 2010 13:23, Tapas Mishra <mightydreams@xxxxxxxxx> wrote:
>> >>
>> >> Please let me know you are referring to Dom0 grub.conf or VM which is
>> >> in QEMU its grub.conf.
>> >>
>> >> On Fri, May 21, 2010 at 5:38 PM, David Markey <admin@xxxxxxxxxxx>
>> >> wrote:
>> >> > What does the grub.cfg look like? Paste it here,
>> >> >
>> >> > On 21 May 2010 12:42, Tapas Mishra <mightydreams@xxxxxxxxx> wrote:
>> >> >>
>> >> >> No there is no separate /boot
>> >> >>
>> >> >> On Fri, May 21, 2010 at 4:40 PM, David Markey <admin@xxxxxxxxxxx>
>> >> >> wrote:
>> >> >> > What's the filesystem layout in your domu? Is there
>> >> >> > a separate /boot?
>> >> >> >
>> >> >> > On 21 May 2010 11:29, Tapas Mishra <mightydreams@xxxxxxxxx> wrote:
>> >> >> >>
>> >> >> >> I am trying to run a CentOS DomU on Debian Dom0 .
>> >> >> >> I created a VM using QEMU and it boots fine.(Except network
>> >> >> >> connectivity)
>> >> >> >>
>> >> >> >> Now for Debian Dom0
>> >> >> >> I created the new_centOS.cfg
>> >> >> >> added following
>> >> >> >>
>> >> >> >> bootloader = "/usr/lib/xen-3.2-1/bin/pygryb"  (there was no
>> >> >> >> softlink
>> >> >> >> from /usr/lib/xen-3.2-1/bin/pygryb to /usr/bin)
>> >> >> >> boot = "c"
>> >> >> >>
>> >> >> >> full file uploaded here
>> >> >> >> http://pastebin.com/daeGSSpS
>> >> >> >>
>> >> >> >> and then tried to boot
>> >> >> >> got an error
>> >> >> >>
>> >> >> >> openworld:/etc/xen# xm create new_centOS.cfg
>> >> >> >> Using config file "./new_centOS.cfg".
>> >> >> >> Error: Bootloader isn't executable
>> >> >> >> about the above error on this link
>> >> >> >>
>> >> >> >>
>> >> >> >> http://wiki.debian.org/Xen#A.22Error.3ABootloaderisn.27texecutable.22
>> >> >> >> some information was but it did not helped.As what they were
>> >> >> >> saying
>> >> >> >> I
>> >> >> >> had already done.
>> >> >> >>
>> >> >> >> Then checked this link
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> http://strugglers.net/~andy/blog/2008/01/20/red-hat-based-linux-under-xen-from-debian-etch/
>> >> >> >>
>> >> >> >> I did
>> >> >> >> usr/lib/xen-3.0.3-1/bin/pygrub /dev/virtualization/centos5-disk
>> >> >> >> xvda
>> >> >> >>
>> >> >> >> I get a brub screen .
>> >> >> >> A snapshot for the pygrub booting can be seen here
>> >> >> >> http://farm5.static.flickr.com/4006/4626021351_d1a6f9c014_b.jpg
>> >> >> >>
>> >> >> >> But it fails to boot.
>> >> >> >>
>> >> >> >> Giving following message.
>> >> >> >>
>> >> >> >>
>> >> >> >> Traceback (most recent call last):
>> >> >> >>  File "./pygrub", line 657, in <module>
>> >> >> >>    dir="/var/run/xend/boot")
>> >> >> >>  File "/usr/lib/python2.5/tempfile.py", line 302, in mkstemp
>> >> >> >>    return _mkstemp_inner(dir, prefix, suffix, flags)
>> >> >> >>  File "/usr/lib/python2.5/tempfile.py", line 236, in
>> >> >> >> _mkstemp_inner
>> >> >> >>    fd = _os.open(file, flags, 0600)
>> >> >> >> OSError: [Errno 2] No such file or directory:
>> >> >> >> '/var/run/xend/boot/boot_kernel.je5fbt'
>> >> >> >>
>> >> >> >> I searched this but it did not gave me a single search result
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> http://www.google.co.in/search?sourceid=chrome&client=ubuntu&channel=cs&ie=UTF-8&q=OSError:+[Errno+2]+No+such+file+or+directory:+'/var/run/xend/boot/boot_kernel.je5fbt'
>> >> >> >>
>> >> >> >> what can I check next ?
>> >> >> >> Vm is booting fine with QEMU.
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> --
>> >> >> >>  Tapas Mishra
>> >> >> >> +91 8971248477
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> --
>> >> >> >> Tapas
>> >> >> >>
>> >> >> >> _______________________________________________
>> >> >> >> Xen-users mailing list
>> >> >> >> Xen-users@xxxxxxxxxxxxxxxxxxx
>> >> >> >> http://lists.xensource.com/xen-users
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Tapas
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Tapas
>> >
>> >
>>
>>
>>
>> --
>> Tapas
>
>



--
Tapas

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users