Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jun 2009 06:14:50 +0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        marco di sano <marcodisano@gmail.com>
Cc:        freebsd-xen@freebsd.org
Subject:   Re: freebsd error
Message-ID:  <d763ac660906111514q37254522o15cc9a8937b7d99a@mail.gmail.com>
In-Reply-To: <1a5985cf0906111052s7fc129ceje3869cf52504a9e4@mail.gmail.com>
References:  <1a5985cf0906111052s7fc129ceje3869cf52504a9e4@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
G'day,


2009/6/12 marco di sano <marcodisano@gmail.com>:

> bootloader =3D '/usr/lib/xen-3.0.3-1/bin/pygrub'

I haven't tried it under 3.0.3.

> disk =3D
> ['phy:/dev/VolGroup00/FreeBsdRoot,sda3,w','phy:/dev/VolGroup00/FreeBsdSwa=
p,sda3,w']

It tries extracting a config and kernel image from the first disk, just FYI=
.


> =A0File "/usr/lib/xen-3.0.3-1/bin/pygrub", line 338, in read_config
> =A0 =A0raise RuntimeError, "Unable to read filesystem"

pygrub uses a bunch of C library things in a filesystem library to
read the file(s) from the disk image. It also reads the partition
table via magic byte offsets and direct reads from python code. It is
all a bit evil :)

I'm not sure whether 3.0.3 came with the pygrub modules to read UFS.
It doesn't do this from kernel space - it does this in 100% userland
code. It may be possible to backport the UFS module for pygrub if
needed.

> Someone can tell me the correct way to use the frebsd image and boot it?
> Is there something to change in my configuration file?

You may need to extract the kernel image + command line options and
boot the kernel using the non-pygrub method. Sorry.



adrian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d763ac660906111514q37254522o15cc9a8937b7d99a>