Ask Your Question

Memory state snapshot

asked 2014-11-06 05:25:02 -0500

jbmolle gravatar image


I have installed Openstack Juno on Ubuntu 14.04 servers. I have 3 servers: controller, compute and network. I am developing a streaming cloud app on Android. When a user click on the app on his smartphone, it sends a message to the controller node so that it boots an Ubuntu server instance (with nova). After the booting process, a startup script opens a port on the instance. The Android app receives a response with the IP and port of the instance and start a TCP connection. Data are then streamed accordingly.

My problem is that the booting process is quite long (1 or 2 minutes). The instance is first created, then I need to wait for the Ubuntu boot process and finally the TCP port is opened. Is it possible to create a snapshot that is already in the TCP port opened state? It would be like the "Save State" of VirtualBox. Is it possible to save the memory state inside the snapshot and if yes how to do it and restore it in the instance?

Thanks for your help, JB

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-11-06 06:51:24 -0500

updated 2014-11-06 06:54:14 -0500

Nova suspend/resume capability will help you to acheive this. By the follwoing command you can suspend your instance. Memory state of running VM will be stored on disk, and loaded into memory when the instance brings on:

$ nova suspend INSTANCE_NAME

Also you can resume your VM by the following command:

$ nova resume INSTANCE_NAME

In this case, when your android app sends a request to the openstack, the cloud controller, brings an instance online by resume capability instead of booting a new VM.

See here.

edit flag offensive delete link more

answered 2014-11-06 07:44:07 -0500

jbmolle gravatar image

Great! I thought suspending wasn't realising memory and vCPUs but it indeed does it. Thanks a lot JB

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


Asked: 2014-11-06 05:25:02 -0500

Seen: 797 times

Last updated: Nov 06 '14