9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Richard Miller <9fans@hamnavoe.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Networking problem with Plan 9 + Xen
Date: Sat, 12 May 2007 14:14:26 +0100	[thread overview]
Message-ID: <655fa09db37070807cb0ba5c4d2033d1@hamnavoe.com> (raw)
In-Reply-To: <13426df10705111601pe8bb57at6a98c0843e4d602b@mail.gmail.com>

Ron says -

> I prefer the nat way we do things. Aki and I set things up so when you
> create the domain, it "just happens".

Not to start a xen configuration war here, but bridging and nat each
have different advantages.  If xen puts your virtual Plan 9 server
behind a nat, how do you access it from other machines on your network
or from the outside internet?

Without hacking on the standard xen scripts at all, my bridged
configuration also "just happens".

> This is useful because the way xen works, it gives you a different
> veth every time, so you can't easily stick with a fixed IP/MAC.

You can define a fixed ethernet address in the guest domain config
file.  As the example /n/sources/xen/xen3/etc-xen-plan9 shows:

  name = "plan9"
  vif = [ 'mac=aa:00:10:00:00:10' ]
  disk = ...

You can then configure your DHCP server to assign a fixed IP
address to this MAC.

If you don't use DHCP, then you don't need a fixed MAC, and
you can define all the IP address information in the guest
domain config file.  Just edit the Plan 9 /rc/bin/cpurc script
to contain the command
   eval ip/ipconfig $ipconfig
and set up the domain config file something like this:

name = "p9cpu"
vif = [ '' ]
disk = [ 'file:/usr/xen9/plan9.img,sda,w' ]
extra="""
bootargs=local!/dev/sd00/fossil
venti=/dev/sd00/arenas
ipconfig=-g 192.168.0.1 192.168.0.42
DNSSERVER=192.168.0.1 192.168.0.2
"""

If you configure the Plan 9 guest as a file and auth server, you could
use a second domain config file to define a diskless client, by
omitting the 'disk=' line, and defining the 'extra=' section something
like this:

extra="""
bootargs=tcp -g 192.168.0.1 192.168.0.100
fs=192.168.0.42
auth=192.168.0.42
DNSSERVER=192.168.0.1 192.168.0.2
"""



      parent reply	other threads:[~2007-05-12 13:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-11 17:33 Eric Boston
2007-05-11 19:23 ` Richard Miller
2007-05-11 23:01   ` ron minnich
2007-05-12  1:30     ` Eric Boston
2007-05-12  5:26       ` ron minnich
2007-05-12 13:14     ` Richard Miller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=655fa09db37070807cb0ba5c4d2033d1@hamnavoe.com \
    --to=9fans@hamnavoe.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).