Difference between revisions of "Installing Ubuntu on Debian"
From Linux-VServer
(→Prepare debootstrap: Added check since may already have the debootstrap script since it's in the debian testing/lenny version of debootstrap.) |
(→Prepare debootstrap) |
||
Line 2: | Line 2: | ||
__TOC__ | __TOC__ | ||
==Prepare debootstrap== | ==Prepare debootstrap== | ||
− | You will need the debootstrap script for your desired Ubuntu release (eg dapper, feisty). | + | You will need the debootstrap script for your desired Ubuntu release (eg dapper, feisty, gusty). |
− | Check that you have the debootstrap script in <code>/usr/lib/debootstrap/scripts/</code>, eg <code>/usr/lib/debootstrap/scripts/ | + | Check that you have the debootstrap script in <code>/usr/lib/debootstrap/scripts/</code>, eg <code>/usr/lib/debootstrap/scripts/gusty</code>. |
− | If you do not have the debootstrap script for your desired Ubuntu release, download the debootstrap deb | + | If you do not have the debootstrap script for your desired Ubuntu release, the easiest way is to download and install the latest debootstrap deb from [http://packages.debian.org/sid/debootstrap Debian sid]. |
+ | |||
+ | If the script is not available in Debian sid, download Ubuntu's latest release from [http://packages.ubuntu.com/cgi-bin/search_packages.pl?keywords=debootstrap&searchon=names&version=all&release=all here]. (eg, as of April 2007, download the debootstrap deb for feisty). You want the debootstrap from the latest release, even if you want to install a previous release Ubuntu vserver guest. | ||
Extract the Ubuntu scripts from the deb and place them in <code>/usr/lib/debootstrap/scripts/</code>. | Extract the Ubuntu scripts from the deb and place them in <code>/usr/lib/debootstrap/scripts/</code>. | ||
Revision as of 04:34, 1 December 2007
How to install an Ubuntu vserver guest on Debian.
Contents |
Prepare debootstrap
You will need the debootstrap script for your desired Ubuntu release (eg dapper, feisty, gusty).
Check that you have the debootstrap script in /usr/lib/debootstrap/scripts/
, eg /usr/lib/debootstrap/scripts/gusty
.
If you do not have the debootstrap script for your desired Ubuntu release, the easiest way is to download and install the latest debootstrap deb from Debian sid.
If the script is not available in Debian sid, download Ubuntu's latest release from here. (eg, as of April 2007, download the debootstrap deb for feisty). You want the debootstrap from the latest release, even if you want to install a previous release Ubuntu vserver guest.
Extract the Ubuntu scripts from the deb and place them in /usr/lib/debootstrap/scripts/
.
For example, do something like:
$ cd /tmp $ wget http://mirrors.kernel.org/ubuntu/pool/main/d/debootstrap/debootstrap_0.3.3.2ubuntu3_all.deb $ dpkg --extract debootstrap_0.3.3.2ubuntu3_all.deb debootstrap-feisty $ sudo cp debootstrap-feisty/usr/lib/debootstrap/scripts/{warty,warty.buildd,hoary,hoary.buildd,breezy,dapper,edgy,edgy.fakechroot,feisty,feisty.fakechroot} /usr/lib/debootstrap/scripts/
Build
Build with guest architecture the same as host
# vserver feisty-guest build -m debootstrap --hostname feisty-guest --interface dummy0=eth0:10.0.0.123/8 --rootdir /var/lib/vservers -- -d feisty -m http://us.archive.ubuntu.com/ubuntu/
Build 32-bit guest on 64-bit host
# vserver feisty-guest-32 build -m debootstrap --hostname feisty-guest-32 --interface dummy0=eth0:10.0.0.123/8 --rootdir /var/lib/vservers -- -d feisty -m http://us.archive.ubuntu.com/ubuntu/ -- --arch i386
Verify 32-bitness of guest:
host:# file /var/lib/vservers/feisty-guest-32/bin/ls /var/lib/vservers/feisty-guest-32/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.0, dynamically linked (uses shared libs), for GNU/Linux 2.6.0, stripped