Automated installation

From Wikitech
(Difference between revisions)
Jump to: navigation, search
m (Outstanding issues)
m
Line 2: Line 2:
  
 
== How to install a server ==
 
== How to install a server ==
<pre>
 
14:25:14 <mark> there is partial documentation on how the installer works, but not installing apparently
 
14:25:16 <mark> it boils down to:
 
14:25:27 <mark> a) make sure dhcpd is set to recognize the machine (on zwinger)
 
14:25:29 <mark> b) make it netboot (e.g. hit F-12 during bootup if it's a Dell)
 
14:26:09 <mark> if you also want automatic partitioning, e.g. if it's an apache or db or squid etc, then you may have to edit the file /srv/autoinstall/netboot.cfg on khaldun
 
14:26:21 <mark> let me paste this into wikitech, i'll write up better later :)
 
</pre>
 
  
After boot up, log in using the ssh key, and manually set the root password.
+
=== Information needed ===
 +
 
 +
* MAC Address
 +
** Note the mac address either from it being printed on the hardware, seeing it on boot or looking it up from the system bios within the management console.
 +
* Internal or external based host
 +
** Choose whether this will be an externally visible host like ''zwinger.wikimedia.org'' or if its private like ''srv98.pmtpa.wmnet''
 +
** [[Network_design]] is a good reference point for understanding the design of the network.
 +
** Apply the correct vlan settings as documented at [[IOS_howto#moving_vlans]].
 +
 
 +
=== Setup ===
 +
 
 +
* Add the host to the dhcpd.conf file on zwinger found in "/etc/dhcp.conf" and restart dhcpd.
 +
* Connect through the mngmnt interface of your new host, power on the server, and netboot the box (e.g. hit F-12 during bootup if it's a Dell).
 +
** There are far more detailed instructions on how to interact with the remote management interfaces at [[Remote_management]]
 +
 
 +
If all works well, you should pull down an automated install from zwinger and lots of magical things will transpire until you
 +
get to the partitioning screen.
 +
 
 +
* Follow the guidelines at [[partitioning]] on how best to slice up the disks.
 +
* After boot up, log in using the root ssh key, and manually set the root password.
  
 
== Outstanding issues ==
 
== Outstanding issues ==
  
* <s>Automatically select the right cluster and use its corresponding preseed file</s>
 
 
* [[Partitioning]]
 
* [[Partitioning]]
* <s>Server kernel by default</s>
 
* <s>No console on /dev/tty?</s>
 
* <s>Static IPs with info from DHCP</s>
 
* <s>NTP servers</s>
 
* <s>sysctl.conf</s>
 
** <s>LVS</s>
 
** <s>net.core.somaxconn</s>
 
 
* mcelog
 
* mcelog
 
* security.ubuntu.com
 
* security.ubuntu.com
* <s>Adaptec SATA controller</s> - Edgy
 
 
* SSH keys repository
 
* SSH keys repository
 
* Grub PXE booting
 
* Grub PXE booting
 
* Automatic setting of root password
 
* Automatic setting of root password
  
=== Edgy ===
+
== Problems ==
* <s>Keyboard selection preseeding</s>
+
 
* <s>Console logging</s>
+
My host turned on through the management interface but got no dhcp lease
* <s>Testing if Dapper also still works</s>
+
 
 +
* Check ''/var/log/dhcpd.log'' on zwinger to see if the hosts request was ever received.
 +
** If it wasn't then there might be a link issue between the two hosts.
 +
** If it is there then pay attention to the error message. A message of no leases available can mean many things.
 +
*** Check the mac address in dhcpd.conf to make sure you entered in the right address.
 +
*** Make sure you have set the proper vlan on the switch that your new hosts is connected to.
  
 
==Links==
 
==Links==

Revision as of 19:18, 29 January 2009

We have an automated installation system for Ubuntu server, using the Ubuntu installer and preseeding.

Contents

How to install a server

Information needed

  • MAC Address
    • Note the mac address either from it being printed on the hardware, seeing it on boot or looking it up from the system bios within the management console.
  • Internal or external based host
    • Choose whether this will be an externally visible host like zwinger.wikimedia.org or if its private like srv98.pmtpa.wmnet
    • Network_design is a good reference point for understanding the design of the network.
    • Apply the correct vlan settings as documented at IOS_howto#moving_vlans.

Setup

  • Add the host to the dhcpd.conf file on zwinger found in "/etc/dhcp.conf" and restart dhcpd.
  • Connect through the mngmnt interface of your new host, power on the server, and netboot the box (e.g. hit F-12 during bootup if it's a Dell).
    • There are far more detailed instructions on how to interact with the remote management interfaces at Remote_management

If all works well, you should pull down an automated install from zwinger and lots of magical things will transpire until you get to the partitioning screen.

  • Follow the guidelines at partitioning on how best to slice up the disks.
  • After boot up, log in using the root ssh key, and manually set the root password.

Outstanding issues

  • Partitioning
  • mcelog
  • security.ubuntu.com
  • SSH keys repository
  • Grub PXE booting
  • Automatic setting of root password

Problems

My host turned on through the management interface but got no dhcp lease

  • Check /var/log/dhcpd.log on zwinger to see if the hosts request was ever received.
    • If it wasn't then there might be a link issue between the two hosts.
    • If it is there then pay attention to the error message. A message of no leases available can mean many things.
      • Check the mac address in dhcpd.conf to make sure you entered in the right address.
      • Make sure you have set the proper vlan on the switch that your new hosts is connected to.

Links

Ubuntu

Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox