BLOG

Tag: 'vm'


Iron Foundry

Iron Foundry, Stackato, a New Micro Image Pair

Today we’re releasing a new update for the Iron Foundry Micro Instance. The biggest changes are two fold. One is our full support of the Stackato from ActiveState powered micro instance. We’ve taken the great work that the ActiveState Team has done with Cloud Foundry and rolled that into our Iron Foundry enabled Micro Instance! The second big addition is full support for the Cloud Foundry Micro Cloud Foundry 1.2 release.

For those of you that have dived heavily into the overall framework, some of the specifics include changes that enhance the reliability of the controller and self-healing nature of the system.

How to get it up and running? Easy…

First download and get the Stackato Micro Cloud Running.

  1. Download the Stackato Micro Cloud here: http://www.activestate.com/stackato/download_vm
  2. Unzip the image to the location you want the image to execute from.
  3. Set the network on the staccato image to bridged.
  4. Startup the Stackato Image.
  5. When it boots up get the IP and Hostname Address. Note both the host name and IP address.
  6. The Hostname will need to be added to your hosts file, either /etc/hosts in OS-X or Linux and c:WindowsSystem32Drivershosts. Add the IP & host to the file like ‘192.168.NNN.YYYY stackato-XXXX.local’ and  ’api.stackato-XXXX.local testwebapp.stackato-XXXX.local‘ (add additional entries at the end for other web apps you intend to push)
  7. Navigate to http://stackato-XXXX.local and it will redirect to the initial setup page where you enter an email address and password. These credentials are added to the Stackato Instance, so be sure to remember them.

Next step get the Micro Iron Foundry VM Running & Communicating w/ The Stackato Micro Cloud.

    1. Download the Micro Iron Foundry VM here: http://www.ironfoundry.org/download (Use 7-zip to unzip, or on the Mac use a tool like the “Unarchiver”(http://wakaba.c3.cx/s/apps/unarchiver.html or get it from the App Store)).
    2. If VMWare asks if you have moved or copied the VM, choose “I copied it”.
    3. It will show “Setup is starting services” as this is a Windows VM. After it goes through the inital setup it will continue and require your input
    4. Set the timezone. Click Next
    5. Accept the licensing terms. Click Next
    6. It will now say that the users password must be changed before logging on the first time. Click OK and set the password (make sure to remember the password!)
    7. After setting the password you will now be logged into the core terminal prompt. You can now enable Iron Foundry on your Cloud Foundry Micro Cloud. (Make sure your Cloud Foundry Micro Cloud is running at the same time)
    8. Boot up the Micro Iron Foundry instance. It will prompt you for a password for the Administrator user.
    9. At the command prompt (C:UsersAdministrator) execute these commands:
    10. C:UsersAdministrator>cd C:IronFoundrySetup
    11. C:IronFoundrySetup>RunSetup.cmd
    12. At the prompt enter your domain stackato-XXXX.local, IP address and password.
    13. It will then connect via ssh, patch the system, restart the cloud controller, and setup the local SQL provisioning services in the Iron Foundry VM.
command line results

Once the setup process is done you can use Cloud Foundry Explorer (http://www.ironfoundry.org/download) to push an ASP.NET application. I’ve attached a sample ASP.NET application. Click the gear icon to add a cloud, click the green + button to add a New Server. Rename server to something and add an api url of api.stackato-XXXX.local, email and password. Clicking ”Validate Account” should succeed. Once the cloud is added, you can use push and choose that cloud to publish to it. You should use “testwebapp” as the name since you added it to the hosts file above. Once pushed, you can visit http://testwebapp.stackato-XXXX.local to browse to your application, and http://testwebapp.stackato-XXXX.local/env to see more detailed info.

To get involved with Iron Foundry check out the project at http://www.ironfoundry.org and Cloud Foundry at http://www.cloudfoundry.org/. With the code available on github at https://github.com/IronFoundry or https://github.com/cloudfoundry.

Read More