Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
7Activity
0 of .
Results for:
No results containing your search query
P. 1
Virtualization With XEN on Debian 5.0.1 Installation and Configuration Tutorial

Virtualization With XEN on Debian 5.0.1 Installation and Configuration Tutorial

Ratings: (0)|Views: 551 |Likes:
Published by saulparada
Virtualization With XEN on Debian 5.0.1 Installation and Configuration Tutorial
Virtualization With XEN on Debian 5.0.1 Installation and Configuration Tutorial

More info:

Published by: saulparada on Jun 25, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/11/2014

pdf

text

original

 
saul
parada
1
V
IRTUALIZATION WITH
XEN
ON
D
EBIAN
5.0.1
 
I
NSTALLATION AND
C
ONFIGURATION
T
UTORIAL
 
This tutorial explains how to install and use XEN for creating and running virtual machines on aDebian Lenny Linux Distribution. It will be explained how to set up image-based virtual machines.
Preliminary Note
Throughout this tutorial is used a machine with Debian Lenny 5.0.1 with hostnameserver.saulparada.com and IP address 192.168.72.128 as host system (dom0). Is also used Debian (Etch)for the virtual machines (domU) as well.Because almost all steps from this tutorial require root privileges, can be either precede allcommands in this tutorial with the string sudo, or become root right at the beginning by typing:$ sudo –iNOTE: XEN 3.4.0 comes with the kernel 2.6.18 which is pretty old. If is using new hardware, thesystem might not boot anymore due to missing drivers.
Installing XEN
Before install XEN, must be installed some pre-requisites:# apt-get install make gcc libc6-dev zlib1g-dev python python-dev python-twisted bridge-utils iproutelibcurl3 libcurl3-dev bzip2 module-init-tools transfig tgif libncurses5-dev patch libvncserver-dev libsdl-dev libjpeg62-dev bcc bin86 gawk pciutils-dev mercurial build-essentialNext is downloaded XEN 3.4.0 and uncompressed it:# cd /usr/src# wget http://bits.xensource.com/oss-xen/release/3.4.0/xen-3.4.0-xen.tar.gz# tar -xvzf xen-3.4.0-xen.tar.gz# cd xen-3.4.0Now is built it as follows:# make world && make distThis can take some time, so please be patient.Afterwards, is installed XEN:# ./install.sh
 
saul
parada
2
The output should look as follows:saulparada:/usr/src/xen-3.4.0# ./install.shInstalling Xen from './dist/install' to '/'...- installing for udev-based system- modifying permissionsAll done.Checking to see whether prerequisite tools are installed...Xen CHECK-INSTALL Wed Jun 24 04:00:38 CEST 2009Checking check_brctl: OKChecking check_crypto_lib: OKChecking check_curl: unused, OKChecking check_iproute: OKChecking check_python: OKChecking check_python_xml: OKChecking check_udev: OKChecking check_xml2: unused, OKChecking check_zlib_lib: OKAll done.Now must be created the system start up links for XEN:# update-rc.d xend defaults 20 21# update-rc.d xendomains defaults 21 20Afterwards, must be open "/etc/modules" and make sure that it has the line
loop max_loop=64
in it:# nano /etc/modules[...]loop max_loop=64Now let's take a look at the "/boot" directory:# ls -l /boot/saulparada:/usr/src/xen-3.4.0# ls -l /boot/total 24468-rw-r--r-- 1 root root 66583 2009-06-24 03:57 config-2.6.18.8-xen-rw-r--r-- 1 root root 91640 2009-05-28 21:41 config-2.6.26-2-686drwxr-xr-x 2 root root 4096 2009-06-24 02:23 grub-rw-r--r-- 1 root root 6180410 2009-06-24 02:20 initrd.img-2.6.26-2-686-rw-r--r-- 1 root root 6182211 2009-06-24 02:20 initrd.img-2.6.26-2-686.bak-rw-r--r-- 1 root root 748030 2009-06-24 03:57 System.map-2.6.18.8-xen-rw-r--r-- 1 root root 927984 2009-05-28 21:41 System.map-2.6.26-2-686-rw-r--r-- 1 root root 1574745 2009-06-24 03:57 vmlinuz-2.6.18.8-xen-rw-r--r-- 1 root root 1506064 2009-05-28 21:40 vmlinuz-2.6.26-2-686
 
saul
parada
3
-rw-r--r-- 1 root root 495535 2009-06-24 03:48 xen-3.4.0.gzlrwxrwxrwx 1 root root 12 2009-06-24 04:00 xen-3.4.gz -> xen-3.4.0.gzlrwxrwxrwx 1 root root 12 2009-06-24 04:00 xen-3.gz -> xen-3.4.0.gzlrwxrwxrwx 1 root root 12 2009-06-24 04:00 xen.gz -> xen-3.4.0.gz-rw-r--r-- 1 root root 7196570 2009-06-24 03:48 xen-syms-3.4.0As can be seen, there is a new kernel,
2.6.18.8-xen
, but no ramdisk for it; therefore must be builtone...# depmod 2.6.18.8-xen# update-initramfs -c -k 2.6.18.8-xen...and update the bootloader:# update-grubNow must be rebooted the system:# rebootAfter login into the system again, by running the instruction
uname –r 
the new XEN kernel shouldshow up:# uname -rsaulparada:~# uname –r2.6.18.8-xen
Installing XEN-TOOLS
It will be used
 xen-tools
to create virtual machines.
 xen-tools
make it very easy to create virtualmachines. Should not be installed the
xen-tools
package from the Debian repository (because it is quiteold), but directly from the repository of the developer in order to get the newest version.For that must be edited the archive "/etc/apt/sources.list"...# nano /etc/apt/sources.list...adding the following line:[...]deb http://apt.steve.org.uk/etch etch main non-free contribThen must be preformed the following commands to update the packets list and install
 xen-tools
:# wget -q http://apt.steve.org.uk/apt-key.gpg -O- | apt-key add - && apt-get update# apt-get install xen-tools

Activity (7)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Dan Lance liked this
connecttomeher liked this
nutncrazy3823 liked this
shab7anon liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->