HowtoForge - Linux Howtos in English English|HowtoForge.de - Linux-Howtos auf Deutsch Deutsch

The Perfect Xen 3.0.1 Setup For Debian - Page 2

Submitted by falko (Contact Author) (Forums) on Tue, 2006-03-21 18:29. ::

3.1 Installing The Binary Package

Run the following commands:

apt-get remove exim4 exim4-base lpr nfs-common portmap pidentd pcmcia-cs pppoe pppoeconf ppp pppconfig
apt-get install screen ssh debootstrap python python2.3-twisted iproute bridge-utils libcurl3-dev


3.1.1 Install Xen

Then download xen-3.0.1-install-x86_32.tgz from http://www.xensource.com/products/downloads/dl_x30tarball_bt.html with BitTorrent and put it into the /usr/src directory.

cd /usr/src/
tar xvzf xen-3.0.1-install-x86_32.tgz
cd xen-3.0.1-install
./install.sh
mv /lib/tls /lib/tls.disabled

Now Xen is installed. In order to start the Xen services at boot time, do the following:

update-rc.d xend defaults 20 21
update-rc.d xendomains defaults 21 20


3.1.2 Configure The Bootloader And Reboot

Next we add the Xen kernel to Grub, our bootloader. Edit /boot/grub/menu.lst, and before the line ### BEGIN AUTOMAGIC KERNELS LIST add the following stanza:

vi /boot/grub/menu.lst

title Xen 3.0 / XenLinux 2.6.12
kernel /xen.gz dom0_mem=64000
module /vmlinuz-2.6.12-xen0 root=/dev/hda6 ro console=tty0

Make sure that /dev/hda6 is your / partition. Keep in mind what I said about Grub and partitioning in chapter 1!

Now reboot the system:

shutdown -r now

At the boot prompt, Grub should now list Xen 3.0 / XenLinux 2.6.12 as the first kernel and boot it automatically. If your system comes up without problems, then everything is fine!


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Please do not use the comment function to ask for help! If you need help, please use our forum: http://www.howtoforge.com/forums
Comments will be published after administrator approval.
Submitted by Anonymous (Contact Author) (Forums) on Mon, 2006-07-31 19:47.

I just installed the lastest version of Xen and there are a couple additional steps necessary (in at least some configurations).

Specifically, I needed to create an initrd that didn't use devfs.

How I did it; After step 3.1.1:

Install yaird from backports.org
     see http://www.backports.org/instructions.html for how to use backportd.org
      and http://www.backports.org/package.php?search=yaird for specifics of yaird

 

depmod 2.6.16-xen

 

yaird -o /boot/initrd.img-2.6.16-xen 2.6.16-xen

 

Then the /boot/grub/menu.lst should look like

title Xen 3.0 / XenLinux 2.6.12
kernel /xen.gz dom0_mem=64000
module /vmlinuz-2.6.12-xen0 root=/dev/hda6 ro console=tty0
module /initrd.img-2.6.16-xen

--
-billy- warnold@virginiainteractive.org