ggiamarchi / vagrant-openstack-provider

Use Vagrant to manage OpenStack Cloud instances.
MIT License
247 stars 101 forks source link

Boot from Image (into new volume) #263

Open styk-tv opened 8 years ago

styk-tv commented 8 years ago

Open stack has ability to boot from image in glance and at the same time creating new volume in cinder. Am I missing something in the doc or is that not possible yet? This way I can spin up several instances from the same image without having to do new volume each time.

This is different from spinning up just image as the volumes in cinder might be on a fast attached array, iscsi or gluster volume.

ggiamarchi commented 8 years ago

It actually works but it is not documented :cold_sweat:

config.vm.provider :openstack do |os|
    ...
    os.volume_boot = {
        image: "ubuntu",
        size:  15,
        delete_on_destroy: true
    }
end

Let's keep this issue open for the documentation update.

styk-tv commented 8 years ago

Many many thanks for replying so quickly :beer:

Drakoskai commented 8 years ago

I've got a similar but slightly related issue. I'm trying to provision with an image and then attach an existing volume. Is this possible?