Editing
VServer Control Daemon HowTo
(section)
From Linix VServer
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==B. Installation== ===I. Kernel=== <br> If you haven't '''booted''' a '''kernel''' which is patched with '''Linux VServer Patch''' till yet, please go first to [http://oldwiki.linux-vserver.org/Step-by-Step+Guide+2.6 Step-by-Step Guide 2.6] and follow the instructions there,<br> before you go further with this '''HowTo'''! ====1. Main focus to the following emphases:==== <pre> #Getting the sources: very important is to look for getting the right kernel version @ http://www.kernel.org/pub/linux/kernel/v2.6/ which is supported from → experimental vserver patch >= 2.1.1-rc29 @ http://vserver.13thfloor.at/Experimental/ for example: → lets use the experimental 'patch-2.6.17.13-vs2.1.1-rc35.diff' wget http://vserver.13thfloor.at/Experimental/patch-2.6.17.13-vs2.1.1-rc35.diff → so we must use the kernel version '2.6.17.13' wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.13.tar.bz2 #Configuring the kernel: #Building the kernel: #Installing the kernel and rebooting: </pre> ===II. VServer Control Daemon=== <br> <pre>First I wanted to say that VServer Control Daemon is in trunk state and therefore it is a little bit buggy, but all of you are invited to find and post bugs, that this program will become stable as soon as possible.</pre> <pre>Now I can proceed, that you have successfully compiled and booted a kernel with → experimental vserver patch >= 2.1.1-rc29</pre> ====1. Base Installation==== <pre>If u use another Linux system than gentoo, try to install the needed releases with the package manager of the linux distribution! And edit this HowTo for others! ;-) </pre> <br> =====a. Solve dependencies===== ======For Debian====== <pre> aptitude install libconfuse-dev libsqlite3-dev sqlite3 subversion There are many depedancies to these packages (most needed). If you have not installed any build tools: aptitude install make gcc libtool NOTE: the xmlrpc package is not up-to-date enough for use and no backports have been found. Download and build the xmlrpc-c package like below. </pre> ======create installation source dir====== <pre> 1. create ~/srcvcd dir mkdir ~/srcvcd 1.1 cd into dir cd ~/srcvcd </pre> ======xmlrpc-c====== <pre> 2. download Xmlrpc-c stable from http://xmlrpc-c.sourceforge.net/downloading.php 2.1 extract xmlrpc-c-1.06.05.tgz tar xzvf xmlrpc-c-1.06.05.tgz 2.2 cd into dir cd ~/srcvcd/xmlrpc-c-1.06.05 2.3 install xmlrpc-c ./configure && make && sudo make install </pre> ======libconfuse====== <pre> 3. download libconfuse wget http://download.savannah.gnu.org/releases/confuse/confuse-2.5.tar.gz 3.1 extract confuse-2.5.tar.gz tar xzvf confuse-2.5.tar.gz 3.2 cd into dir cd ~/srcvcd/confuse-2.5 3.3 install confuse ./configure && make && sudo make install </pre> ======sqlite====== <pre> 4. install sqlite please have a look @ http://www.sqlite.org/ </pre> ======libdbi====== <pre> 5. download libdbi from http://libdbi.sourceforge.net/download.html 5.1 libdbi-0.8.1.tar.gz tar xzvf libdbi-0.8.1.tar.gz 5.2 cd into dit cd ~/srcvcd/libdbi-0.8.1 5.3 install libdbi ./configure && make && sudo make install </pre> ======libtar====== <pre> 6.1 download libtar wget ftp://ftp.feep.net/pub/software/libtar/libtar-1.2.11.tar.gz 6.2 extract libtar-1.2.11.tar.gz tar xzvf libtar-1.2.11.tar.gz 6.3 cd into dir cd ~/srcvcd/libdbi-0.8.1 6.4 install libtar ./configure && make && sudo make install </pre> =====b. Install vcd related repos===== ======lucid====== <pre> 8. checkout lucid svn co http://dev.croup.de/repos/lucid/trunk lucid 8.1 cd into dir cd ~/srcvcd/lucid 8.2 install lucid make -f Makefile.svn && ./configure --prefix=/usr && make && sudo make install </pre> ======libvserver====== <pre> 7. checkout libvserver svn co http://svn.linux-vserver.org/svn/libvserver/trunk libvserver 7.1 cd into dir cd ~/srcvcd/libvserver 7.2 install libvserver make -f Makefile.svn && ./configure --prefix=/usr && make && sudo make install </pre> ======vcd====== <pre> 9.checkout vcd svn co http://svn.linux-vserver.org/svn/vcd/trunk vcd 9.1 cd into dir cd ~/srcvcd/vcd 9.2 install vcd make -f Makefile.svn && ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib --vserverdir=/vservers && make && sudo make install </pre> ======vwrappers====== <pre> 10.1 checkout vwrappers svn co http://svn.linux-vserver.org/svn/vwrappers/trunk vwrappers 10.2 cd into dir cd ~/srcvcd/vwrappers 10.3 install vwrappers make -f Makefile.svn && ./configure --prefix=/usr && make && sudo make install </pre> If everything is installed you can proceed with III. Configuring VServer Control Daemon ====2. Gentoo Installation==== <br> Because of there are no gentoo ebuilds for vcd available at this moment we must use layman to install the vps overlay! <pre> 1. Install layman emerge layman -va 2. Configure /etc/make.conf for using layman echo "source /usr/portage/local/layman/make.conf" >> /etc/make.conf 3. Download overlays layman -f 4. Download vps overlay layman -a vps ---- ###Architecture dependencies### → amd64 5.1 Prepare portage for using latest xmlrpc echo "dev-libs/xmlrpc-c ~amd64" >> /etc/portage/package.keywords 5.2 Prepare portage for using vcd-svn echo "sys-cluster/vcd-svn" ~amd64" >> /etc/portage/package.keywords → x86 5.1 Prepare portage for using latest xmlrpc echo "dev-libs/xmlrpc-c ~x86" >> /etc/portage/package.keywords 5.2 Prepare portage for using vcd-svn echo "sys-cluster/vcd-svn ~x86" >> /etc/portage/package.keywords ---- 6. Prepare portage for using libtar echo "dev-libs/libtar ~x86" >> /etc/portage/package.keywords → works also on amd64 7.1 Prepare portage for installing vcd-svn with clients and server support echo "sys-cluster/vcd-svn client server" >> /etc/portage/package.use 7.2 Prepare portage for installing vcd-svn only with server support echo "sys-cluster/vcd-svn server" >> /etc/portage/package.use 7.3 Prepare portage for installing vcd-svn only with client support echo "sys-cluster/vcd-svn server" >> /etc/portage/package.use 8. Prepare portage for installing xmlrpc server with curl support echo "dev-libs/xmlrpc-c curl" >> /etc/portage/package.use 9. Install vcd and needed packages emerge libvserver-svn lucid-svn vcd-svn vwrappers-svn -va </pre> ---- ===III. Configuring VServer Control Daemon=== ====1. Import vxdb.sql to sqlite DB==== <pre> I use sqlite3 here in this example, so have a look which version you use 10. import the vxdb file sudo sqlite3 /var/lib/vcd/vxdb < /usr/share/vcd/vxdb.sql 11. use vxpassword for changing hash to whirlpool vxpasswd /var/lib/vcd/vxdb <YourUsername> <YourPassword> </pre> ====2. Standard /etc/vcd.conf==== <pre> /* example vcd configuration */ /* IP adress & port to listen on */ #host = 127.0.0.1 #port = 13386 /* Client timeout */ #timeout = 30 /* Logfile */ #logfile = /var/log/vcd.log /* PID file */ #pidfile = /var/run/vcd.pid /* Directory for VXDB, templates and run-time data */ #datadir = /var/lib/vcd /* Base vserver directory */ #vserverdir = /vservers </pre> Change it to your needs! ;-) ----
Summary:
Please note that all contributions to Linix VServer may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Linix VServer:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
About
Overview
Paper
News
Developers
Donations
Search
Getting Started
Downloads
FAQs
Documentation
Support
Participate
How to participate
Report a Bug
Communicate
Teams/Projects
Hall of Fame
Resources
Archives
Recent Wiki Changes
Pastebin
Related Projects
VServer Hosting
Happy VServer Users
Tools
What links here
Related changes
Special pages
Page information