Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a remote server (different country) with currently no physical access. Is there a way to do a remote clean install of Debian?

share|improve this question
    
It may be possible, but you will almost certainly have to risk completely trashing the system to a point were you cannot recover it. –  Zoredache Jan 11 '12 at 17:55
    
Also you can do it through some type of LOM depending on the brand/model of server. –  Split71 Jan 11 '12 at 18:02
    
An IP powered KVM might help. –  Tim Jan 11 '12 at 18:21
    
There's a lot of missing detail in your question: What brand of server is it? Do you have IPMI? Serial port access? Dell DRAC? HP integrated Lights Out? Depending on what sort of remote access you are using, you should be good. The biggest problem will be "getting started": if you can't put in a CDROM, you'll have to setup and use some sort of PXE for automatic installs. If the server doesn't support PXE, then you're shot. –  Mei Jan 11 '12 at 19:17

2 Answers 2

You didn't specify your server nor did you specify your server access method. You could access the server in one of these ways:

  • HP Integrated Lights Out (iLO)
  • Dell DRAC
  • Serial Port
  • IPMI (with Serial over LAN)

You also didn't specify if you can put in a CDROM or DVD or not. Assuming you can't, then the server has to support PXE and you need to setup a full PXE environment - including a TFTP server and a NFS server at minimum.

I would really see if a CDROM or DVD can be used; Debian doesn't have an autoinstall option that is as well documented and understood as Red Hat Kickstart or Solaris Jumpstart.

share|improve this answer
    
hp ilo's allow the mounting of remote iso's so you don't need pxe. –  tony roth Jan 11 '12 at 19:49

You can use preseeding (perhaps in combination with PXE and TFTP): http://wiki.debian.org/DebianInstaller/Preseed

If you just use preseeding you will still need to type a few commands at the boot prompt to start the preseeding. However with PXE and a TFTP server you can boot from a modified image that automatically loads the preseeding and requires no human intervention.

Though I have found that PXE is a hit and miss affair, with half of the systems which supposedly support PXE not working. So I decided to just use preseeding on its own and type a few commands at the boot prompt. If you have remote console access to the server then the only thing that needs to be done on location is to insert the boot medium.

Preseeding may a bit hard to get at first, but once you got a working script it's really quite nice.

I should warn about using PXE, TFTP and preseeding to completely automate a system install. It is possible to wipe and re-install an existing server that way simply by rebooting it. So you want to make sure PXE booting is turned off by default. On quite a number of systems it's actually turned on and the first in the list of boot devices.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.