How to make a vm persistent?

Asked by Tim Bordemann on 2011-03-16

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?

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
2011-03-17
Last reply:
2011-03-20
Everett Toews (everett-toews) said : #1

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

Give it a shot.

Everett

On Wed, Mar 16, 2011 at 2:54 PM, Tim Bordemann <
<email address hidden>> wrote:

> New question #149350 on OpenStack Compute (nova):
> https://answers.launchpad.net/nova/+question/149350
>
> 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).
>

Tim Bordemann (timbo) said : #2

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.

Vish Ishaya (vishvananda) said : #3

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/+question/149350
>
> 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).

Can you help with this problem?

Provide an answer of your own, or ask Tim Bordemann for more information if necessary.

To post a message you must log in.