OpenVZ Forum


Home » General » Discussions » Using OpenVZ as a development environment
Re: Using OpenVZ as a development environment [message #4223 is a reply to message #4222] Mon, 03 July 2006 09:06 Go to previous messageGo to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

(1) Install everything that is needed into a VE

(2) Remove VE-specific settings, such as root password and IP address (assuming VEID is 123):
vzctl set 123 --ipdel all --save
vzctl exec 123 /usr/sbin/usermod -L root


(3) Stop the VE:
vzctl stop 123


(4) Tar its private area, like this (assuming VEID is 123):
cd /vz/private/123
tar czf /vz/template/cache/fedora-core-5-i386-my_db_server.tar.gz .


(5) You can now use your new template to create more VEs:
vzctl create 456 --ostemplate fedora-core-5-i386-my_db_server


Please note that your OS template name should start with fedora-core-5, otherwise vzctl will not be able to guess how to set up networking and other parameters inside a VE. In other words, template name should start with linux distro name you use for it.

HTH


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Read Message icon14.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Control Panels
Next Topic: openvz and new kernels
Goto Forum:
  


Current Time: Sat Oct 04 16:11:12 GMT 2025

Total time taken to generate the page: 0.08386 seconds