[openvps-dev] OpenVPS and CentOS

Gregory (Grisha) Trubetskoy grisha at ispol.com
Thu Jun 23 00:53:49 EDT 2005


Rod -

AFAIK noone's done this. It actually wouldn't be very easy to do up until 
very resently. Just a week or two ago we introduced a class structure that 
is intended to serve multiple distributions.

Don't know how great your Python skills are, but basically the idead is 
that we have a base class representing a general linux distribution that 
does things that are common to all linuxes (e.g. /etc/passwd can be 
assumed to be in the same place and of the same format pretty much) and 
then subclass it into RedHat, which is then sublcassed to Fedora_Core, 
which in turn is sublcassed to Fedora_Core_1, etc.

If you can get the latest CVS snaposhot, take a look at the 
lib/openvps/host/distro directory. Distro.py contains general distribution 
stuff, RedHat.py and Fedora.py are self-explanatory. CentOS would probably 
belong in a file called CentOS.py which would contain a class CentOS which 
would be a subclass of RedHat.RedHat. Basically look at how FC 3 is done 
in Fedora.py

Our development efforts are mostly focused on FC4 right now, but the next 
distro is likely to be CentOS, but if someone get a head start on it, 
that'd be great.

The classes described above are all kinda raw (as is the rest of OpenVPS), 
but it should be enough to relay the general idea.

Grisha

On Wed, 22 Jun 2005 raanders at mailporter.net wrote:

> What I'd like to do is build ( and document the process ) an OpenVPS 
> inspired CentOS Vserver process.  Before jumping into it I was wondering 
> if anyone as already done/started this?


More information about the dev mailing list