Configuration Guide - Ubuntu 12.04.03

  • Start the Ubuntu server install and answer the prompts

  • English & Ubuntu Server

    • Choose eth0 as your primary interface
  • Name your machine and user accounts (we recommend “crowbar” as user) & time zone

  • Partitioning: guided to use entire disk and LVM

    • defaults are OK
    • you need to select YES to continue (NO = return to selection)
  • Proxy depends on your environment (we’ll install Squid later)

    1. No automatic updates
  • Install OpenSSH & Samba (space toggles, enter continues)

  • Install GRUB boot loader

  • When Installation completes, make sure the ISO is not attached and allow reboot

  • you may want to snapshot the machine in this state

  • Add Network for SSH from Host
    sudo vi /etc/network/interfaces and add the following lines
auto eth1
iface eth1 inet static
  address 192.168.222.6
  netmask 255.255.255.0
then restart networking:
sudo service networking restart
  • validate network access to this net network by using Putty (or other ssh client) to SSH into crowbar@192.168.222.6
  1. Setup an .ssh keypair
  2. use ssh-keygen -t rsa
    1. if that fails, try rssh-keygen
  3. Passwordless sudo: sudo sed -ie "s/%sudo\tALL=(ALL:ALL) ALL/%sudo ALL=(ALL) NOPASSWD: ALL/g" /etc/sudoers
    1. additional information, see http://serverfault.com/questions/160581/how-to-setup-passwordless-sudo-on-linux
  4. Optional, SAMBA and CNTLM if you are developing on Windows using VMs and/or behind corporate firewalls
  5. Setup a Squid Proxy to ensure downloads are fast (needed by Crowbar too)
  6. Make sure your environment does not use proxy for local addresses:
    1. export no_proxy="127.0.0.1,[::1],localhost,192.168.124.0/24,172.16.0.0/12"
    2. tip: add this to your login init
  7. you need git and tmux: sudo apt-get install git tmux

Position Boot Assets

We’ll need this for later but it takes a while so we do it now in different window....

Copy the ISOs that you want for nodes to $HOME/.cache/opencrowbar/tftpboot/isos. It’s OK to have more than 1 but make sure you have the space!

Examples:

  1. mkdir -p $HOME/.cache/opencrowbar/tftpboot/isos
  2. cd $HOME/.cache/opencrowbar/tftpboot/isos
  3. Centos: wget http://centos.mirror.ndchost.com/6.5/isos/x86_64/CentOS-6.5-x86_64-bin-DVD1.iso
  4. Ubuntu: wget http://releases.ubuntu.com/12.04.4/ubuntu-12.04.4-server-amd64.iso

Checkout Code

  1. get git
    1. ubuntu: sudo apt-get install git
  2. get the code: git clone https://github.com/opencrowbar/core
  3. if you want to contribute
    1. review Contribute Guidelines
    2. setup your personal git fork
  4. Advanced user optional build Sledgehammer