pygrub is failing to boot centos domu on Debian lenny dom0

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    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.

Leave a comment

6 Comments.

  1. On Fri, May 21, 2010 at 04:10:55PM +0530, Tapas Mishra wrote: ^^^^^^^^

    Shouldn’t that be pygrub?

  2. I do not understand why it happens that Debian’s user experience is more than frustrating. I am finally wiping out all Debian installations from my server. Assuming that I am not good at Linux or Xen or what ever it is I will switch to some other commercial Linux distribution. If you try to do any thing on Debian in a production environment its just useless.

    On Fri, May 21, 2010 at 8:32 PM, Tapas Mishra wrote:

  3. As a general rule, not being able to solve a problem leads to frustation. However, the conclusion you reach at is not in any way following but a subjective *logic*.

    BTW, you actually checked the permissions on that bootloader, didn’t you?

    Good luck anyway.

  4. Chris Bannister

    Please don’t top post!

    On Sat, May 22, 2010 at 06:56:01PM +0530, Tapas Mishra wrote:

    I believe you have misunderstood me. I mean that instead of *typing* the errors out by long hand copy the error using the mouse and past it into your email/bug report. You could instead use the “script” command. This eliminates the problems which typing out errors can cause.

    “Religion is excellent stuff for keeping common people quiet.”

  5. Hello Tapas,

    In case you are still reading this list, you might want to try this¹ tool. It is used to bootstrap RPM-based distros in Debian+Xen. CentOS 5 is listed as supported. Maybe you reconsider your decision, and give Squeeze a try? You could even try latest xen version² :)

    ¹ http://xen-tools.noone.org/software/rinse/ ² http://bits.xensource.com/oss-xen/release/4.0.0/xen-4.0.0.tar.gz

    Regards.

    P.S. I Cc-ed you, just to be sure you get this, sorry O:-)

  6. Yes I am reading.I had tried that tool also before posting this question here.

Leave a Reply