All of lore.kernel.org
 help / color / mirror / Atom feed
* xen 2.0.1, 2.4.27, 2.6.9, non-bridge
@ 2005-01-01  5:32 Adam Heath
  2005-01-01  5:57 ` Derrik Pates
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: Adam Heath @ 2005-01-01  5:32 UTC (permalink / raw)
  To: xen-devel

We use nfsroot for all our xen-based machines.  Using pxegrub, and dhcp.

For xen 1.0 and 1.2, the built-in bridge configured by xen worked well for us,
and network had no problems.

For 2.0, the way the bridge is configured breaks the existing networking, upon
which nfsroot is running.

So, I've been attempting to configure the xenU instances by other means.

I've done similiar things with uml, by using proxy_arp and ip_forwarding.  I
turn on both options in /procy/sys(proxy_arp on all).  I then modified
/etc/xen/scripts/vif-bridge, to hard-code a few settings.  The vifX.X
interface is given a netmask of /32, a host-route for the ip address of the
domain(which I have hard-coded for now).

However, with *both* 2.4.27 *and* 2.6.9, I am getting kernel panics.  I have
not run the oops on 2.4 thru ksymoops.  The built in oops decode logic in
2.6.9 shows a null pointer in the arp_send routine.

Is there any low-level problem in xen itself to cause this?  I can give more
info if needed(got a serial console on it).

As a side node, it'd be nice if the network backend allowed for a pointopoint
topology, or the existing method.  Ie, I'd like it switchable.



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

^ permalink raw reply	[flat|nested] 22+ messages in thread
* RE: xen 2.0.1, 2.4.27, 2.6.9, non-bridge
@ 2005-01-01 12:22 James Harper
  2005-01-01 21:19 ` Adam Heath
  0 siblings, 1 reply; 22+ messages in thread
From: James Harper @ 2005-01-01 12:22 UTC (permalink / raw)
  To: Adam Heath, Derrik Pates; +Cc: xen-devel

> Configuring a bridge is a multi-step process.  At one point during the
> process, normal communication is severed over eth0, while the bridge
> itself is
> not yet fully functional.
> At this point, the root filesystem is no longer available, and the
machine
> falls over.

I wonder if you could do this:

1. mount a tmpfs somewhere
2. copy in enough libs etc to make #4 work
3. chroot to the new tmpfs
4. set up the bridge and transfer the address across
5. leave the chroot environment

You wouldn't want anything much else to be running at this point though
so it would have to be done pretty early in the boot process.

> I'd prefer to not do it with an initrd, as that's an added step, and
extra
> complexity.

I've set up an initrd that boots dom0 over iSCSI, which suffers from the
same problem as nfs only more so as iSCSI is connection based and
downing eth0 cuts the connections. My initrd sets up the first bridge
(my setup has 3 bridges) from the outset so the network disappearing
never becomes an issue.

Under iSCSI an initrd is the only option but for nfs it would be nifty
to be able to do without.

If anyone's interested in the script to create the initrd (debian - not
sure how it would translate to another dist) I can post it here,
shouldn't be too hard to modify it to boot from nfs... in fact my home
pc's boot off nfs using almost the same setup.

James



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

^ permalink raw reply	[flat|nested] 22+ messages in thread
* RE: xen 2.0.1, 2.4.27, 2.6.9, non-bridge
@ 2005-01-05  0:28 Ian Pratt
  2005-01-05  0:42 ` Adam Heath
  2005-01-05  1:13 ` Jody Belka
  0 siblings, 2 replies; 22+ messages in thread
From: Ian Pratt @ 2005-01-05  0:28 UTC (permalink / raw)
  To: Adam Heath, xen-devel

> As a side node, it'd be nice if the network backend allowed 
> for a pointopoint topology, or the existing method.  Ie, I'd 
> like it switchable.

Using routing rather than bridging works just fine. It's arguable that
this would be a better default. (Other than the need for a DHCP relay).

We should probably include alternatives to /etc/xen/scripts/vif-bridge
and /etc/xen/scripts/network that demonstrate how to set this up.

Basically, in /etc/xen/scripts/vif-router : 

 enable proxy_arp on vifX
 give vifX some (/32) IP addr e.g. 10.10.10.vifX
 ip route add <ip_dom1> dev vifX

Your /etc/xen/scripts/network-routing script just needs to enable ip
forwarding (if it isn't already).

[It may be possible to configure the VIF as a point-to-point interface,
and hence avoid the need for the 10.x address at all. If anyone has this
working I'd be interested to hear.]

If anyone has any decent example scripts I'd like to see them documented
and go into the repo.

Cheers,
Ian


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

^ permalink raw reply	[flat|nested] 22+ messages in thread
* RE: xen 2.0.1, 2.4.27, 2.6.9, non-bridge
@ 2005-01-05  1:12 Ian Pratt
  2005-01-05  6:18 ` Adam Heath
  0 siblings, 1 reply; 22+ messages in thread
From: Ian Pratt @ 2005-01-05  1:12 UTC (permalink / raw)
  To: Adam Heath; +Cc: xen-devel

> Note, that one must *always* specify the bridge parameter in 
> the config, and
> you can't specifiy additional parameters to be passed to this 
> script.  That's
> why I was forced to use the $domain.

Can't you replace the bridge-name parameter with the hostname or IP
address of the domain? (I haven't tried this). Adding a means of passing
extra parameters shouldn't be too hard anyhow.
 
> If one wanted to use a dhcp relay on dom0, then the mac 
> addresses of the
> vifX.X interfaces *must* be unique.  With the above setup, 
> that is not a
> requirement.

Do you use DHCP to assign (static) addresses in your configuration, or
configure the address on the domain's command line? 

Assignment of dynamic DHCP addresses is always going to be messy, but
fortunately its not a very useful thing to support. 

Ian


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

^ permalink raw reply	[flat|nested] 22+ messages in thread
* RE: xen 2.0.1, 2.4.27, 2.6.9, non-bridge
@ 2005-01-05  1:30 Ian Pratt
  2005-01-05  2:06 ` Jody Belka
  0 siblings, 1 reply; 22+ messages in thread
From: Ian Pratt @ 2005-01-05  1:30 UTC (permalink / raw)
  To: Jody Belka, xen-devel

> I use a mix of routing and bridging myself.
> 
> I treat dom0 as a router connected to a switch. eth0, my physical nic,
> is on subnet A, and xen-br0 (which i create at boot, so i disable the
> xend network script) is on subnet B. I then just enable ip forwarding,
> and hook new domains up to xen-br0 as normal. Works really well.

Interesting. Any particular reason why you do this? Using iptables
netfilter I guess you could probably get the same effect with just a
bridge.

Since the hosts main IP addresses are presumably on subnet A, I don't
see why the bridge couldn't be brought up by the network script -- you
just don't want to do the IP address transfer, so remove the
transfer_addresses and transfer_routes lines.

Cheers,
Ian


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2005-01-05  6:18 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-01  5:32 xen 2.0.1, 2.4.27, 2.6.9, non-bridge Adam Heath
2005-01-01  5:57 ` Derrik Pates
2005-01-01  6:53   ` Adam Heath
2005-01-01  7:51     ` Derrik Pates
2005-01-01 21:13       ` Adam Heath
2005-01-01 10:43 ` Keir Fraser
2005-01-01 16:09 ` Ronald G. Minnich
2005-01-01 21:20   ` Adam Heath
2005-01-01 23:29 ` Adam Heath
2005-01-01 23:40   ` Adam Heath
2005-01-02  2:47     ` Adam Heath
2005-01-02  3:52       ` Adam Heath
2005-01-02 11:06         ` Keir Fraser
  -- strict thread matches above, loose matches on Subject: below --
2005-01-01 12:22 James Harper
2005-01-01 21:19 ` Adam Heath
2005-01-05  0:28 Ian Pratt
2005-01-05  0:42 ` Adam Heath
2005-01-05  1:13 ` Jody Belka
2005-01-05  1:12 Ian Pratt
2005-01-05  6:18 ` Adam Heath
2005-01-05  1:30 Ian Pratt
2005-01-05  2:06 ` Jody Belka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.