LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-28-2008, 09:44 PM   #1
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
Question Best approach for booting a clean os nightly?


Hello,

I am working on a project for a local library. They have about 30 systems that they will be running, and drives need to be cleaned every night (i.e. a reboot needs to happen and a fresh os needs to be installed). Does anyone have any suggestions for the best way to go about this?

I would prefer to use a centralized image for all of the client systems (rather than an image on each of the local discs). Is there a way to boot the system, fetch the image from a server, overwrite the / partition with it, and boot into that fresh os?

I've looked briefly at clonezilla as a potential solution. Any thoughts on that?

I've also looked at PXE, but the cards in these machines don't appear to support PXE boot? Is there a software-equivalent to PXE?

Thanks for any assistance.

Last edited by zero79; 06-28-2008 at 10:02 PM.
 
Old 06-28-2008, 10:23 PM   #2
nuxrl
Member
 
Registered: Jun 2006
Location: NY, USA
Distribution: Slackware, Arch
Posts: 176

Rep: Reputation: 35
You may also want to check g4u, http://www.feyrer.de/g4u/
 
Old 06-28-2008, 10:41 PM   #3
souneedalink
Member
 
Registered: Jan 2008
Posts: 39

Rep: Reputation: 16
why not a live image on a partition....


.

Last edited by souneedalink; 07-01-2008 at 11:28 PM.
 
Old 06-28-2008, 11:21 PM   #4
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Quote:
Originally Posted by zero79 View Post
I've also looked at PXE, but the cards in these machines don't appear to support PXE boot? Is there a software-equivalent to PXE?
Unless the ethernet cards are weird, you can PXE boot. They may not have a PXE boot rom, but that still leaves the possibility of a PXE boot floppy. That's what I use on my older computers (Pentium, Pentium II, Pentium III).

What are the hardware specs on the computers in question?

Personally, I'd get rid of the hard drives altogether and PXE boot. One possibility is to use Knoppix or a Knoppix derivative so even the server doesn't need a hard drive. Knoppix has the option to be a diskless boot server; all of the PXE boot workstations boot up as if they were booting up Knoppix from a local CD.

I'd go for a more sophisticated setup, though. I don't know if there's a neat turn-key solution, but my solution would be a custom netboot initramfs image with scripts to unionfs an nfs root partition READONLY with a read/write local tmpfs ramdisk. This has a couple neat benefits:

1) Any number of client workstations can simultaneously use the same root partition (since it's mounted readonly).

and

2) Every time a client is rebooted, all changes to the OS are inherently wiped out. A tmpfs ramdisk is inherently non-persistent.

Setting up one workstation to boot up using a standard initramfs image (that mounts the nfs root partition read/write) lets that workstation be the "master". The "master" workstation can then be used to maintain software updates and customizing the user interface.
 
Old 06-28-2008, 11:27 PM   #5
Daengbo
LQ Newbie
 
Registered: Sep 2004
Location: Korea
Distribution: Debian unstable
Posts: 17

Rep: Reputation: 0
Why the whole OS?

I don't see any reason for reinstalling the OS nightly. You can just mount the /home partition on a mem disk and it will disappear when there's a reboot.

If you really want a reinstall (it's going to kill your hard drive), you can use a floppy the LTSP project uses, etherboot.org. There are several cluster technologies which fit your bill, but I still recommend a mem disk.
 
Old 06-29-2008, 05:15 AM   #6
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by zero79 View Post
Hello,

I am working on a project for a local library. They have about 30 systems that they will be running, and drives need to be cleaned every night (i.e. a reboot needs to happen and a fresh os needs to be installed). Does anyone have any suggestions for the best way to go about this?
Don't do it!

What most library systems do is not this, exactly. They give individual users a data area (which you can call home, but this is also done on windows systems) and that data area is wiped on either log on or log off. Now wiping that overnight wouldn't be a bad option either, but installing 'a fresh os' seems like overkill, and not only that creates the possibilty of extra problems.

I'm guessing that you probably don't want users to be able to store, e.g., UI config changes, which also argues for a complete wipe of home, but if you did want users to be able to store those, you'd only do a partial wipe. If going down this (IMHO more friendly) route, my feeling is that you need to give the library staff a 'wipe out user changes and restore defaults' button, or users will contuinually be finding interesting ways to make the system unworkable.

Quote:
I've also looked at PXE, but the cards in these machines don't appear to support PXE boot? Is there a software-equivalent to PXE?
I'm surprised that PXE boot isn't supported at all. Sometimes the ethernet cards have a rom socket and you may need to populate that for PXE to work (given the price of ethernet cards it is not a surprise to find out that the rom isn't populated by default). There is also another system comparable to pxe boot, the name of which escapes me at the nmoment - have a look at the ltsp site.

One other thing to check - you don't want 'kiosk mode' do you?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting Vista Biz (fresh) & Linux- best approach??? jdm260 Linux - Laptop and Netbook 4 03-22-2007 11:17 PM
Running yum nightly sharptech Fedora 4 12-22-2006 06:33 AM
Where can I find the nightly builds? linuxnube Fedora 3 03-14-2005 07:13 AM
Help, system is rebooting nightly.. BxBoy Linux - General 3 12-18-2003 03:21 PM
Nightly Build ISO MikeeX Slackware 2 07-14-2003 06:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration