Difference between revisions of "Installation on Ubuntu"

From Linux-VServer

Jump to: navigation, search
(Check Ubuntu's Wiki)
(+cat)
(11 intermediate revisions by 6 users not shown)
Line 1: Line 1:
Fk07QU http://gooooglee.com http://gooooglee.com http://gooooglee.com http://gooooglee.com http://gooooglee.com http://gooooglee.com http://gooooglee.com http://gooooglee.com http://gooooglee.com http://gooooglee.com http://gooooglee.com http://gooooglee.com http://gooooglee.com http://gooooglee.com http://gooooglee.com http://gooooglee.com http://gooooglee.com http://gooooglee.com
+
== Disclaimer ==
 +
If you are running a system in production you should probably consider building your own kernel based on the vanilla kernel source as described here: [[Installation_on_Linux_2.6]]
  
== Vserver Kernel on Ubuntu Dapper with grsecurity ==
+
The binary kernel images provided here are neither official ubuntu nor official Linux-VServer kernel images.
  
=== Prerequisites ===
+
If you have any problems with those kernels please send a mail to the VServer [http://list.linux-vserver.org/ mailinglist] and please '''do not file any bugs on the ubuntu bugtracker'''.
  
* 32 Bit Ubuntu Dapper.
+
If you are interested in a different kernel config or have prepared a patch for newer kernels, do not hesitate to contact the VServer [http://list.linux-vserver.org/ mailinglist].
* installed packages:
+
  
apt-get install build-essential gcc make g++ libncurses5-dev
+
== Lucid ==
 +
Kernel Version: 2.6.32
  
=== Howto Devel 2.6.17.14-vs2.0.2.1-grsec2.1.9 ===
+
Vserver patch: 2.3.0.36.29.4
  
==== Get the Kernel ====
+
Status: experimental
* Kernel files + patch from http://linux-vserver.org/
+
** get linux-2.6.17.14.tar.bz2 und patch-2.6.17.14-vs2.0.2.1-grsec2.1.9.diff
+
*** http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.14.tar.bz2
+
*** http://people.linux-vserver.org/~harry/patch-2.6.17.14-vs2.0.2.1-grsec2.1.9.diff
+
cd /usr/src/ && mkdir kernel && cd kernel
+
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.14.tar.bz2
+
wget http://people.linux-vserver.org/~harry/patch-2.6.17.14-vs2.0.2.1-grsec2.1.9.diff
+
tar xfjv linux-2.6.17.14.tar.bz2
+
cd linux-2.6.17.14
+
  
==== Patch the Kernel ====
+
=== Known Limitations ===
cat ../patch-2.6.17.14-vs2.0.2.1-grsec2.1.9.diff | patch -p1
+
* linux-image
cp /boot/vmlinuz-2.6.15-26-server
+
** CONFIG_AUFS has been disabled
make oldconfig
+
make menuconfig
+
  
==== Make the Kernel ====
+
== Karmic ==
make # this will take a long time
+
Kernel Version: 2.6.31
make install
+
make modules_install
+
mkinitramfs -o /boot/initrd.img-2.6.17.14-grsec2.1.9-vs2.0.2.1 2.6.17.14-grsec2.1.9-vs2.0.2.1
+
vi /boot/grub/menu.lst
+
The Boot entry should look like this
+
title          Ubuntu, 2.6.17.14-vs2.0.2.1-grsec2.1.9
+
root            (hd0,0)
+
kernel          /boot/vmlinuz-2.6.17.14-grsec2.1.9-vs2.0.2.1 root=/dev/sda1 ro quiet splash
+
initrd          /boot/initrd.img-2.6.17.14-grsec2.1.9-vs2.0.2.1
+
savedefault
+
boot
+
  
==== Test the Kernel ====
+
Vserver patch: 2.3.0.36.19
  
* boot Kernel
+
Status: experimental
* ''uname -r'' should show
+
2.6.17.14-grsec2.1.9-vs2.0.2.1
+
* run Testscripts
+
* http://oldwiki.linux-vserver.org/TestScripts
+
  
== Alternate Method ==
+
=== Known Limitations ===
 +
* linux-image
 +
** CONFIG_AUFS has been disabled
  
This is based on [http://oldwiki.linux-vserver.org/UbuntuVserverHowTo UbuntuVserverHowTo] on the old wiki, updated with new links that work as of December 2006.
+
== Jaunty ==
 +
Kernel Version: 2.6.28
  
This is NOT COMPLETE -- remove this message when you get it to work!
+
Vserver patch: 2.3.0.36.9
  
==== Get the Kernel ====
+
Status: experimental
apt-get install linux-source-2.6.17 kernel-package linux-kernel-devel
+
cd /usr/src
+
tar xjvf linux-source-2.6.17.tar.bz2
+
  
==== Patch the Kernel ====
+
=== Known Limitations ===
cd linux-source-2.6.17/
+
* linux-image
wget http://vserver.13thfloor.at/Experimental/OLD-2.0/patch-2.6.17.13-vs2.0.2.1.diff
+
** CONFIG_AUFS has been disabled
  patch -p1 < *diff
+
* linux-headers
vi Makefile
+
** Up to version 2.6.28-11.42~ppa1 the linux-headers package was broken which broke external modules built manually or via dkms (nvidia, virtualbox). If you are experiencing problems with one of those modules please update to the latest package version and rebuild the modules. For modules built via dkms this can be done with:
fix the EXTRAVERSION to be -vs2.0.2
+
dkms remove -m <modulename> -v <moduleversion> -k 2.6.28-11-vserver
  cp /boot/config-2.6.17-10-generic .config
+
  dkms build -m <modulename> -v <moduleversion> -k 2.6.28-11-vserver
 +
  dkms install -m <modulename> -v <moduleversion> -k 2.6.28-11-vserver
  
# take all the defaults
+
== Intrepid ==
yes '' |  make oldconfig
+
Kernel Version: 2.6.27
  
====  Make the Kernel ====
+
Vserver patch: 2.3.0.36.4
time make    # this will take quite a while
+
make-kpkg --initrd binary
+
  
== Problems ==
+
Status: experimental
  
When you recieve a 'Segmentation fault' error running vserver-utils try useing latest [http://www.fefe.de/dietlibc/ dietlibc]
+
The util-vserver package from intrepid seems to be broken (see: [https://bugs.launchpad.net/ubuntu/+source/util-vserver/+bug/338390 Ubuntu Bug]), therefore I have rebuild the jaunty version for intrepid. This version ships with unstripped binaries due to another [https://bugs.launchpad.net/ubuntu/+source/dietlibc/+bug/254790 Ubuntu Bug].
+
wget http://www.fefe.de/dietlibc/<insert version here>
+
tar jxvf dietlibc*
+
cd dietlibc
+
more README
+
  
Or alternatively, use debian packages. The binaries are staticly linked as far as I known so it doesn't matter.
+
=== Known Limitations ===
Feity and up gcc version won't let you compile correctly dietlibc yet.
+
* linux-image
 +
** CONFIG_AUFS has been disabled
  
 +
== Repository ==
 +
You can add the following key to your apt keyring:
  
== Ubuntu Gutsy Information ==
+
<nowiki>sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com BB9BFB5B</nowiki>
This is a note on creating Ubuntu Gutsy as a guest on an Ubuntu Gutsy host. To create the Ubuntu Gutsy host, follow the combination of the [[Installation on Linux 2.6]] wiki page and the [[Installation on Ubuntu]] wiki page.
+
  
To create the guest system, do these commands:
+
=== Lucid ===
# apt-get install debootstrap
+
# vserver vserver1 build -m debootstrap --hostname=vserver1.mydomain.com --interface eth0:192.168.1.10/24 -- -d gutsy -m http://ftp.ubuntu.com/ubuntu
+
# vserver vserver1 start
+
# vserver vserver1 enter
+
  
To get networking work on the guest, try the tips from www.unixshell.com/wiki/index.php/creating_and_using_vserver_virtual_servers.
+
Add the following line to your sources.list:
  
== Ubuntu Hardy Information ==
+
deb http://ppa.launchpad.net/christoph-lukas/ppa/ubuntu lucid main
If kernel is patched, compiled and installed from source as described in [[Installation on Linux 2.6]], and also in Dapper section above, this alternative method can be used to create an initrd image after modules are successfully installed (assuming the kernel source is 2.6.22.19 and vserver patch is 2.2.0.7):
+
  deb-src http://ppa.launchpad.net/christoph-lukas/ppa/ubuntu lucid main
  update-initramfs -k 2.6.22.19-vs2.2.0.7 -c
+
  
Look up man 8 update-initramfs for details.
+
=== Karmic ===
 +
 
 +
Add the following line to your sources.list:
 +
 
 +
deb http://ppa.launchpad.net/christoph-lukas/ppa/ubuntu karmic main
 +
deb-src http://ppa.launchpad.net/christoph-lukas/ppa/ubuntu karmic main
 +
 
 +
=== Jaunty ===
 +
 
 +
Add the following line to your sources.list:
 +
 
 +
deb http://ppa.launchpad.net/christoph-lukas/ppa/ubuntu jaunty main
 +
deb-src http://ppa.launchpad.net/christoph-lukas/ppa/ubuntu jaunty main
 +
 
 +
=== Intrepid ===
 +
 
 +
Add the following line to your sources.list:
 +
 
 +
deb http://ppa.launchpad.net/christoph-lukas/ppa/ubuntu intrepid main
 +
deb-src http://ppa.launchpad.net/christoph-lukas/ppa/ubuntu intrepid main
 +
 
 +
== Installation ==
 +
 
 +
aptitude update
 +
aptitude install linux-image-vserver linux-headers-vserver util-vserver
 +
 
 +
== Running Ubuntu vservers ==
 +
 
 +
If you are running Ubuntu vservers you may be interrested by the following page dealing with [[Upstart_issues|Upstart issues]] specially with karmic and superior versions.
  
 
== Useful Links ==
 
== Useful Links ==
  
* http://www2.uni-klu.ac.at/support/VServer
+
* https://launchpad.net/~christoph-lukas/+archive/ppa
 
* https://help.ubuntu.com/community/VServer
 
* https://help.ubuntu.com/community/VServer
 +
* http://www2.uni-klu.ac.at/support/VServer
 
* http://ubuntu.uni-klu.ac.at/ubuntu.uniklu/dists/dapper/uniklu-vserver/  
 
* http://ubuntu.uni-klu.ac.at/ubuntu.uniklu/dists/dapper/uniklu-vserver/  
 
* http://www.howtoforge.com/linux_vserver_debian
 
* http://www.howtoforge.com/linux_vserver_debian
 
* http://linux.gyakg.u-szeged.hu/~pasztor/ubuntu-vs/
 
* http://linux.gyakg.u-szeged.hu/~pasztor/ubuntu-vs/
 +
 +
[[Category:Installation]]

Revision as of 20:13, 21 October 2011

Contents

Disclaimer

If you are running a system in production you should probably consider building your own kernel based on the vanilla kernel source as described here: Installation_on_Linux_2.6

The binary kernel images provided here are neither official ubuntu nor official Linux-VServer kernel images.

If you have any problems with those kernels please send a mail to the VServer mailinglist and please do not file any bugs on the ubuntu bugtracker.

If you are interested in a different kernel config or have prepared a patch for newer kernels, do not hesitate to contact the VServer mailinglist.

Lucid

Kernel Version: 2.6.32

Vserver patch: 2.3.0.36.29.4

Status: experimental

Known Limitations

  • linux-image
    • CONFIG_AUFS has been disabled

Karmic

Kernel Version: 2.6.31

Vserver patch: 2.3.0.36.19

Status: experimental

Known Limitations

  • linux-image
    • CONFIG_AUFS has been disabled

Jaunty

Kernel Version: 2.6.28

Vserver patch: 2.3.0.36.9

Status: experimental

Known Limitations

  • linux-image
    • CONFIG_AUFS has been disabled
  • linux-headers
    • Up to version 2.6.28-11.42~ppa1 the linux-headers package was broken which broke external modules built manually or via dkms (nvidia, virtualbox). If you are experiencing problems with one of those modules please update to the latest package version and rebuild the modules. For modules built via dkms this can be done with:
dkms remove -m <modulename> -v <moduleversion> -k 2.6.28-11-vserver
dkms build -m <modulename> -v <moduleversion> -k 2.6.28-11-vserver
dkms install -m <modulename> -v <moduleversion> -k 2.6.28-11-vserver

Intrepid

Kernel Version: 2.6.27

Vserver patch: 2.3.0.36.4

Status: experimental

The util-vserver package from intrepid seems to be broken (see: Ubuntu Bug), therefore I have rebuild the jaunty version for intrepid. This version ships with unstripped binaries due to another Ubuntu Bug.

Known Limitations

  • linux-image
    • CONFIG_AUFS has been disabled

Repository

You can add the following key to your apt keyring:

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com BB9BFB5B

Lucid

Add the following line to your sources.list:

deb http://ppa.launchpad.net/christoph-lukas/ppa/ubuntu lucid main
deb-src http://ppa.launchpad.net/christoph-lukas/ppa/ubuntu lucid main

Karmic

Add the following line to your sources.list:

deb http://ppa.launchpad.net/christoph-lukas/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/christoph-lukas/ppa/ubuntu karmic main

Jaunty

Add the following line to your sources.list:

deb http://ppa.launchpad.net/christoph-lukas/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/christoph-lukas/ppa/ubuntu jaunty main

Intrepid

Add the following line to your sources.list:

deb http://ppa.launchpad.net/christoph-lukas/ppa/ubuntu intrepid main
deb-src http://ppa.launchpad.net/christoph-lukas/ppa/ubuntu intrepid main

Installation

aptitude update
aptitude install linux-image-vserver linux-headers-vserver util-vserver

Running Ubuntu vservers

If you are running Ubuntu vservers you may be interrested by the following page dealing with Upstart issues specially with karmic and superior versions.

Useful Links

Personal tools