现在的位置: 首页 > 综合 > 正文

install Xen 3.4.2 on Ubuntu 8.04(x86) (1)

2013年05月31日 ⁄ 综合 ⁄ 共 2085字 ⁄ 字号 评论关闭

1.install necessary packages,include but not limited in:

build-essencial, curses, openssl, python(ssl support), mercial, gawk, bridge-utils, bin86, bcc, texinfo

 2.download these packages from Xen official website

xen-3.4.2.tar.gz => uncompress to ../xen-4.3.2
linux-
2.6.18-xen-3.4.2.tar.gz => uncomcompress to ../xen-4.3.2/linux-2.6.18-xen.hg

 from now on, the base directory of paths mentioned below is /xen-4.3.2

3.put these files in /stubdom/

grub-0.97.tar.gz(ftp://alpha.gnu.org/gnu/grub/grub-0.97.tar.gz)
lwip
-1.3.0.tar.gz(http://download.savannah.gnu.org/releases-noredirect/lwip/lwip-1.3.0.tar.gz)
newlib
-1.16.0.tar.gz(ftp://sources.redhat.com/pub/newlib/newlib-1.16.0.tar.gz)
pciutils
-2.2.9.tar.gz(http://www.kernel.org/pub/software/utils/pciutils/pciutils-2.2.9.tar.gz)
zlib
-1.2.3.tar.gz(http://www.zlib.net/zlib-1.2.3.tar.gz)

4.modify /linux-2.6.18-xen.hg/Makefile, specify AWK=gawk.

5.modify /buildconfigs/src.hg-clone

$(LINUX_SRCDIR)/.valid-src: $(__XEN_LINUX_UPDATE)
    set 
-e ; \
    
//delete lines here
    touch $@

6.compile xen and kernel

make
when ask 
for option, press y or m.

7.install Xen

sudo make install

8.check if these file or directory exist.

/etc/xen/
/lib/modules/2.6.18.8-xen/
/boot/vmlinuz-2.6.18.8-xen

9.make image

mkinitramfs -o initrd.img-2.6.18.8-xen 2.6.18.8-xen
cp initrd
.img-2.6.18.8-xen  /boot/

 10.modify grub, add these lines. Note the UUID should be different.

title        Xen 3.4.2 / Ubuntu 8.04.2, kernel 2.6.18.8-xen
root        (hd0
,0)
kernel    
/boot/xen-3.4.2.gz
module    
/boot/vmlinuz-2.6.18.8-xen root=UUID=73fd4329-a05b-4dd4-b6a5-e11e99e320bd ro console=tty0 quiet
module    
/boot/initrd.img-2.6.18.8-xen
quiet

 11.restart and choose the Xen kernel.

 I got a crash here because I did these steps in VirtualBox. The info of the crash is "Crash Guru Meditation -2304  (VERR_REM_TOO_MANY_TRAPS)". It seems VB can't support virtualization guest OS, I also got failure when trying to install ESXi 3.5. The experience will continue when I got standalone machine and I'm not sure current result is correct. So pls don't follow me or you will be on your own risk.

to be continued ...

Reference
http://hi.baidu.com/shuxiaotu/blog/item/c1854cf9236e6104d9f9fd94.html
http://deidara.blog.51cto.com/400447/269062

 

 

 

抱歉!评论已关闭.