[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] [HOWTO] Xen 3.1.0 on Debian etch amd64



Hello,

attached is a little guide (in mediawiki notation) how to cleanly install xen 3.1.0 on debian etch amd64.

Suggestions welcome!

Regards,
Bjoern
=Introduction=
How to install xen 3.1.0 on debian etch amd64, the "Debian way". We try to only 
install the hypervisor and tools and keep the debian maintained kernel 
2.6.18-4-xen-amd64.

=Installation=

Deinstall old xen stuff:

 /etc/init.d/xendomains stop
 /etc/init.d/xend stop
 dpkg --purge xen-hypervisor-3.0.3-1-amd64 xen-utils-3.0.3-1 xen-utils-common
 update-grub
 reboot

Now install needed packages for xen 3.1.0:

 apt-get install libssl0.9.7 

Download xen 3.1.0, unzip, customize and install it (see 
http://www.xensource.com/download/dl_31tarballs.html for downloads):

 # download + unzip
 mkdir /usr/src/xen
 cd /usr/src/xen
 wget 
http://bits.xensource.com/oss-xen/release/3.1.0/bin.tgz/xen-3.1.0-install-x86_64.tgz
 tar xzf xen-3.1.0-install-x86_64.tgz
 
 # customize the debian way
 cd dist
 chown -R root.root .
 cd install/etc
 mv sysconfig default

 # debian network way
 cd xen                             # /usr/src/xen/dist/install/etc/xen
 echo -e '#!/bin/sh\n\nexit 0' > scripts/network-dummy
 chmod 755 scripts/network-dummy
 perl -pi.bak -e 's@^\(network-script\ network-bridge\)$@\(network-script 
network-dummy\)@' xend-config.sxp
 rm -f xend-config.sxp.bak
 
 # debian dirs and startup links
 cd ..                              # /usr/src/xen/dist/install/etc
 perl -pi.bak -e 
's@LOCKFILE=/var/lock/subsys/xendomains@LOCKFILE=/var/lock/xendomains@' 
init.d/xendomains
 rm -f init.d/xendomains.bak
 perl -pi.bak -e 
's@XENDOM_CONFIG=/etc/sysconfig/xendomains@XENDOM_CONFIG=/etc/default/xendomains@'
 init.d/xendomains
 rm -f init.d/xendomains.bak
 for i in 0 1 2 3 4 5 6 ; do mkdir rc$i.d ; done
 for i in 0 1 6 ; do cd rc$i.d ; ln -sf ../init.d/xend K21xend ; ln -sf 
../init.d/xend K20xendomains ; cd .. ; done
 for i in 2 3 4 5 ; do cd rc$i.d ; ln -sf ../init.d/xend S20xend ; ln -sf 
../init.d/xend S21xendomains ; cd .. ; done
 
 # /usr/lib64 on debian etch amd64 is a symlink to /usr/lib, this is a hack to 
make dpkg accept the checkinstall xen deb.
 cd ../usr                          # /usr/src/xen/dist/install/usr
 mv -f lib64/xen/bin lib/xen/
 rm -rf lib64/xen
 mv -f lib64/* lib/*
 rm -rf lib64
 
 # remove xen kernel stuff, we use debians kernel
 cd ..                              # /usr/src/xen/dist/install
 rm -rf lib
 rm -f boot/vmlinux-syms-2.6.18-xen boot/vmlinuz-2.6.18-xen 
boot/vmlinuz-2.6-xen boot/System.map-2.6.18-xen boot/config-2.6.18-xen
 
 # install it with checkinstall
 # (you need to get checkinstall via unstable or from homepage 
http://asic-linux.com.mx/~izto/checkinstall/
 #
 cd ..                              # /usr/src/xen/dist
 mv dist xen-hypervisor-and-tools-3.1.0
 checkinstall -D ./install.sh

Don't forget to update grub:

 update-grub

You should see something like:

 Found Xen hypervisor 3.1.0,  kernel: /boot/vmlinuz-2.6.18-4-xen-amd64

Now reboot and have fun!

[[Kategorie:Xen]]
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.