Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Stackato Image

hspencer77 edited this page Mar 4, 2013 · 12 revisions

Stackato Status

Image registration

Image for Stackato can be uploaded to Eucalyptus by using the following documentation:

NOTE: don't use uec-publish-image. Use documentation for bundling, uploading and registering kernel, ramdisk, image found here - http://www.eucalyptus.com/docs/3.2/ug/add_existing.html#add_existing

http://docs.stackato.com/server/openstack-legacy.html?highlight=openstack

Make sure and use vm.type that has at least 2 gigs of RAM. Stackato will have odd behavior if this requirement is not met.

Pre-requisites

Since I was using a Eucalyptus DNS enabled cloud, I had to use an external DNS server and create DNS entries that pointed to the public DNS name of the elastic IP I reserved. Example is below:

# nsupdate
> server 10.1.1.254
> zone dev.eucalyptus-systems.com
> update add stackato.dev.eucalyptus-systems.com 3600 IN A 10.1.1.103
> send
> update delete stackato.dev.eucalyptus-systems.com A 
> send
> update add stackato.dev.eucalyptus-systems.com 600 cname euca-192-168-55-103.wu-tang.euca-hasp.eucalyptus-systems.com
> send
> update add *.stackato.dev.eucalyptus-systems.com 600 cname stackato.dev.eucalyptus-systems.com 
> send
> quit

** test lookup of CNAME stackato.dev.eucalyptus-systems.com **
$ nslookup stackato.dev.eucalyptus-systems.com
Server:		10.1.1.254
Address:	10.1.1.254#53

stackato.dev.eucalyptus-systems.com	canonical name = euca-192-168-55-103.wu-tang.euca-hasp.eucalyptus-systems.com.
Name:	euca-192-168-55-103.wu-tang.euca-hasp.eucalyptus-systems.com
Address: 192.168.55.103

** test wildcard DNS name lookup against stackato.dev.eucalyptus-systems.com **
$ nslookup host.stackato.dev.eucalyptus-systems.com
Server:		10.1.1.254
Address:	10.1.1.254#53

host.stackato.dev.eucalyptus-systems.com	canonical name = stackato.dev.eucalyptus-systems.com.
stackato.dev.eucalyptus-systems.com	canonical name = euca-192-168-55-103.wu-tang.euca-hasp.eucalyptus-systems.com.
Name:	euca-192-168-55-103.wu-tang.euca-hasp.eucalyptus-systems.com
Address: 192.168.55.103

Steps to Configure Stackato

Once you launch the instance, ssh into the instance using the following credentials:

username: stackato password: stackato

Once logged into the instance, run the following commands (in this order):

  • kato op static_ip (use the ip information of the instance by checking out ifconfig and route -n; for DNS server entries, I just used what was in the /etc/resolv.conf of the instance)
  • kato rename (this is the DNS name you set up in the external DNS - e.g. stackato.dev.eucalyptus-systems.com)
  • kato disable mdns
  • sudo reboot (reboot instance)

Log back into instance after it has finished rebooting and run the following commands:

  • kato setup core api. (same as above, the DNS name set in the external DNS - e.g. stackato.dev.eucalyptus-systems.com)
  • kato enable --all-but mdns
  • edit resolv.conf, and make sure it has the following entries at the top:
    • search containers.
    • nameserver 127.0.0.1

Setting Up Container Storage (for non cloud-init image)

To make sure the applications have enough space to run on the instance, use ephemeral storage or EBS volume(s) for LXC storage. Stackato mentions it in their documentation under Persistent Storage, but given that there is a known bug regarding using those steps for v2.6.6, you have to do this manually. Steps are as follows:

  • setup the ephemeral storage or attach EBS volume(s) to the instance
  • format the storage with the filesystem of your choice
  • set up the mount point to be /mnt/lxc/containers and run the following commands:
    • kato stop
    • sudo rm -r /lxc/containers
    • sudo ln -s /mnt/lxc/containers /lxc/containers
    • kato start

Thats it. Should be good to go. Open up a browser and go to http: e.g. http://stackato.dev.eucalyptus-systems.com. You should see the Admin Management Console and then go from there.

NOTE: If cloud-init enabled Stackato image is used, it takes care of mounting the ephemeral storage for you and places the LXC containers in ephemeral.

Blogs Referencing Stacakto running on Eucalyptus

Location of Stackato Image

  • eustore
# eustore-describe-images | grep stackato
1310977951 ubuntu      x86_64  partner        kvm
Stackato MicroCloud v2.6.6 - KVM Image. Cloud-init enabled. 
Root disk of 8.8G. For more information, please visit here: http://docs.stackato.com/index.html

Next Steps

  • Need to test Stackato 2.6.7 image.
  • Need to get the cloud-init image on emis.eucalyptus.com
  • Work on setting up a micro-cloud cluster in Eucalyptus.

References

Note: This was tested with Stackato v2.6.6

Clone this wiki locally