Best practices to get an "image" of a perfect, fresh-install VM [message #11882] |
Tue, 10 April 2007 20:18  |
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
|
|
|
|
|
|