Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Build sledgehammer tar

erichelgeson edited this page · 14 revisions
Clone this wiki locally

The latest build only requires ONE server for all components. To make it repeatable and fast, I’m using a hosted VM from Rackspace Cloud.

Here are the steps that you should follow (cool: if you build before the prereqs are in place, the script will tell you what’s missing).

Note: You must build the discovery image (build_sledgehammer.sh) before building Crowbar. This image does not change very often, so it’s helpful to cache it somewhere (like in the Crowbar cache where it normally lives) and save time.

  1. Starting from a Rackspace Cloud Ubuntu 10.10 image (512 RAM is OK, $0.03/hr)
  2. cd ~
  3. Install git, RPM, & Ruby: apt-get install git rpm ruby curl
    • RPM based users can try: yum install git rpm ruby
  4. Get the sledgehammer repo: git clone git://github.com/dellcloudedge/crowbar-sledgehammer.git
  5. Go to sledgehammer: cd crowbar-sledgehammer
  6. Download the CentOS image: curl -o ../CentOS-5.6-x86_64-bin-DVD-1of2.iso http://mirror.chpc.utah.edu/pub/centos/5.6/isos/x86_64/CentOS-5.6-x86_64-bin-DVD-1of2.iso
    • This takes some time (10+ mins) even in the cloud
  7. Tell the build where to look for the CentOS image: CENTOS_ISO=../CentOS-5.6-x86_64-bin-DVD-1of2.iso ./build_sledgehammer.sh.
    • You may need to change the path of the image depending on how closely you followed the directions above.
    • Wait a long time while magic happens and the tar gets created.
    • You can ignore comments about isomd5sum not being installed.
    • Check out the tar ball in the /bin directory!
  8. Create the cache location for Sledgehammer: mkdir -p ~/.crowbar-build-cache
  9. Move the the cache location: cd ~/.crowbar-build-cache
  10. Extract the Sledgehammer tar: tar xzvf ~/crowbar-sledgehammer/bin/sledgehammer-tftpboot.tar.gz
    • You may need to change the path of the tarball depending on how closely you followed the directions above.

Next Step: Build Crowbar.ISO

Something went wrong with that request. Please try again.