fedora17, 64位,源码编译安装xen-4.1.4

xen的最新版是4.2.1版,但是我编译后xen内核引导到一半就退出,而fedora的yum安装的就是4.1.4版。不解



安装依赖项:

$yum groupinstall "DevelopmentLibraries"

$yum groupinstall "DevelopmentTools"

$yum install transfig wget tar lesstexi2html libaio-devel dev86 glibc-devel e2fsprogs-devel gitk mkinitrd iaslxz-devel bzip2-devel

$yum install pciutils-libs pciutils-develSDL-devel libX11-devel gtk2-devel bridge-utils PyXML qemu-common qemu-imgmercurial texinfo

$yum install libidn-devel yajl yajl-develocaml ocaml-findlib ocaml-findlib-devel python-devel uuid-devel libuuid-developenssl-devel

$yum install glibc-devel.i686



然后下载xen-4.1.4,并解压。查看readme文件,执行make world和make install


接下来,请不要直接修改grub.cfg文件,而是执行命令grub2-mkconfig -o /boot/grub2/grub.cfg


重启选择xen,进入后如果你遇到

  1. ERROR Internal error: Could not obtain handle on privileged command interface (2 = No such file or directory)
  2. Traceback (most recent call last):
  3. File "/usr/sbin/xend", line 51, in ?
  4. from xen.xend.server import SrvDaemon
  5. File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvDaemon.py", line 21, in ?
  6. import relocate
  7. File "/usr/lib/python2.4/site-packages/xen/xend/server/relocate.py", line 26, in ?
  8. from xen.xend import XendDomain
  9. File "/usr/lib/python2.4/site-packages/xen/xend/XendDomain.py", line 33, in ?
  10. import XendDomainInfo
  11. File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 40, in ?
  12. import image
  13. File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 37, in ?
  14. xc = xen.lowlevel.xc.xc()
  15. xen.lowlevel.xc.Error: (1, 'Internal error', 'Could not obtain handle on privileged command interface (2 = No such file or directory)')

你需要换一种方式执行,使用命令/etc/init.d/xend start


你可能感兴趣的:(fedora17, 64位,源码编译安装xen-4.1.4)