设为首页 收藏本站
查看: 1085|回复: 0

[经验分享] [OpenStack Crowbar] Build Crowbar.ISO

[复制链接]

尚未签到

发表于 2015-4-11 17:03:03 | 显示全部楼层 |阅读模式
  If you are planning to be CROWBAR DEVELOPER, please follow the Dev Tool Build instructions! It requires that you have a GitHub account.
  https://github.com/dellcloudedge/crowbar/blob/master/README.build
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 includes a component known as "sledgehammer" that is a CentOS based image for discovery. If the build finds a pre-created image in "../crowbar-sledgehammer/bin" directory, it uses it. If it's not found, build_sledgehammer.sh is invoked to build it (this requires a CentOS ISO to be available). This TFTPboot image does not change often.
  • Build process has been tested on Ubuntu 10.10, Ubuntu 11.04 and Ubuntu 12.04.
  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!
Prerequisites
  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: these instructions are for Ubuntu-12.04, CentOS-6.2 & RHEL-6.2! The build machine should have enough memory (more than 360 MB, 2GB is ideal) otherwise it could fail during the build process.
Building Sledgehammer (if it doesn't exist)
  If you don't already have Sledgehammer, you'll need to download some ISOs before proceeding. Find the closest mirrors to you for the listed ISOs.

  • su - (sometimes sudo su -)
  • mkdir -p ~/.crowbar-build-cache/iso
  • curl -o ~/.crowbar-build-cache/iso/CentOS-6.2-x86_64-bin-DVD1.iso http://ucmirror.canterbury.ac.nz/linux/CentOS/6.2/isos/x86_64/CentOS-6.2-x86_64-bin-DVD1.iso
  • curl -o ~/.crowbar-build-cache/iso/ubuntu-12.04-server-amd64.iso http://ubuntu.citylink.co.nz/precise/ubuntu-12.04-server-amd64.iso
Build Crowbar (first build takes a while because components must be cached)

  • su - (sometimes sudo su -)
  • apt-get install git build-essential debootstrap mkisofs binutils rpm ruby rubygems curl (replace apt-get with your distro's package manager)
  • gem install json
  • git clone git://github.com/dellcloudedge/crowbar.git
  • cd ~/crowbar
    Switch to appropriate release and branch (see below)
  • ./dev build --os  
    If you get an error about updates disabled, run the command above again appending --update-cache
  • Grab a coffee, read a book, etc...
  • ls *.iso
Switching releases and branches
  For full details about the dev tool, check the README https://github.com/dellcloudedge/crowbar/blob/master/README.dev-and-workflow
  First set your GitHub username and password (ignore errors about ulimit): ./dev setup
  To see available releases: ./dev releases
  To switch to a given release (e.g. development): ./dev switch development
  To checkout out a particular branch for a specialized build (e.g, openstack-os-build): ./dev checkout openstack-os-build
Variations
  To build Cloudera Hadoop on CentOS 6.2 complete the steps above making the following changes:

  • Change branch: ./dev switch elefante and ./dev checkout cloudera-os-build
  • Add Parameter: ./build_crowbar.sh centos-6.2
  • The CentOS & RHEL DVDs are larger (4 GB!) so you may need larger volumes (>20 GB) to build
Build Options that you can set via EXPORTS
  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...

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-56101-1-1.html 上篇帖子: Data Center Manager Leveraging OpenStack 下篇帖子: OpenStack云计算(一)——OpenStack 网络
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表