9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] 9vx as a cpu server?
@ 2009-02-01 18:19 Mathieu
  2009-02-01 18:29 ` erik quanstrom
  2009-02-02  4:27 ` Russ Cox
  0 siblings, 2 replies; 10+ messages in thread
From: Mathieu @ 2009-02-01 18:19 UTC (permalink / raw)
  To: 9fans

Hello,

Simple question: how hard would it be to modify 9vx so it can be used
as a cpu server?

As I naively see it, the two main problems are:
1) to have 9vx running a cpu server kernel instead of a stand alone
terminal one (I don't even know if that's the case actually).
2) to have the host forwarding whatever packets should go to 9vx.

I had two goals in mind; obviously being able to have a cpu server
without having to dedicate another machine for that at home, but also
I will need to run some tests over the net for an app I will try to
write and that will require to have several plan 9 hosts being able to
talk to each other.
I realize vmware could cut it, but I find 9vx much easier to use, so I
was wondering if that would be at all possible...

Cheers,
Mathieu






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

* Re: [9fans] 9vx as a cpu server?
  2009-02-01 18:19 [9fans] 9vx as a cpu server? Mathieu
@ 2009-02-01 18:29 ` erik quanstrom
  2009-02-01 21:29   ` Mathieu
  2009-02-02  4:27 ` Russ Cox
  1 sibling, 1 reply; 10+ messages in thread
From: erik quanstrom @ 2009-02-01 18:29 UTC (permalink / raw)
  To: 9fans

> As I naively see it, the two main problems are:
> 1) to have 9vx running a cpu server kernel instead of a stand alone
> terminal one (I don't even know if that's the case actually).

i think there would be a little work in getting this going.

> 2) to have the host forwarding whatever packets should go to 9vx.

is this enough?

http://9fans.net/archive/2008/12/501
http://9fans.net/archive/2008/12/505

- erik



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

* Re: [9fans] 9vx as a cpu server?
  2009-02-01 18:29 ` erik quanstrom
@ 2009-02-01 21:29   ` Mathieu
  2009-02-01 21:40     ` Devon H. O'Dell
  0 siblings, 1 reply; 10+ messages in thread
From: Mathieu @ 2009-02-01 21:29 UTC (permalink / raw)
  To: 9fans

> > As I naively see it, the two main problems are:
> > 1) to have 9vx running a cpu server kernel instead of a stand alone
> > terminal one (I don't even know if that's the case actually).
>
> i think there would be a little work in getting this going.

Ok, so it's possible then. :)
I'll see if I can understand the 9vx code and have a go at that.

> > 2) to have the host forwarding whatever packets should go to 9vx.
>
> is this enough?
>
> http://9fans.net/archive/2008/12/501
> http://9fans.net/archive/2008/12/505

Hmm I'm not sure, do these modifications imply that the Linux/FreeBSD
host can "see" 9vx as another host? Hence making it possible to NAT the
relevant traffic to it?
If yes, then that's indeed what I'm after, thx.

Cheers,
Mathieu




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

* Re: [9fans] 9vx as a cpu server?
  2009-02-01 21:29   ` Mathieu
@ 2009-02-01 21:40     ` Devon H. O'Dell
  0 siblings, 0 replies; 10+ messages in thread
From: Devon H. O'Dell @ 2009-02-01 21:40 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

2009/2/1 Mathieu <lejatorn@gmail.com>:
>> > As I naively see it, the two main problems are:
>> > 1) to have 9vx running a cpu server kernel instead of a stand alone
>> > terminal one (I don't even know if that's the case actually).
>>
>> i think there would be a little work in getting this going.
>
> Ok, so it's possible then. :)
> I'll see if I can understand the 9vx code and have a go at that.
>
>> > 2) to have the host forwarding whatever packets should go to 9vx.
>>
>> is this enough?
>>
>> http://9fans.net/archive/2008/12/501
>> http://9fans.net/archive/2008/12/505
>
> Hmm I'm not sure, do these modifications imply that the Linux/FreeBSD
> host can "see" 9vx as another host? Hence making it possible to NAT the
> relevant traffic to it?
> If yes, then that's indeed what I'm after, thx.

You add an IP address to your system; with the changes, 9vx creates a
virtual network device. You assign the IP address to the 9vx virtual
network interface and it does the right thing. It isn't NAT, it's
passive traffic listening / injecting. I still have some work to do to
get the tap driver running, but it's been on the back burner.

--dho

> Cheers,
> Mathieu
>
>
>



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

* Re: [9fans] 9vx as a cpu server?
  2009-02-01 18:19 [9fans] 9vx as a cpu server? Mathieu
  2009-02-01 18:29 ` erik quanstrom
@ 2009-02-02  4:27 ` Russ Cox
  2009-02-02 16:29   ` Roman V. Shaposhnik
  1 sibling, 1 reply; 10+ messages in thread
From: Russ Cox @ 2009-02-02  4:27 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Sun, Feb 1, 2009 at 10:19 AM, Mathieu <lejatorn@gmail.com> wrote:
> Hello,
>
> Simple question: how hard would it be to modify 9vx so it can be used
> as a cpu server?
>
> As I naively see it, the two main problems are:
> 1) to have 9vx running a cpu server kernel instead of a stand alone
> terminal one (I don't even know if that's the case actually).
> 2) to have the host forwarding whatever packets should go to 9vx.
>
> I had two goals in mind; obviously being able to have a cpu server
> without having to dedicate another machine for that at home, but also
> I will need to run some tests over the net for an app I will try to
> write and that will require to have several plan 9 hosts being able to
> talk to each other.
> I realize vmware could cut it, but I find 9vx much easier to use, so I
> was wondering if that would be at all possible...

you don't need a cpu server kernel to be a cpu server.
the main difference between the two kernels is which
startup script (termrc or cpurc) gets run.  if you start
the listeners, you can be a cpu server.

as for listening, 9vx by default uses the host ip stack,
and plan 9 services tend to use their own port numbers,
so as long as you don't want, say, to split ssh to your
host away from ssh to your 9vx instance, you should
be able to just use the stock 9vx and run "aux/listen tcp".

of course, 9vx is running as an ordinary linux user,
which means that the concept of user when accessing
the local file system will not be meaningful -- everyone
will have the access of the user who started 9vx.

russ


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

* Re: [9fans] 9vx as a cpu server?
  2009-02-02  4:27 ` Russ Cox
@ 2009-02-02 16:29   ` Roman V. Shaposhnik
  2009-02-02 16:54     ` roger peppe
  0 siblings, 1 reply; 10+ messages in thread
From: Roman V. Shaposhnik @ 2009-02-02 16:29 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Sun, 2009-02-01 at 20:27 -0800, Russ Cox wrote:
> as for listening, 9vx by default uses the host ip stack,
> and plan 9 services tend to use their own port numbers,

And sometimes these port # tend to be < 1024 which means that
you have to run 9vx as root.

Thanks,
Roman.




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

* Re: [9fans] 9vx as a cpu server?
  2009-02-02 16:29   ` Roman V. Shaposhnik
@ 2009-02-02 16:54     ` roger peppe
  2009-02-02 17:07       ` ron minnich
  2009-02-02 19:11       ` Charles Forsyth
  0 siblings, 2 replies; 10+ messages in thread
From: roger peppe @ 2009-02-02 16:54 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

why hasn't that old unix restriction been removed yet?
is there any point to it at all any more?
localhost-only announcing i suppose.

2009/2/2 Roman V. Shaposhnik <rvs@sun.com>:
> On Sun, 2009-02-01 at 20:27 -0800, Russ Cox wrote:
>> as for listening, 9vx by default uses the host ip stack,
>> and plan 9 services tend to use their own port numbers,
>
> And sometimes these port # tend to be < 1024 which means that
> you have to run 9vx as root.
>
> Thanks,
> Roman.
>
>
>



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

* Re: [9fans] 9vx as a cpu server?
  2009-02-02 16:54     ` roger peppe
@ 2009-02-02 17:07       ` ron minnich
  2009-02-02 17:10         ` erik quanstrom
  2009-02-02 19:11       ` Charles Forsyth
  1 sibling, 1 reply; 10+ messages in thread
From: ron minnich @ 2009-02-02 17:07 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Mon, Feb 2, 2009 at 8:54 AM, roger peppe <rogpeppe@gmail.com> wrote:
> why hasn't that old unix restriction been removed yet?
> is there any point to it at all any more?

They depend on it now more than ever. Don't believe me? Just look at
what port many people use for NFS nowadays.

Lots of bad things have never been fixed, and this is one of them. I
guess it's more fun to lard GUI software over top and hope nobody
notices.

ron



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

* Re: [9fans] 9vx as a cpu server?
  2009-02-02 17:07       ` ron minnich
@ 2009-02-02 17:10         ` erik quanstrom
  0 siblings, 0 replies; 10+ messages in thread
From: erik quanstrom @ 2009-02-02 17:10 UTC (permalink / raw)
  To: 9fans

> They depend on it now more than ever. Don't believe me? Just look at
> what port many people use for NFS nowadays.
>
> Lots of bad things have never been fixed, and this is one of them. I
> guess it's more fun to lard GUI software over top and hope nobody
> notices.

too bad that there seems to be more willingness to
break perfectly okay interfaces that there is to
fix broken interfaces.  the compatability argument
seems to run counter common sense in both cases.

- erik




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

* Re: [9fans] 9vx as a cpu server?
  2009-02-02 16:54     ` roger peppe
  2009-02-02 17:07       ` ron minnich
@ 2009-02-02 19:11       ` Charles Forsyth
  1 sibling, 0 replies; 10+ messages in thread
From: Charles Forsyth @ 2009-02-02 19:11 UTC (permalink / raw)
  To: 9fans

>why hasn't that old unix restriction been removed yet?

the old ones are best. there's nothing like a really good candle.
it couldn't be prised from their cold dead hands.
think of the expense!

i came across it recently, and couldn't quite believe it myself.



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

end of thread, other threads:[~2009-02-02 19:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-01 18:19 [9fans] 9vx as a cpu server? Mathieu
2009-02-01 18:29 ` erik quanstrom
2009-02-01 21:29   ` Mathieu
2009-02-01 21:40     ` Devon H. O'Dell
2009-02-02  4:27 ` Russ Cox
2009-02-02 16:29   ` Roman V. Shaposhnik
2009-02-02 16:54     ` roger peppe
2009-02-02 17:07       ` ron minnich
2009-02-02 17:10         ` erik quanstrom
2009-02-02 19:11       ` Charles Forsyth

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).