-
Notifications
You must be signed in to change notification settings - Fork 0
Build Crowbar.ISO
https://github.com/dellcloudedge/crowbar/blob/master/README.build
Prereq: See Build Sledgehammer TAR and results into /.crowbar-build-cache
Notes:
- Please CORRECT this page if you find errors!
- Ensure that you are running bash 4 or greater as your shell.
- build_crowbar.sh uses associative arrays, which bash got in version 4.
- lines below assume working from home directory
- Build as ROOT (otherwise, check the install script to see which commands require sudo rights)
- Build ''requires'' a component known as "sledgehammer" that is a CentOS based image for discovery that is expected to be in the "../crowbar-sledgehammer/bin" directory. This TFTPboot image does not change often and is not part of the normal build steps. See Build Sledgehammer tar for details.
- Build process has been tested on Ubuntu 10.10
Build ISOs and Sledgehammer TARs are available on http://crowbar.zehicle.com if you don’t want to follow these steps then download the ISO. We are updating the code daily, but Rob creates a new ISO less frequently, so don’t assume that you have that latest!
Note: these instructions are for Ubuntu-10.10, CentOS-5.7 & RHEL-5.7! The build machine should have enough memory (more than 360 MB, 2GB is ideal) otherwise it could fail during the build process.
- su -
- apt-get install git build-essential debootstrap mkisofs binutils ruby curl
- git clone git://github.com/dellcloudedge/crowbar.git
- cd ~/crowbar
- git submodule init
- git submodule update
- ./build_crowbar.sh
- ls *.iso
- cd ~/crowbar
- git checkout -b openstack-os-build origin/openstack-os-build
- git submodule init
- git submodule update
- ./build_crowbar.sh
- ls *.iso
To build Hadoop on CentOS 5.7 complete the steps above making the following changes:
- Also install: apt-get install rpm
- Change branch: git checkout -b hadoop-os-build origin/hadoop-os-build
- Add Parameter: ./build_crowbar.sh centos-5.7
- The CentOS & RHEL DVDs are larger (4 GB!) so you may need larger volumes (>20 GB) to build
To build Crowbar, you need an linux machine and access to the internet. These videos show on how you can build using a Rackspace Cloud Server (http://youtu.be/FsOBaAiDgYs) or on a local VM (http://youtu.be/qvsfXPH5k5Q). We build Crowbar inside our firewall on our PCs too. No matter how you do it, Crowbar is full of fuzzily delicious cloud bits.
Of course, you still need to run the ISO to build a staged OS that can Install Crowbar.
Note: You can store these in a ~/.build-crowbar.conf for easier reuse!
Usage "export PARAM=VALUE"
- USE_PROXY : [0] no, 1 = yes
- PROXY_HOST
- PROXY_USER
- ALLOW_CACHE_UPDATE : [true], false
- CACHE_DIR : ["$HOME/.crowbar-build-cache"]
- ISO_LIBRARY : ["$CACHE_DIR/iso"]
- SLEDGEHAMMER_PXE_DIR : [""$CACHE_DIR/tftpboot"]
- SLEDGEHAMMER_DIR : ["${CROWBAR_DIR}/../crowbar-sledgehammer"]
- ... there are more...