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:
- Ensure the virtual machine is able to rebind the DNS (see screenshot above).
- create a user account in CloudFoundry and download the micro cloud virtual machine. It is about 1 GB, so this takes some time.
- Unzip the micro cloud virtual machine to a folder of your choice.
- Download and install Oracle VirtualBox.
- Create a new Virtual Machine in VirtualBox.
- Don’t create a new file as VirtualBox HDD but use the existing micro-disk1.vmdk of the micro cloud virtual machine.
- 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.
- Start the micro cloud virtual machine in VirtualBox.
- Log in into CloudFoundry and create a domain.
- Create a Token for your CloudFoundry domain.
- 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