CloudFoundry Micro Cloud and Virtualbox

Clouds are very modern these days, so I decided to dive into the cloud, too. I descided to use CloudFoundry, because it is near to Spring and there are tools to use the cloud like a locally installed tomcat. But, how could it be different, it was not that easy to get the microcloud running.

First of all I had to do some settings in my router to allow the CloudFoundry microcloud to change the DNS settings in the DNS server. In my router this is called DNS-rebind. If this setting is not done, the microcloud is not able to change the DNS lookup in the router and the microcloud is not available under the URL which is given after the configuration process.

CloudFoudry advocats to use the VMWare Player to run their virtual machine. On my machine there are problems with using the VMWare Player after supend to ram, so I decided to switch to Oracle VirtualBox.

My first attempts to switch from VMWare Player to VirtualBox failed, because I created a new VM in Virtualbox and used the configured HDD file which was created by the VMWare Player. This led to a wrong network connection and ended in a total no working mess.

Here are the steps which lead to a running CloudFoundry micro cloud in VirtualBox:

  1. Ensure the virtual machine is able to rebind the DNS (see screenshot above).
  2. create a user account in CloudFoundry and download the micro cloud virtual machine. It is about 1 GB, so this takes some time.
  3. Unzip the micro cloud virtual machine to a folder of your choice.
  4. Download and install Oracle VirtualBox.
  5. Create a new Virtual Machine in VirtualBox.
  6. Don’t create a new file as VirtualBox HDD but use the existing micro-disk1.vmdk of the micro cloud virtual machine.
  7. Set the network settings of the VirtualBox virtual machine to “Bridged”, so the virtual ethernet card gets an own IP address from your DHCP server.
  8. Start the micro cloud virtual machine in VirtualBox.
  9. Log in into CloudFoundry and create a domain.
  10. Create a Token for your CloudFoundry domain.
  11. Configure the micro cloud virtual machine by giving the generated token.

That’s it, after doing some configuration work the micro cloud should look like this:

Now you can use your own microcloud. Further information about using CloudFoundry micro cloud can be found in

 

Advertisements

One thought on “CloudFoundry Micro Cloud and Virtualbox

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s