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.)
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning




print: 

Recent comments
12 hours 55 min ago
14 hours 56 min ago
18 hours 7 min ago
20 hours 26 min ago
21 hours 37 min ago
22 hours 55 min ago
1 day 2 hours ago
1 day 6 hours ago
1 day 6 hours ago
1 day 21 hours ago