OpenVZ Forum


Home » General » Support » Red Hat Linux 8 Template or Metadata?
Re: Red Hat Linux 8 Template or Metadata? [message #2178 is a reply to message #2175] Thu, 23 March 2006 22:14 Go to previous messageGo to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

That could be done.

You have two options -- moving your existing physical server into a VPS (a.k.a. P2V migration), or creating a template of RHL8, then creating a VPS, and finally installing your application into that VPS.

P2V is easier than you think. Basically, you need to rsync your whole server into a directory.

(1) Do stop all the sensible applications on your physical server before that (like a database), so data will be consistent. It is actually recommended to stop everything but ssh, in case you are not sure.

(2) Rsync the entire server into a directory on your OpenVZ box, like /vz/private/456/

(3) Modify a few files under /vz/private/456 so it will suit a virtual environment. First is /etc/fstab -- comment out all the mount entries which deals with real devices (such as /dev/hd* and /dev/sd*). Second is /etc/inittab -- comment out *getty entries, as there are no consoles in a VPS. For RHL8 this should be sufficient, or probably there is something else I forget about...

(4) Create a VPS config, like this:
vzctl set 456 --applyconfig vps.basic

Then, assign an IP for the VPS (vzctl set 456 --ipadd x.x.x.x).

(5) Try to start your VPS:
vzctl start 456

(6) Enter a VPS and troubleshoot for the problems. Most probably, you need to increase some UBC parameters (if failcnt>0 for some entries in /proc/user_beancounters). Search this forum for the detailed info of how to tune UBCs.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *SOLVED* VPS automatic reboot at 4:30 a.m.???
Next Topic: Split a server into security units - what is the best way?
Goto Forum:
  


Current Time: Sun Oct 13 15:36:06 GMT 2024

Total time taken to generate the page: 0.05979 seconds