Ask Your Question
0

How to make a vm persistent?

asked 2011-03-16 20:54:23 -0600

timbo gravatar image

I'd like to make a VM persistent, so that changes inside the VM will persist even after a restart or failure of it's host. How can I achieve that?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2011-03-17 01:33:05 -0600

everett-toews gravatar image

You need to bundle your running instance, upload it and register it to create a new image. I wrote a guide for doing just that for Eucalyptus (this is before OpenStack's time ;) at http://open.eucalyptus.com/participate/wiki/creating-image-existing-vm-centos (http://open.eucalyptus.com/participat...)

Give it a shot.

Everett

On Wed, Mar 16, 2011 at 2:54 PM, Tim Bordemann < question149350@answers.launchpad.net > wrote:

New question #149350 on OpenStack Compute (nova): https://answers.launchpad.net/nova/+question/149350 (https://answers.launchpad.net/nova/+q...)

I'd like to make a VM persistent, so that changes inside the VM will persist even after a restart or failure of it's host. How can I achieve that?


You received this question notification because you are an answer contact for OpenStack Compute (nova).

edit flag offensive delete link more
0

answered 2011-03-20 23:54:58 -0600

vishvananda gravatar image

So you can just rebundle it right before you shutdown (or snapshot it, a feature that should come soon). Also FYI, if the host crashes and comes back up, your instance is not lost. A simple reboot instances command will cause it to restart again.

On Mar 17, 2011, at 3:27 AM, Tim Bordemann wrote:

Question #149350 on OpenStack Compute (nova) changed: https://answers.launchpad.net/nova/+q...

Status: Answered => Open

Tim Bordemann is still having a problem: Thanks for your answer. Maybe I didn't make it clear enough, but actually I don't want to rebundle a VM / an image everytime I install or change something inside of it. Opennebula f.e. offers me to create an image and define it as being "persistent". When I shutdown the VM all the changes are being copied back to the imagestore. Later I can start the same VM again and have the exact same state as after the shutdown.


You received this question notification because you are a member of Nova Core, which is an answer contact for OpenStack Compute (nova).

edit flag offensive delete link more
0

answered 2011-03-17 10:27:29 -0600

timbo gravatar image

Thanks for your answer. Maybe I didn't make it clear enough, but actually I don't want to rebundle a VM / an image everytime I install or change something inside of it. Opennebula f.e. offers me to create an image and define it as being "persistent". When I shutdown the VM all the changes are being copied back to the imagestore. Later I can start the same VM again and have the exact same state as after the shutdown.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2011-03-16 20:54:23 -0600

Seen: 70 times

Last updated: Mar 20 '11