Re: Existing Templates [message #748 is a reply to message #735] |
Mon, 09 January 2006 07:21 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to previous message](/theme/ovz3/images/down.png) |
|
vmvmvm wrote on Sun, 08 January 2006 09:17 |
1. are their special openvz files in the filesystem that should also be updated? It seems to work either way...
|
No. OpenVZ tries to be as much as a real system, so no special stuff is needed. Also, see below
Quote: | 2. when openvz sets the ip, hostname, etc. is it running commands to do so? Does it just rely on the fact that most linux's will use /etc/resolv.conf for nameservers, etc.?
|
For doing these operations, vzctl relies on a set of scripts in /etc/sysconfig/vz-scripts/dists/scripts/, and a few configs in the /etc/sysconfig/vz-scripts/dists/. vzctl first gets the value of OSTEMPLATE variable from VPS config file, then reads the appropriate config file, then executes the proper script.
So, for this to work properly, OSTEMPLATE should be set in VPS config (and should be valid, e.g. start from the word 'gentoo' for gentoo-based VPS), and a config file and a set of scripts for this OSTEMPLATE should exist.
Kir Kolyshkin
|
|
|