Chinaunix首页 | 论坛 | 博客
  • 博客访问: 517654
  • 博文数量: 137
  • 博客积分: 3170
  • 博客等级: 中校
  • 技术积分: 1455
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-17 11:47
文章分类

全部博文(137)

文章存档

2015年(2)

2013年(1)

2012年(6)

2011年(5)

2010年(62)

2009年(61)

我的朋友

分类: LINUX

2010-08-06 14:54:36

以下主要参考自:


利用make world安装的话:
make[3]: Leaving directory `/root/xen-4.0.0/tools/include'
make[2]: Leaving directory `/root/xen-4.0.0/tools'
make[2]: Entering directory `/root/xen-4.0.0/tools'
make -C libxc install
make[3]: Entering directory `/root/xen-4.0.0/tools/libxc'
make libs
make[4]: Entering directory `/root/xen-4.0.0/tools/libxc'
gcc  -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .xc_core.o.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -D_GNU_SOURCE -I../../xen/common/libelf -Werror -Wmissing-prototypes  -I. -I../xenstore -I../include -c -o xc_core.o xc_core.c
/tmp/ccpXOov0.s: Assembler messages:
/tmp/ccpXOov0.s:2899: Error: symbol `fstatat64' is already defined
/tmp/ccpXOov0.s:2917: Error: symbol `fstat64' is already defined
/tmp/ccpXOov0.s:2931: Error: symbol `lstat64' is already defined
/tmp/ccpXOov0.s:2945: Error: symbol `stat64' is already defined
make[4]: *** [xc_core.o] 错误 1
make[4]: Leaving directory `/root/xen-4.0.0/tools/libxc'
make[3]: *** [build] 错误 2
make[3]: Leaving directory `/root/xen-4.0.0/tools/libxc'
make[2]: *** [subdir-install-libxc] 错误 2
make[2]: Leaving directory `/root/xen-4.0.0/tools'
make[1]: *** [subdirs-install] 错误 2
make[1]: Leaving directory `/root/xen-4.0.0/tools'
make: *** [install-tools] 错误 2
ubuntu9.04
1.  sudo apt-get 方式
1.1  sudo apt-get install ubuntu-xen-server
1.2    更新linux内核

wget http://ftp.debian.org/debian/pool/main/l/linux-2.6/linux-modules-2.6.26-2-xen-686_2.6.26-18_i386.deb

wget /linux-image-2.6.26-2-xen-686_2.6.26-24_i386.deb
sudo dpkg -i linux-modules-2.6.26-2-xen-686_2.6.26-24_i386.deb

sudo dpkg -i linux-image-2.6.26-2-xen-686_2.6.26-24_i386.deb

以上ftp的2个deb包,在服务器上可能会变化版本号,选择一个相近的即可。

1.3  重启reoot :
1.4  查看安装情况:

jacky@jacky-desktop:~$ uname -a
Linux jacky-desktop 2.6.26-2-xen-686 #1 SMP Mon Jun 21 10:37:05 UTC 2010 i686 GNU/Linux
jacky@jacky-desktop:~$ sudo xm list
[sudo] password for jacky:
Name ID Mem VCPUs State Time(s)
Domain-0 0 1894 2 r----- 23.4

1.5 在使用 xen-create-image 创建guest时,
可能会出现如下错误:
   xen-create-image E: Failed getting release file
这个问题困扰了我一整天,这是因为你的ubuntu的dns解析不正确,
查看/etc/resolv.conf

阅读(1439) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~