Editing
Installation on Linux 2.6
(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!
== Manual util-vserver Compilation == The kernel alone does not help you, you also need some tools to exploit all those new features you got, so let's get them. === Getting the Sources === You will have to download the latest util-vserver source tarball from our [[Downloads]] section. In this guide we will use util-vserver-0.30.215, but note that for recent kernels and especially development versions of the vserver kernel patch, you'll need a much more recent [http://people.linux-vserver.org/~dhozac/t/uv-testing/ development version]. As a first step, of course, we need to get the sources. <pre> # Go to our source directory cd ~/src # Get the sources for util-vserver wget http://ftp.linux-vserver.org/pub/utils/util-vserver/util-vserver-0.30.215.tar.bz2 # Extract the sources tar xjf util-vserver-0.30.215.tar.bz2 </pre> === Compiling and Installing === Now that we have extracted the util-vserver source we have to do the usual configure, make, make install chain. While configuring the tools you may get some error messages about missing stuff, for example dietlibc, vconfig and e2fs headers. The error messages are accompanied by explanations what you should do, so read them carefully. <pre> # Switch to the util-vserver source directory cd util-vserver-0.30.215 # Configure the sources (you may want to adjust settings here, the defaults work, but may not suit your needs) ./configure --prefix=... --sysconfdir=... --localstatedir=... # Build the tools make # Install the tools make install install-distribution # It's a good point to fix the /proc entries for the guests /etc/init.d/vprocunhide restart (this path depends on configuration, see output of 'vserver-info') </pre> === Enabling VServers on startup === You need to enable 2 initscripts: * <code>vprocunhide</code> - does necessary stuff in <code>/proc</code> * <code>vservers-default</code> - runs vservers marked as 'default' (<code>echo "default" > /etc/vservers/XXX/apps/init/mark</code>) on startup To do so, you can use 'update-rc.d' or 'rcconf' (Debian), 'chkconfig' or 'ntsysv' (Fedora). If you get errors like: <pre> /proc/uptime can not be accessed. Usually, this is caused by procfs-security. Please read the FAQ for more details http://linux-vserver.org/Proc-Security </pre> then you probably need to enable <code>vprocunhide</code>. === Testing your setup === To ensure that your setup works we have created two small test scripts. The testme.sh script ensures basic functionality whereas the testfs.sh script is for inode attribute testing for various filesystems. <pre> # get the script wget http://vserver.13thfloor.at/Stuff/SCRIPT/testme.sh # make it executable chmod +x testme.sh # run the test script ./testme.sh </pre> '''Be careful! The testfs.sh script might easily reformat your hard disk :)''' <pre> # get the script wget http://vserver.13thfloor.at/Stuff/SCRIPT/testfs.sh # make it executable chmod +x testfs.sh # make a loopback file dd bs=1024k count=1024 if=/dev/zero of=1gb.testfile # setup the loopback losetup /dev/loop0 1gb.testfile # run the test script for legacy mode ./testfs.sh -l -t -D /dev/loop0 -M /mnt # run the test script for new-style config ./testfs.sh -t -D /dev/loop0 -M /mnt </pre> If the scripts show any error, be sure to read [[Report a Bug|how to report a bug]] and contact the Linux-VServer Developers for help. See [[Communicate]] for details.
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