* Re: [9fans] Diskless cpu servers
@ 2006-06-09 14:30 jmk
2006-06-09 16:54 ` Dave Lukes
0 siblings, 1 reply; 19+ messages in thread
From: jmk @ 2006-06-09 14:30 UTC (permalink / raw)
To: 9fans
Is there a security/crypto expert out there who knows
if there's a way for a server to hand out a chunk of
executable code then, when the code runs and calls back,
it can verify the code is running unchanged (i.e. no
local storage on the client system at all)? I'm very
naïve about security and my gut tells me no.
Some motherboards we bought recently were without
any reasonable places to put any non-rotating local
storage and ID/function to another machine would be a
pain.
The place where you want this (booting
a cluster) it's not really necessary as you can isolate
all the clients on their own physical net (he said
naïvely, not knowing much about that either).
--jim
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [9fans] Diskless cpu servers
2006-06-09 14:30 [9fans] Diskless cpu servers jmk
@ 2006-06-09 16:54 ` Dave Lukes
0 siblings, 0 replies; 19+ messages in thread
From: Dave Lukes @ 2006-06-09 16:54 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
jmk@plan9.bell-labs.com wrote:
> Is there a security/crypto expert out there who knows if there's a
> way for a server to hand out a chunk of executable code then, when
> the code runs and calls back, it can verify the code is running
> unchanged (i.e. no local storage on the client system at all)? I'm
> very naïve about security and my gut tells me no.
In general, no.
If you have specific constraints, you may be able to,
but in the general case, your problem is the converse of another problem
I've just been looking at:
can you do serious crypto on a machine without _some_ form of permanent
storage?
Ferguson and Schneier's "Practical Cryptography" says "no",
with reasoning, and I tend to believe them.
D.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [9fans] Diskless cpu servers
@ 2006-06-09 0:31 Adriano Verardo
2006-06-09 0:35 ` andrey mirtchovski
` (4 more replies)
0 siblings, 5 replies; 19+ messages in thread
From: Adriano Verardo @ 2006-06-09 0:31 UTC (permalink / raw)
To: 9fans
Hi, all.
My i386 CPU servers have no magnetic/flash storage. The only solution I
found to boot them
without human intervention has been to add the driver of a "fake" nvram.
It works but I'm not sure it's a good idea, because it entails to modify
libauth
to insert the new device in the list searched by factotum, wrkey etc.
Instead, I think it would be better to get the result only by adding
files, without modifying the distribution.
A more elegant solution with no consequences on the normal update
activity by replica/pull.
Did anyone face the same boot problem in the past ?
Any suggestion ?
Thanks in advance
Adriano
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [9fans] Diskless cpu servers
2006-06-09 0:31 Adriano Verardo
@ 2006-06-09 0:35 ` andrey mirtchovski
2006-06-09 14:41 ` Adriano Verardo
2006-06-09 4:13 ` Ronald G Minnich
` (3 subsequent siblings)
4 siblings, 1 reply; 19+ messages in thread
From: andrey mirtchovski @ 2006-06-09 0:35 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
i've modified libauth to add a cmos device as nvram in the past... you
can just go with it and not worry about sending a patch, unless you
think it's valuable :)
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [9fans] Diskless cpu servers
2006-06-09 0:35 ` andrey mirtchovski
@ 2006-06-09 14:41 ` Adriano Verardo
0 siblings, 0 replies; 19+ messages in thread
From: Adriano Verardo @ 2006-06-09 14:41 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
andrey mirtchovski wrote:
> i've modified libauth to add a cmos device as nvram in the past... you
> can just go with it and not worry about sending a patch, unless you
> think it's valuable :)
>
>
The solution I found its really trivial. Instead, the problem I'm dealig
with could be interesting
for the community.
I think that Plan9 could be effectively used in industrial automation
systems
to coordinate leaf nodes devotes, for example, to data acquisition.
There are many situations in which real time is not a true constraint.
Thanks to the Plan9 design it should be easier to share
information among
graphical monitoring stations etc etc etc.
The typical scenario is: many very small (486/P100) acq. (leaf) nodes,
mix of
new and obsolete HW, strict constraint about budget, ....
So I built a cluster of very small (chep and old) CPUs (motherboards+acq
dev+eth)
and I'm trying to have them up and running just turning them on without
human intervention
(they could be a lot and distributed in a large area) and downloading a
small Plan9.
I would like not to have many customized kernels. Probably to have the
nvram info embedded in the kernel, in such a particular scenario, could be
a good solution.
I'm also looking at Plan9 as a platform for distributed computing on
a company network. Really some of my clients have networks of
hundreds of modern PCs that don't work in the night ...
But this is another story
Adriano
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [9fans] Diskless cpu servers
2006-06-09 0:31 Adriano Verardo
2006-06-09 0:35 ` andrey mirtchovski
@ 2006-06-09 4:13 ` Ronald G Minnich
[not found] ` <000b01c68b7b$503cadb0$14aaa8c0@utelsystems.local>
` (2 subsequent siblings)
4 siblings, 0 replies; 19+ messages in thread
From: Ronald G Minnich @ 2006-06-09 4:13 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Adriano Verardo wrote:
> Hi, all.
>
> My i386 CPU servers have no magnetic/flash storage. The only solution I
> found to boot them
> without human intervention has been to add the driver of a "fake" nvram.
> It works but I'm not sure it's a good idea, because it entails to modify
> libauth
> to insert the new device in the list searched by factotum, wrkey etc.
> Instead, I think it would be better to get the result only by adding
> files, without modifying the distribution.
> A more elegant solution with no consequences on the normal update
> activity by replica/pull.
>
> Did anyone face the same boot problem in the past ?
> Any suggestion ?
>
> Thanks in advance
>
> Adriano
>
on the geodes I just added the entry to have it look at #r/nvram. Worked
fine. I lost the patch, but it was trivial.
You may not have room in your CMOS, depending on what your fuctory bios
does with it.
ron
^ permalink raw reply [flat|nested] 19+ messages in thread
[parent not found: <000b01c68b7b$503cadb0$14aaa8c0@utelsystems.local>]
* Re: [9fans] Diskless cpu servers
[not found] ` <000b01c68b7b$503cadb0$14aaa8c0@utelsystems.local>
@ 2006-06-09 7:58 ` "Nils O. Selåsdal"
2006-06-09 13:02 ` Ronald G Minnich
2006-06-09 13:42 ` Adriano Verardo
0 siblings, 2 replies; 19+ messages in thread
From: "Nils O. Selåsdal" @ 2006-06-09 7:58 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Ronald G Minnich wrote:
> Adriano Verardo wrote:
>> Hi, all.
>>
>> My i386 CPU servers have no magnetic/flash storage. The only solution
>> I found to boot them
>> without human intervention has been to add the driver of a "fake" nvram.
>> It works but I'm not sure it's a good idea, because it entails to
>> modify libauth
>> to insert the new device in the list searched by factotum, wrkey etc.
>> Instead, I think it would be better to get the result only by adding
>> files, without modifying the distribution.
>> A more elegant solution with no consequences on the normal update
>> activity by replica/pull.
Would this be of any help ?
cpu% man plan9.ini|grep nvram
nvram=file
This is used to specify an nvram device and optionally the
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [9fans] Diskless cpu servers
2006-06-09 7:58 ` "Nils O. Selåsdal"
@ 2006-06-09 13:02 ` Ronald G Minnich
2006-06-09 13:09 ` Charles Forsyth
2006-06-09 13:42 ` Adriano Verardo
1 sibling, 1 reply; 19+ messages in thread
From: Ronald G Minnich @ 2006-06-09 13:02 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Nils O. Selåsdal wrote:
> Ronald G Minnich wrote:
>
>> Adriano Verardo wrote:
>>
>>> Hi, all.
>>>
>>> My i386 CPU servers have no magnetic/flash storage. The only solution
>>> I found to boot them
>>> without human intervention has been to add the driver of a "fake" nvram.
>>> It works but I'm not sure it's a good idea, because it entails to
>>> modify libauth
>>> to insert the new device in the list searched by factotum, wrkey etc.
>>> Instead, I think it would be better to get the result only by adding
>>> files, without modifying the distribution.
>>> A more elegant solution with no consequences on the normal update
>>> activity by replica/pull.
>
>
> Would this be of any help ?
>
> cpu% man plan9.ini|grep nvram
> nvram=file
> This is used to specify an nvram device and optionally the
yes, but the issue we hit here was that you can't really use all of
CMOS. The first <xy> bits are used for other things. So you have to
fiddle a bit.
ron
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [9fans] Diskless cpu servers
2006-06-09 13:02 ` Ronald G Minnich
@ 2006-06-09 13:09 ` Charles Forsyth
2006-06-09 13:23 ` Ronald G Minnich
0 siblings, 1 reply; 19+ messages in thread
From: Charles Forsyth @ 2006-06-09 13:09 UTC (permalink / raw)
To: 9fans
> yes, but the issue we hit here was that you can't really use all of
> CMOS. The first <xy> bits are used for other things. So you have to
> fiddle a bit.
there are several other environment variables:
nvram=file
nvrlen=length
nvroff=offset
This is used to specify an nvram device and optionally the
length of the ram and read/write offset to use. These val-
ues are consulted by readnvram (see authsrv(2)). The most
common use of the nvram is to hold a secstore(1) password
for use by factotum(4).
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [9fans] Diskless cpu servers
2006-06-09 13:09 ` Charles Forsyth
@ 2006-06-09 13:23 ` Ronald G Minnich
2006-06-09 13:27 ` Charles Forsyth
0 siblings, 1 reply; 19+ messages in thread
From: Ronald G Minnich @ 2006-06-09 13:23 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Charles Forsyth wrote:
>>yes, but the issue we hit here was that you can't really use all of
>>CMOS. The first <xy> bits are used for other things. So you have to
>>fiddle a bit.
>
>
> there are several other environment variables:
>
> nvram=file
> nvrlen=length
> nvroff=offset
> This is used to specify an nvram device and optionally the
> length of the ram and read/write offset to use. These val-
> ues are consulted by readnvram (see authsrv(2)). The most
> common use of the nvram is to hold a secstore(1) password
> for use by factotum(4).
>
yes, these did not ever work terrifically well for me IIRC. I ended up
just changing the driver ...
ron
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [9fans] Diskless cpu servers
2006-06-09 7:58 ` "Nils O. Selåsdal"
2006-06-09 13:02 ` Ronald G Minnich
@ 2006-06-09 13:42 ` Adriano Verardo
2006-06-09 13:53 ` Federico G. Benavento
1 sibling, 1 reply; 19+ messages in thread
From: Adriano Verardo @ 2006-06-09 13:42 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Nils O. Selåsdal wrote:
> Ronald G Minnich wrote:
>
>> Adriano Verardo wrote:
>>
>>> Hi, all.
>>>
>>> My i386 CPU servers have no magnetic/flash storage. The only
>>> solution I found to boot them
>>> without human intervention has been to add the driver of a "fake"
>>> nvram.
>>> It works but I'm not sure it's a good idea, because it entails to
>>> modify libauth
>>> to insert the new device in the list searched by factotum, wrkey etc.
>>> Instead, I think it would be better to get the result only by
>>> adding files, without modifying the distribution.
>>> A more elegant solution with no consequences on the normal update
>>> activity by replica/pull.
>>
>
> Would this be of any help ?
>
> cpu% man plan9.ini|grep nvram
> nvram=file
> This is used to specify an nvram device and optionally the
>
>
The .ini file is downloaded by 9pxeload (/cfg/<macaddr>) .
I could add
nvram= #Z/fknvram
nvrlen=...
nvroff=...
in the ini files and choose a driver letter not used for i386 (instead
of 'Z').
This way I could restore the original libauth etc
Correct ?
Adriano
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [9fans] Diskless cpu servers
2006-06-09 13:42 ` Adriano Verardo
@ 2006-06-09 13:53 ` Federico G. Benavento
0 siblings, 0 replies; 19+ messages in thread
From: Federico G. Benavento @ 2006-06-09 13:53 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 93 bytes --]
I just remembered about this:
http://rs-rlab.narod.ru/9nvram.html
Federico G. Benavento
[-- Attachment #2: Type: message/rfc822, Size: 4453 bytes --]
From: Adriano Verardo <a.verardo@tecmav.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] Diskless cpu servers
Date: Fri, 09 Jun 2006 15:42:16 +0200
Message-ID: <44897AB8.1070304@tecmav.com>
Nils O. Selåsdal wrote:
> Ronald G Minnich wrote:
>
>> Adriano Verardo wrote:
>>
>>> Hi, all.
>>>
>>> My i386 CPU servers have no magnetic/flash storage. The only
>>> solution I found to boot them
>>> without human intervention has been to add the driver of a "fake"
>>> nvram.
>>> It works but I'm not sure it's a good idea, because it entails to
>>> modify libauth
>>> to insert the new device in the list searched by factotum, wrkey etc.
>>> Instead, I think it would be better to get the result only by
>>> adding files, without modifying the distribution.
>>> A more elegant solution with no consequences on the normal update
>>> activity by replica/pull.
>>
>
> Would this be of any help ?
>
> cpu% man plan9.ini|grep nvram
> nvram=file
> This is used to specify an nvram device and optionally the
>
>
The .ini file is downloaded by 9pxeload (/cfg/<macaddr>) .
I could add
nvram= #Z/fknvram
nvrlen=...
nvroff=...
in the ini files and choose a driver letter not used for i386 (instead
of 'Z').
This way I could restore the original libauth etc
Correct ?
Adriano
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [9fans] Diskless cpu servers
2006-06-09 0:31 Adriano Verardo
` (2 preceding siblings ...)
[not found] ` <000b01c68b7b$503cadb0$14aaa8c0@utelsystems.local>
@ 2006-06-09 9:22 ` Steve Simon
2006-06-09 10:53 ` Charles Forsyth
2006-06-09 13:03 ` Ronald G Minnich
2006-06-10 18:32 ` Adriano Verardo
4 siblings, 2 replies; 19+ messages in thread
From: Steve Simon @ 2006-06-09 9:22 UTC (permalink / raw)
To: 9fans
Some people have used IDE flash cards in CPU/auth nodes
to make them at least rotating disk less if not actually
network booting. You could keep the net boot and just store
an nvram partition on the flash card.
For part numbers check the 9fans archives.
-Steve
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [9fans] Diskless cpu servers
2006-06-09 9:22 ` Steve Simon
@ 2006-06-09 10:53 ` Charles Forsyth
2006-06-09 13:28 ` Adriano Verardo
2006-06-09 13:03 ` Ronald G Minnich
1 sibling, 1 reply; 19+ messages in thread
From: Charles Forsyth @ 2006-06-09 10:53 UTC (permalink / raw)
To: 9fans
you can set the nvram environment variable (eg, in plan9.ini) to the
name of the nvram file, so you don't need to change libauthsrv source
it wasn't clear where your system got its plan9.ini file though.
presumably you haven't got even a diskette drive.
are you booting over ether?
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [9fans] Diskless cpu servers
2006-06-09 10:53 ` Charles Forsyth
@ 2006-06-09 13:28 ` Adriano Verardo
0 siblings, 0 replies; 19+ messages in thread
From: Adriano Verardo @ 2006-06-09 13:28 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Charles Forsyth wrote:
>you can set the nvram environment variable (eg, in plan9.ini) to the
>name of the nvram file, so you don't need to change libauthsrv source
>
>it wasn't clear where your system got its plan9.ini file though.
>presumably you haven't got even a diskette drive.
>are you booting over ether?
>
>
>
>
>
Yes. I use Etherboot burned on the NICs EPROMS and a patched version
of 9pxeload. The CPUs boot from the file server as usual.
The "nvram" is just a statically initialized char[] in the downloaded
kernel.
Adriano
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [9fans] Diskless cpu servers
2006-06-09 9:22 ` Steve Simon
2006-06-09 10:53 ` Charles Forsyth
@ 2006-06-09 13:03 ` Ronald G Minnich
1 sibling, 0 replies; 19+ messages in thread
From: Ronald G Minnich @ 2006-06-09 13:03 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Steve Simon wrote:
> Some people have used IDE flash cards in CPU/auth nodes
> to make them at least rotating disk less if not actually
> network booting. You could keep the net boot and just store
> an nvram partition on the flash card.
>
> For part numbers check the 9fans archives.
we've had good luck here with magicram IDE-FLASH parts.
ron
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [9fans] Diskless cpu servers
2006-06-09 0:31 Adriano Verardo
` (3 preceding siblings ...)
2006-06-09 9:22 ` Steve Simon
@ 2006-06-10 18:32 ` Adriano Verardo
4 siblings, 0 replies; 19+ messages in thread
From: Adriano Verardo @ 2006-06-10 18:32 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Thank you very much for all suggestions.
Specifying nvram/nvrlen/nvroff in the .ini files
I can use use my nvram emulator driver
with the original distribution.
Adriano
>
>
>
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2006-06-10 18:32 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-09 14:30 [9fans] Diskless cpu servers jmk
2006-06-09 16:54 ` Dave Lukes
-- strict thread matches above, loose matches on Subject: below --
2006-06-09 0:31 Adriano Verardo
2006-06-09 0:35 ` andrey mirtchovski
2006-06-09 14:41 ` Adriano Verardo
2006-06-09 4:13 ` Ronald G Minnich
[not found] ` <000b01c68b7b$503cadb0$14aaa8c0@utelsystems.local>
2006-06-09 7:58 ` "Nils O. Selåsdal"
2006-06-09 13:02 ` Ronald G Minnich
2006-06-09 13:09 ` Charles Forsyth
2006-06-09 13:23 ` Ronald G Minnich
2006-06-09 13:27 ` Charles Forsyth
2006-06-09 14:43 ` Ronald G Minnich
2006-06-09 13:42 ` Adriano Verardo
2006-06-09 13:53 ` Federico G. Benavento
2006-06-09 9:22 ` Steve Simon
2006-06-09 10:53 ` Charles Forsyth
2006-06-09 13:28 ` Adriano Verardo
2006-06-09 13:03 ` Ronald G Minnich
2006-06-10 18:32 ` Adriano Verardo
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).