Ask Your Question

Can I build a vm in swift object storage?

asked 2014-03-25 05:24:04 -0600

jgalvin gravatar image

I have used Cinder and have no issues attaching block storage to VMs but I have been looking into the swift object storage only I down know how to build a Vm instance and get it to use the object storage as storage for my VM and not Block Storage,

Can anyone help me with this or is this possible?


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-03-25 16:53:09 -0600

SamYaple gravatar image

updated 2014-03-31 09:12:48 -0600

You can use swift as a backend for Glance. This would put the base of your VM in object storage, but it would not allow persitent storage for the VM, only ephemeral.

If you want block storage based in object storage, look into ceph. Depending on who you ask, ceph is better than Swift since it has block AND object storage on the same backend (and a POSIX fs that is not production ready yet). Ceph has a full cinder driver and works extremly well. You can even use Ceph in place of Swift for an object storage endpoint for openstack, though it will not work as well as Swift in this regard.

To enable swift as Glance backend, enable glance-api.conf config with the following:

default_store = swift
swift_store_create_container_on_put = True
swift_store_auth_address = http://keystoneurl:keystoneport/v2.0/
swift_store_user = glance:glance
swift_store_key = galnceswiftpassword

Make sure to adjust those urls and credentials to match your enviroment.

edit flag offensive delete link more


Thanks for the response and answering my question much appreciated,

Im new to openstack and cant see anywhere in the documentation that shows me how I can add swift as the backend for glance Is it possible you can walk me through this or point me to the right documentation ?

I cant see in the following link when installing glance how i can point it to swift : (

Thanks again for your help

jgalvin gravatar imagejgalvin ( 2014-03-26 05:14:19 -0600 )edit

The relevant options you need to enable are now listed in my comments.

SamYaple gravatar imageSamYaple ( 2014-03-31 09:10:27 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-03-25 05:24:04 -0600

Seen: 565 times

Last updated: Mar 31 '14