OpenVZ Forum


Home » General » Support » Best practices to get an "image" of a perfect, fresh-install VM
Best practices to get an "image" of a perfect, fresh-install VM [message #11882] Tue, 10 April 2007 20:18 Go to previous message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
Hi,

here is my question.

I've made myself a bare bone "image" of a VM, so that I don't have to do all my tweaks every time I install a new VM.

What I've done:

To create the image (Step A)
- Suspend the VM
- Tar up the private area
- Dump the state
- Resume the VM

Then, when I want to create a new VM based on this "image"(step B):

- Copy the private area to the destination server
- Create a config
- Restore the state
- Restart

I'm sure I'm doing too many steps...

What would be the best way to create such an image? It is not important to me that the original VM stays up in the process. Would it be posssible to simply stop the VM, then tar up the private area and restart the vm when done instead of my step A?

BTW, I could write an how-to if you'd like...

Regards,

Ugo Bellavance


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: *SOLVED* 2.6.18 & CentOS
Next Topic: TCP: bucket table overflow
Goto Forum:
  


Current Time: Fri Aug 16 10:15:29 GMT 2024

Total time taken to generate the page: 0.02915 seconds