Subject: Re: Basic questions -> Basic answers.
To: Christian Limpach <chris@pin.lu>
From: Juan RP <juan@xtraeme.unixbsd.org>
List: port-xen
Date: 04/27/2004 02:19:36
--Signature=_Tue__27_Apr_2004_02_19_36_+0200_UwfKbsiD.NCw.2vJ
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

On Tue, 27 Apr 2004 01:57:31 +0200
"Christian Limpach" <chris@pin.lu> wrote:

> The tools are part of the Xen source package.  I've already prepared a pkgsrc
> package.  But there's one problem with the tools, they need some additional
> features from the kernel which I haven't comitted yet since the way I chose
> to export the features to userland requires extensions to kernfs.  The Linux
> kernel exports these features through nodes in /proc.  It would be possible
> to create regular devices but that would then require creating additional
> /dev entries which makes it more difficult to just give NetBSD/Xen a try if
> you have already NetBSD/i386 installed.
> 
> The pkgsrc packages is here:
> http://lola.pin.lu/netbsd/xen/xentools12-040426.tgz
> A patch to add the missing kernel bits is here:
> http://lola.pin.lu/netbsd/xen/dom0-040426.patch

That's really great! :-)
 
> 	o How to build a kernel?
> 
> Do the usual config/make depend/make:
> - change to sys/arch/xen/conf
> - config GENERIC
> - cd ../compile/GENERIC
> - make depend && make
> 
> 	o How to build xen12load
> 
> Run make in sys/arch/xen/stand/xen12load
> 
> 	o How to setup grub
> 
> - install grub from pkgsrc
> - create a /grub/menu.lst file like this:
> 
> ============================================================
> default 0
> timeout 5
> 
> root    (hd0,3,a)
> 
> title   NetBSD
>         kernel  --type=netbsd /netbsd
> 
> title   NetBSD via chain
>         rootnoverify (hd0,3)
>         chainloader +1
>         boot
> 
> title   Xen / NetBSD
>         kernel  /grub/xen-1.2.gz dom0_mem=65536
>         module  /grub/xen12load
>         module  /grub/xen12netbsd
> ============================================================
> 
> ``root (hd0,3,a)'' selects grub's root filesystem.  ``(hd0,3,a)'' refers
> to the ``a'' disklabel-partition in the 4th fdisk partition on the 1st
> harddisk.  The 1st entry loads NetBSD/i386 directly from grub.  This
> doesn't seem to always work for me, the kernel won't find the root
> device and grub doesn't setup the symbol table correctly.  The 2nd entry
> chainloads the NetBSD boot sector from the fdisk partition where NetBSD
> is installed.  The 3rd entry loads NetBSD/Xen.

I'll try it now with the new iso9660 patch for grub, so I'll be able to
boot NetBSD/Xen via cdrom.

BTW thank you for all your work in the NetBSD/Xen port, you rock!

-- 
	Juan RP <juan@xtraeme.unixbsd.org>

--Signature=_Tue__27_Apr_2004_02_19_36_+0200_UwfKbsiD.NCw.2vJ
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAjacbypkLYVDran0RAoSHAKCGgb85b9kdpfarQqYzDZJIZhcGXQCeICmC
3loegqZTZaBdxb1sSYxY+e8=
=1+2w
-----END PGP SIGNATURE-----

--Signature=_Tue__27_Apr_2004_02_19_36_+0200_UwfKbsiD.NCw.2vJ--