Following bellow is build Xen Host on top Ubuntu 9.10 Server.It is based on direct clone via “hg” and build Xen 3.4.3-rc4 from xensource.com , applying Andrew Lyon’s 2.6.31 patch set V12 to vanilla kernel 2.6.31.12 along with tuning patched kernel via “make menuconfig” and building aka Suse xenified kernel in Ubuntu 9.10 environment.Notice that forward porting of original patch set was done by Jan Beulich for 2.6.31.8 kernel on OpenSuse 11.2. Built in patched kernel open-source NVIDIA and Radeon HD drivers work just fine on Ubuntu 9.10, providing Gnome Desktop Environment right away.
# cd /usr/src/build/
# wget http://gentoo-xen-kernel.googlecode.com/files/xen-patches-2.6.31-12.tar.bz2
4.Untar linux-2.6.31.12.tar.bz2 and apply patches.
# cd /usr/src/build/
# bzcat linux-2.6.31.8.tar.bz2 | tar xf -
# mkdir -p xen-patches-2.6.31-12
# cd xen-patches-2.6.31-12
# bzcat ../xen-patches-2.6.31-12.tar.bz2 | tar xf -
# cd ../linux-2.6.31.8
Run script
#!/bin/bash
for P in `ls ../xen-patches-2.6.31-12/6*.patch1 | sort `
do
patch -p1 -s -i $P
if [ $? = 0 ]; then
echo $P applied
else
echo "Error processing "$P
exit 1
fi
done
Build kernel :-
# make menuconfig
Processor type and features ->
[*] Symmetric multi-processing support
[ ] Support sparse irq numbering
[*] Enable MPS table
[*] Enable Xen compatible kernel
[*] Single-depth WCHAN output
Processor family (Generic-x86-64) --->
[ ] Configure Maximum number of SMP Processors and NUMA Nodes
(64) Maximum number of CPUs
Preemption Model (No Forced Preemption (Server)) --->
[ ] Machine Check Exception
Device Drivers -> XEN
[*] Privileged Guest (domain 0)
<*> Backend driver support
<*> Block-device backend driver
<*> Block-device tap backend driver
<*> Block-device tap backend driver 2
>*> Network-device backend driver
(8) Maximum simultaneous transmit requests (as a power of 2)
[ ] Pipelined transmitter (DANGEROUS)
< > Network-device loopback driver
<*> PCI-device backend driver
PCI Backend Mode (Virtual PCI) --->
[ ] PCI Backend Debugging
< > TPM-device backend driver
<M> SCSI backend driver
<M> USB backend driver
<M> Block-device frontend driver
<M> Network-device frontend driver
<M> Network-device frontend driver acceleration for Solarflare NICs
<M> SCSI frontend driver
<M> USB frontend driver
[*] Taking the HCD statistics (for debug)
<*> User-space granted page access driver
<*> Framebuffer-device frontend driver
# make -j(x)(number_of_cores)
# make modules_install install
# mkinitramfs -o /boot/initrd-2.6.31.12.img 2.6.31.12
Different option is to install pvops enabled kernel 2.6.32.9 via download :-
# git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen
# cd linux-2.6-xen
# git checkout origin/xen/stable -b xen/stable
Notice :-
# git checkout origin/xen/master -b xen/master
will result building the most recent 2.31.6 version of pvops kernel. Branch above , actually is not required to be checked out . It’s default branch of “git clone”. Difference in meantime is “acpi” branch not merged yet to xen/stable. However, APIC rework has been committed for 2.6.32.9.
# make menuconfig
# make
# make modules_install install
# mkinitramfs -o /boot/initrd-2.6.32.9.img 2.6.32.9
With the most recent 2.6.32.9 i was able to enable DRM for Radeon and get positive dmesg report on F12 and Ubuntu Karmic Koala Server.
To test 2.6.31.12 xenified aka Suse kernel setup Xen 3.4.3 on to top of Ubuntu Karmic Server. First – install on Ubuntu Karmic Server all packages required for Xen build along with Ubuntu-Desktop ( via tasksel). Of course, Xen Host doesn’t require GUI. Install Ubuntu-Desktop just make work comfortable and faster.
apt-get install libcurl4-openssl-dev \
xserver-xorg-dev \
python2.6-dev \
mercurial gitk \
build-essential \
libncurses5-dev \
uuid-dev gawk \
gettext texinfo bcc
Second – build Xen from source
# cd /usr/src
# hg clone http://xenbits.xensource.com/xen-3.4-testing.hg
# cd xen-3.4-testing.hg
Set in Config.mk
PYTHON = python
PYTHON_PREFIX_ARG =
# make install-xen
# make install-tools
# make install-stubdom
Tuning Config.mk results Xen packages to be placed into /usr/local/lib/python2.6/dist-packages due to Changeset 19594 in xen-3.4-testing.hg. Otherwise, Xen packages would go to /usr/lib/python2.6/site-packages, which is not default location for python 2.6 on Ubuntu 9.10 ( vs F12 ). Thus you won’t be able to start xend in Dom0. Same thing happens when building Xen Unstable on Ubuntu 9.10 Server.
Add entry to /boot/grub/grab.cfg:-
menuentry "Xen 3.4 / Ubuntu 9.10 kernel 2.6.31.12 xenified" {
insmod ext2
set root=(hd1,8)
multiboot (hd1,8)/boot/xen-3.4.gz
module (hd1,8)/boot/vmlinuz-2.6.31.12
module (hd1,8)/boot/initrd-2.6.31.12.img
}
and rebooted into xen host.Tested OSOL 133 PV DomU,F12 PV DomU, Ubuntu Kamic HVM and PV DomUs sharing same image device.
- 浏览: 1319071 次
- 性别:
- 来自: 广州
最新评论
-
GuolinLee:
markmark
JVM调优总结 -Xms -Xmx -Xmn -Xss -
di1984HIT:
写的太好啊。
JVM调优总结 -Xms -Xmx -Xmn -Xss -
javajdbc:
javajdbc 写道
JVM调优总结 -Xms -Xmx -Xmn -Xss -
javajdbc:
...
JVM调优总结 -Xms -Xmx -Xmn -Xss -
alvin198761:
非常感谢,国外的被封杀了,你这里还有一份
How to Convert An Image-Based Guest To An LVM-Based Guest
相关推荐
2. **XENconfig-linux-2.6.31.8+xen.txt** - 包含了必要的配置信息,用于指导安装过程中的关键步骤。 该脚本承诺用户无需额外配置即可完成半虚拟化平台的安装。值得注意的是,在使用脚本之前,需要去除文件名后的....
1. 虚拟化支持:2.6.20.1 版本进一步加强了对虚拟化技术的支持,包括 Xen 和 KVM(Kernel-based Virtual Machine)。这使得在单个硬件平台上运行多个操作系统实例成为可能。 2. 文件系统改进:这个版本包含了对多种...
Linux 2.6.30.4 是 Linux 内核的一个特定版本,它代表了Linux操作系统在2009年中期的一个稳定更新。这个版本的内核包含了诸多改进、修复和新特性,使得它能够更好地支持硬件、提高系统性能以及增强安全性。Linux内核...
2. **虚拟化技术**:内核2.6.29.1可能加强了KVM(Kernel-based Virtual Machine)的支持,使得虚拟机的性能更优,同时可能引入了对其他虚拟化技术如Xen的改进,以提高服务器的资源利用率和多租户环境下的隔离性。...
radhat el5 安装oracle rac需要用到的包kernel-xen-2.6.18-53.el5.i686.rpm
Photoshop滤镜Alien Skin Xenofex 2.6.1.1078是一款针对图像处理的专业级插件,由知名软件开发公司Alien Skin出品。这款滤镜集为图像设计师提供了丰富的特效和创意工具,使他们能够在Photoshop中轻松实现独特的视觉...
请与installXen_linux-2.6.31.8+xen-4.1.2.sh.txt配合使用.....
《深入理解Linux内核Xen开发环境:kernel-xen-devel-2.6.18-8.el5.i686.rpm》 在Linux系统的世界里,内核是操作系统的核心,负责管理和调度系统的资源,而Xen则是一款强大的开源虚拟化技术,它允许在一个单一的物理...
这时,我们应该看到有 xen.gz、xen-4.gz、xen-4.0.gz 和 xen-4.0.1.gz 等文件,这证明 Xen 已经安装成功。 编译 Xen 化内核 在安装 Xen 之后,我们需要编译 Xen 化内核。首先,我们需要下载 Linux 内核的源代码和 ...
oracleasm-2.6.18-53.el5xen-2.0.4-1.el5.i686.rpm
根据所提供的文件信息,我们可以提炼出一系列关于如何在VMware环境中安装Xen Server的知识点。VMware是一种广泛使用的虚拟化技术,允许用户在同一台物理机器上运行多个操作系统。Xen Server是Citrix公司开发的一个...
- **版本号**:提供的文档提及的版本是`xen-3.2.1-5.0.0.217.17072.src.rpm`。 #### 五、总结 Xen Hypervisor作为一种成熟的虚拟化解决方案,在企业级应用和服务提供商中占据着重要的地位。通过其独特的半虚拟化...
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
另一方面,`XEN.rar`是一个RAR格式的压缩文件,RAR是一种流行的压缩格式,用于打包多个文件或文件夹以节省存储空间。在这个上下文中,XEN.rar很可能包含了XEN V1.0.7的源代码、可执行文件、分析工具或者其他相关数据...
《The Definitive Guide to the Xen Hypervisor》是Xen虚拟化技术领域的一本权威著作,出版于2007年11月。这本书深入浅出地介绍了Xen hypervisor的基础概念、工作原理以及实际应用,是学习和理解Xen虚拟化技术的重要...
离线安装包,亲测可用
《Xen源码详解——基于xen-4.1.1.tar.gz的探索》 Xen,一个开源的虚拟化平台,是云计算和服务器虚拟化的基石。深入理解Xen源码,对于开发者和系统管理员来说,是提升技能、优化性能和解决实际问题的关键。本文将...