Top

From Zero to Cloud Foundry on vSphere: Part 1 – How to install MicroBOSH

It seems that the teams over at Cloud Foundry give us too much credit. I spent days trying to get Cloud Foundry up and running because of minor snags and glitches. In addition, the documentation to make this all work doesn’t exist in a single place, it’s all outdated, or isn’t descriptive enough. Hopefully this spoon feeding series tutorial will help get you there.

This tutorial will go over the steps it takes to deploy Cloud Foundry on vSphere. Here are the proper steps:

2. Install RVM with the latest Ruby and Ruby 2.0.0-p481. We are going to use Ruby 2.0.0 because I read on another blog post about the deploy having issues with Ruby 2.1. I never tested it out for myself, so I’m doing this to be safe.

4. Create 2 folders within the vSphere Web Client. Name them bosh_vms and bosh_templates. Move your Ubuntu image to the bosh_vms folder

5. For a production deployment, I would create a brand new set of datastores. Especially if you want to do persistent and non-persistent disks. Since this is a lab, I’m going to do it my way. Go to one of your datastores and create a new folder and call it bosh_disk_storage.

6. We have to create a resource pool. I named mine bosh. I couldn’t figure out how to make this deployment work without a resource pool but it does successfully run with a resource pool mentioned. Documentation says to remove resource_pool and the : after the cluster in the micro_bosh.yml, but it didn’t work for me.

7. We need a few different directories created for our folder structure. I found this to be easiest by creating a bosh folder at root and doing everything inside of there. Change out administrator:administrator with your ubuntu user

9. Now you should be sitting at an editor screen ready to copy and paste the pieces below (or download the yml below). The yml is very picky about indentation, so don’t screw this up. A single space can break your deployment. If you want to use different datastore patterns, read here.

10. Download some bosh stemcells. go to your stemcells directory and download some that say vSphere, we really only need 1 and I’ll grab the ubuntu image. Note, your ubuntu image name and version may differ.

15. To login to the micro BOSH vm, type bosh target 192.168.50.166 and use admin/admin, but this isn’t necessary. If you want to change the un/pw combo, with bosh create user <username>. This will over ride admin/admin.

About Kendrick Coleman

Kendrick Coleman is a virtualization evangelist with a vision for the future of enterprise cloud and end-user computing. Owner and sole contributor to kendrickcoleman.com that is focused on solving uncommon problems to VMware products with helpful tips, tricks, and walkthroughs.