OpenVZ Forum


Home » General » Support » Existing Templates
Re: Existing Templates [message #748 is a reply to message #735] Mon, 09 January 2006 07:21 Go to previous messageGo to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

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
http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Host: CentOS4, Guest: Debian, apt-get not working, strange problems
Next Topic: 061.1 Kernel RPM Error
Goto Forum:
  


Current Time: Fri Aug 23 14:12:03 GMT 2024

Total time taken to generate the page: 0.03569 seconds