Automated installation
From Wikitech
Revision as of 02:55, 26 February 2009 by Tomasz Finc (Talk | contribs)
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 routable host like zwinger.wikimedia.org or if its just internally routable like srv98.pmtpa.wmnet
- Network_design is a good reference point for understanding what vlans are available for the network.
- Apply the correct vlan settings as documented at IOS_howto#moving_vlans.
- Choose whether this will be an externally routable host like zwinger.wikimedia.org or if its just internally routable like srv98.pmtpa.wmnet
System Install
- Ensure the server is in the netboot.cfg file located in /srv/autoinstall/netboot.cfg on khaldun in the apaches section.
- Add the host to the dhcpd.conf file on zwinger found in /etc/dhcp.conf and restart dhcpd.
- Connect through the management 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.
Post Install
At this point you can add, migrate and install whatever in needed and available from our ubuntu repo.
- Add your new host to the ServerRoles page to properly track it.
- Monitoring ?
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 host is connected to.