From: Molle Bestefich Subject: Re: No network device problem in -testing Date: Mon, 6 Feb 2006 18:58:56 +0100 Message-ID: <62b0912f0602060958w4928b96lbe27de05307dbced@mail.gmail.com> References: <5d7aca950602022143m1f9b9e75y178228dcac53fbc7@mail.gmail.com> <5d7aca950602030551w3c2184afvbc90c0a8cfc289c7@mail.gmail.com> <20060203220011.GB3075@localhost.localdomain> <62b0912f0602060454o5d8b6e64l977143baa91c569f@mail.gmail.com> <20060206175048.GC3180@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20060206175048.GC3180@localhost.localdomain> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ewan Mellor Cc: Xen-devel List-Id: xen-devel@lists.xenproject.org Ewan Mellor wrote: > Those ip, netmask, and gateway parameters specify options for the Linux > kernel command line. With these, you can persuade the guest to use the > specified details, without having the guest preconfigured, but in > general it's not a good way to work -- you can't specify addresses for > multiple interfaces this way, in particular. The vif options specify > the details given to the hotplug scripts when the devices come up. > These details are used to configure DHCP, routing, or whatever inside > dom 0 -- they don't necessarily affect the guest. You still need the > guest to configure itself appropriately. > > The best thing to do is probably to use vif=3D, have a DHCP server inside > dom0 (dhcp=3Dyes in a couple of places) and then preconfigure the guest t= o > expect their addresses via DHCP. Ah. Super, thanks. The above belongs in the Wiki if you ask me. If it's ok with you, I'll add it when I get some free time. > The kernel command line options are probably most useful for developers, = who > just want to get things up and running quickly without configuring their = guest > properly. Personally I use it to assign domU IP addresses. But then again, that's because I've never stumbled upon any well-written documentation that told me not to - I just googled and found something named 'ip=3D' which looked right, so I used that. If you feel like doing more newbie tutoring (sorry....), another question: It feels reasonable that Xen moves the physical ethernet interface to peth0 and creates a virtual eth0 interface in dom0 - after all, dom0 is a virtual machine, it should have virtual interfaces that I can play/do funky things with. But: 1.) Why doesn't Xen do the same for eth1 and upwards? 2.) Why doesn't Xen do this when using the non-bridged setup? Seems completely illogical to me. Plus the incoherency makes it really hard to write good documentation.