#!/bin/bash sudo su # update repository apt-get update # install debian xen kernel apt-get install -y linux-image-xen-amd64 xen-tools # configure networking cp /etc/xen/xend-config.sxp /etc/xen/xend-config.sxp.org sed -i 's|(network-script network-dummy)|(network-script network-bridge)|g' /etc/xen/xend-config.sxp # OPTINAL install qemu for HVM guests apt-get -y install qemu # reboot reboot ### OLD ### # debian domO wget http://ftp.de.debian.org/debian/pool/main/l/linux-2.6/linux-modules-2.6.26-2-xen-amd64_2.6.26-15_amd64.deb -P /tmp wget http://ftp.de.debian.org/debian/pool/main/l/linux-2.6/linux-image-2.6.26-2-xen-amd64_2.6.26-15_amd64.deb -P /tmp sudo dpkg -i /tmp/linux-modules-2.6.26-2-xen-amd64_2.6.26-15_amd64.deb sudo dpkg -i /tmp/linux-image-2.6.26-2-xen-amd64_2.6.26-15_amd64.deb cp /boot/grub/menu.lst /boot/grub/menu.lst.$(date -I) wget http://ftp.de.debian.org/debian/pool/main/l/linux-2.6/linux-modules-2.6.18-6-xen-amd64_2.6.18.dfsg.1-24_amd64.deb -P /tmp/ wget http://ftp.de.debian.org/debian/pool/main/l/linux-2.6/linux-image-2.6.18-6-xen-amd64_2.6.18.dfsg.1-24_amd64.deb -P /tmp/ dpkg -i /tmp/linux-modules-2.6.18-6-xen-amd64_2.6.18.dfsg.1-24_amd64.deb dpkg -i /tmp/linux-image-2.6.18-6-xen-amd64_2.6.18.dfsg.1-24_amd64.deb # kernel headers mv /etc/apt/sources.list /etc/apt/sources.list.org vi /etc/apt/sources.list apt-get update apt-get install linux-headers-2.6.26-2-xen-amd64 mv /etc/apt/sources.list.org /etc/apt/sources.list apt-get update # old ubuntu xen installation apt-get -y install ubuntu-xen-server # old ubuntu installation ### LINKS ### http://www.panticz.de/configure_network_bridge http://www.panticz.de/update_debootstrap http://www.chrisk.de/blog/2008/12/how-to-run-xen-in-ubuntu-intrepid-without-compiling-a-kernel-by-yourself/ http://wiki.debian.org/Xen https://help.ubuntu.com/community/Xen ### OLD ### # create directory for xen domains mkdir -p /home/xen/domains # need on hardy i386 ??? mv /lib/tls /lib/tls.disabled # configure loop device (mode 1) echo "options loop max_loop=64" >> /etc/modprobe.d/loop # configure loop device (mode 2) echo "loop max_loop=64" >> /etc/modules
Do you like this page? Then support it. Please click the AD below and visit the sponsor. Thank you!