Subject: Re: rc.d script for starting Xen domains
To: Johnny C. Lam <jlam@pkgsrc.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-xen
Date: 10/04/2005 00:05:54
On Mon, Oct 03, 2005 at 08:15:55PM +0000, Johnny C. Lam wrote:
> [...]
> Also, the how-to goes over the routed-networking setup, while the
> scripts that come with the xentools20 package support the
> bridged-networking setup out-of-the-box, which isn't so good.  I'm
> slowly reading through the Python code to see how the info in the
> xenconfig.sxp file is used, as it seems there should be a way to use
> either the routed- or bridged- networking setups depending on what
> you set in the guest domain config file, similar to the disk setup.

Note that I don't think the NetBSD package should go as far as
xentools do on linux, where creating a domain will create the bridge
interface. It's the responsibility of the domain0 administrator
to pre-create the bridge interfaces and add the physical interfaces it wants
to it (remember that anyone that can access ports 8000-8002 can create a
domain using the config file he wants).
Given this, it should be easy to do this (and has already been done, in
fact, abusing the bridge= parameter to pass either IP informations, or
the name of the bridge interface depending on what you want to do), without
changing the python scripts.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--