The Perfect Xen Setup For Debian And Ubuntu - Page 3
|
3.2 Installing From The Sources Run the following commands: apt-get remove exim4 exim4-base lpr nfs-common portmap pidentd pcmcia-cs pppoe pppoeconf ppp pppconfig
3.2.1 Install Xen Now execute these commands: wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.11.12.tar.bz2 tar -xvzf archive/xen-2.0.7-src.tgz cd xen-2.0 make install Now Xen is installed. In order to start the Xen services at boot time, do the following: update-rc.d xend defaults 20 21
3.2.2 Compile A New dom0 Kernel Next we compile a new dom0 kernel with Xen-, iptables-, quota-, and dummy support. The kernel will be installed to ~/xen/install so that we can save it for other machines. From ~/xen/install we will install it to the real locations. Xen works with kernel 2.6.11, so I take the latest 2.6.11 kernel (2.6.11.12) instead of newer kernels, e.g. 2.6.14. cd .. cd linux-2.6.11.12 In the kernel configuration menu that shows up we have to enable quota, iptables and the dummy network driver as modules. This is where you enable these modules: File systems --> [*] Quota support Device Drivers ---> Networking support ---> <M> Dummy net driver support Device Drivers ---> Networking support ---> Networking options ---> [*] Network packet filtering (replaces ipchains) ---> IP: Netfilter Configuration ---> <M> IP tables support (required for filtering/masq/NAT) [*] means: build into the kernel statically. Now we install the kernel to ~/xen/install: make modules Finally, we copy the kernel to the "real" locations: cd ../install/ (If you are interested, this is my dom0 kernel configuration.)
3.2.3 Configure The Bootloader And Reboot Next we add our new kernel to Grub, our bootloader. Edit /boot/grub/menu.lst, and before the line ### BEGIN AUTOMAGIC KERNELS LIST add the following stanza:
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 2.0.7 / XenLinux 2.6.11.12-xen0 as the first kernel and boot it automatically. If your system comes up without problems, then everything is fine!
3.2.4 Compile A New domU Kernel Now we compile a new domU kernel for our virtual machines. Again, we install the kernel in ~/xen/install and copy it to the real location afterwards: cd ~/xen cd linux-2.6.11.12 In the kernel comfiguration menu that shows up we have to enable quota and iptables as modules (it is important that they are modules. I could not get iptables to work in a virtual machine when I compiled it into the kernel statically!). This is where you enable these modules: File systems --> [*] Quota support Device Drivers ---> Networking support ---> Networking options ---> [*] Network packet filtering (replaces ipchains) ---> IP: Netfilter Configuration ---> <M> IP tables support (required for filtering/masq/NAT) [*] means: build into the kernel statically. Now we install the kernel to ~/xen/install: make modules Finally, we copy the kernel to the "real" locations: cd ../install/ (This is my domU kernel configuration.)
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com




print: 
Recent comments
5 hours 7 min ago
5 hours 11 min ago
6 hours 9 min ago
9 hours 13 min ago
13 hours 39 min ago
17 hours 26 min ago
18 hours 31 min ago
19 hours 7 min ago
20 hours 35 min ago
1 day 37 min ago