Want to save money in the Cloud? OpenStack CoreOS image is there
Today the CoreOS team released its first OpenStack image. Let’s quickly see how we can take advantage of it.
The idea here is to combined both virtualization and container technologies. Let’s say you’re running your application on public Cloud and you want to reduce your cost. Usually, public cloud flavors are default for everyone and it’s difficult to find the one that’ll exactly suits your needs. Especially if your application has really strict requirements. If you can’t have a specific flavor, you’ll have to buy a VM bigger than you need. This will result using a virtual machine that you exploit entirely. The idea here is to bring about another level of resource isolation by using containers inside a virtual machine. Then you can easily and finely grained allocate your resources to each of your containers. Besides, it’s also more affordable to run 1 big VM with N containers inside than N VMs on a public Cloud. Obviously, what I’m presenting here is not new, but for those of you who already had a look at CoreOS, they might want to populate their environment with CoreOS OpenStack cloud images. Thus, I believe there is a strong interest here.
The main idea:
Download the last image:
$ wget http://storage.core-os.net/coreos/amd64-generic/dev-channel/coreos_production_openstack_image.img.bz2
Quick inspection of the image before importing it:
$ qemu-img info coreos_production_openstack_image.img
Import it into Glance:
$ glance image-create --name CoreOS --container-format ovf --disk-format qcow2 --file coreos_production_openstack_image.img --is-public True
Boot the image:
$ nova boot --image cdf3874c-c27f-4816-bc8c-046b240e0edd --key-name coreos --flavor m1.medium --security-groups default coreos
Get the IP:
$ nova list
Finally SSH into it, note that the user is
$ ssh -i core.pem [email protected]
That’s all! Enjoy your light-weight OS and its building Docker engine.