Installing Xen 3.3 With Kernel 2.6.27 On Ubuntu 8.10 (x86_64)
|
Submitted by falko (Contact Author) (Forums) on Sun, 2009-02-22 19:26. :: Ubuntu | Xen | Virtualization
Installing Xen 3.3 With Kernel 2.6.27 On Ubuntu 8.10 (x86_64)Version 1.0 This tutorial shows how you can install Xen 3.3 on an Ubuntu 8.10 host (dom0). Xen 3.3 is available from the Ubuntu 8.10 repositories, but the Ubuntu 8.10 kernels (2.6.27-x) are domU kernels, i.e., they work for Xen guests (domU), but not for the host (dom0). Therefore we need to build our own dom0 kernel. This guide explains how to do this with a 2.6.27 kernel. I do not issue any guarantee that this will work for you!
1 Preliminary NoteI'm using an Ubuntu 8.10 x86_64 system with the hostname server1.example.com and the IP address 192.168.0.100 as the host system (dom0). I will use Debian Lenny for the virtual machines (domU). This guide will explain how to set up image-based virtual machines and also LVM-based virtual machines. I'm running all the steps in this tutorial with root privileges, so make sure you're logged in as root: sudo su
2 Installing XenFirst upgrade your system... apt-get upgrade ... and install the latest kernel from the Ubuntu repositories: apt-get install linux-image-server linux-server Next we install Xen 3.3 and the prerequisites for building our dom0 kernel: apt-get install ubuntu-xen-server build-essential libncurses5-dev gawk mercurial Now we download the sources of the 2.6.27 Xen kernel... mkdir -p ~/build/linux-2.6.27-xen ... and configure the kernel: cd linux-2.6.27-xen.hg In the kernel configuration menu, make sure that you select the following options: General setup ---> Choose SLAB allocator (SLUB (Unqueued Allocator)) ---> (X) SLAB Processor type and features ---> Subarchitecture Type (PC-compatible) ---> (X) Enable Xen compatible kernel Bus options (PCI etc.) ---> [*] PCI support Change <M> 802.1d Ethernet Bridging to <*> 802.1d Ethernet Bridging: Networking support ---> Networking options ---> <*> 802.1d Ethernet Bridging Disable 10000 Mbit Ethernet (otherwise the build process will most likely fail): Device Drivers ---> [*] Network device support ---> [ ] Ethernet (10000 Mbit) ---> Make the Xen section look as follows (make sure you select Xen version compatibility (3.0.4 and later) instead of Xen version compatibility (3.0.2 and later)): Device Drivers ---> XEN ---> [*] Privileged Guest (domain 0) Afterwards we build and install the kernel as follows: make O=~/build/linux-2.6.27-xen/ Now take a look at the /boot directory: ls -l /boot/ root@server1:~# ls -l /boot As you see, there's a new kernel, 2.6.27.5, but no ramdisk for it; therefore we build one... depmod 2.6.27.5 ... and update our bootloader: update-grub Afterwards we open /etc/modules and make sure that we have the line loop max_loop=64 in it (this step is needed only if you want to create image-based virtual machines - you can skip it if you want to create LVM-based virtual machines): vi /etc/modules
Then reboot the system: reboot Run uname -r after the reboot and your new Xen kernel should show up: root@server1:~# uname -r
|
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
One number. one voicemail. Seize the lead with Sprint. Learn more
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning
Learn benefits of Simpana software.
View the Gartner Video
Sprint 4G - The Ultimate Mobile Broadband
Click here
SAP-Business Objects Crystal Reports Server
Complete reporting without hidden costs. Free Trial




print: 

Recent comments
19 hours 24 min ago
22 hours 15 min ago
1 day 3 hours ago
1 day 3 hours ago
1 day 4 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 13 hours ago
1 day 17 hours ago
1 day 18 hours ago