Re: Config file not found [message #28241 is a reply to message #28075] |
Wed, 12 March 2008 13:15 |
|
jmelyn wrote on Fri, 07 March 2008 17:13 |
1) In /etc/vz/dists dir are scripts to mainly manage network so that VEs can use network whatever the distro is. The name of the script used is <myDist>.conf and must be the same as the template /vz/template/cache/<myDist>.tar.gz.
|
It should not really be equal. First vzctl looks for the exact myDist.conf file, if this file is unavailable then it tries to remove everything after and including the last dash '-' from my dist and tries again. So, in case myDist is someos-1.2.3-minimal, vzctl tries for someos-1.2.3-minimal.conf, then someos-1.2.3.conf, then someos.conf.
Quote: | The placeholder <myDist> is taken from the file /etc/vz/vz.conf at the line: DEF_OSTEMPLATE="<myDist>".
|
I would say "default" instead of "placeholder", but it's a matter of taste.
Quote: | 2) In /etc/vz/conf dir are settings to put limits to VEs. There is a default config file <VE_limits>.conf-sample
|
In fact the name is ve-<VE_limits>.conf-sample.
Quote: | used to create <VE_id>.conf during the VE creation. The placeholder <VE_limits> is taken from /etc/vz/vz.conf at the line: CONFIGFILE="<VE_limits>".
|
Again I'd say "default".
Quote: | 3) Since /etc/vz/vz.conf got the correct names, there is no need to give arguments to the create command:
# vzctl create 123
|
Right.
Quote: | 4) A limit for one specific VE can be overwritten through the command:
# vzctl set <VE_id> ... --save
and is saved in /etc/vz/conf/<VE_id>.conf file.
|
Right.
PS If you put that all to wiki.openvz.org that'd be great.
Kir Kolyshkin
|
|
|