在 CentOS 下源码安装 Xen

在 CentOS 源码编译安装 Xen 的过程和在 Debian 上编译安装 Xen 的过程差不多,只是第一步安装编译所需要的工具和软件包有所不同,后续步骤有点小差别,不过方法都是一样的,这也说明各个 Linux 发行版之间的区别真的不大,没有必要为选择 Linux 发行版而发愁。编译一个 Xen 内核和编译一个普通 Linux 内核没有什么不同,如果发现编译后的内核启动不了,出现 kernel panic 的情况,多半是内核与机器的硬件没有配置好的原因,和 Xen 没有关系,比如常见的 switchroot: mount failed: No such file or directory 就可能是因为内核配置的时候忘了加上 root 的硬盘驱动,也可能找到驱动了但是挂载的时候发现文件系统类型不对,等等。VPSee 在一台 Intel(R) Core(TM) i3 CPU 540 @ 3.07GHz, 4GB 机器上使用最新的 Xen 4.0.0 源代码和 CentOS 5.4 完成以下操作。这里还有在 Ubuntu 上源码安装 Xen 的详细过程。如果觉得源码安装很麻烦的话,这里有 在 CentOS 上安装和配置 Xen 的二进制安装过程。

安装需要的软件包

首先最小化安装 CentOS,然后安装编译 Xen 和 Linux xen kernel 所需要的软件包:

# yum groupinstall "Development Tools" 
# yum install hmaccalc ncurses-devel zlib-devel openssl-devel python-devel \
bridge-utils  libtool-ltdl iasl xorg-x11-drv-evdev xorg-x11-drv-fbdev \
xorg-x11-drv-i810-devel xorg-x11-drv-via-devel xorg-x11-proto-devel \
xorg-x11-server-sdk xorg-x11-xtrans-devel

安装完以上软件包后,剩下的操作就和在 Debian 上编译和安装 Xen 差不多了。

安装 Xen hypervisor 和 tools

到 http://www.xen.org/products/xen_source.html 下载最新的 Xen 源代码,然后解开、编译、安装,标准的 Linux 软件源码安装动作:

$ tar zxvf xen-4.0.0.tar.gz
$ cd xen-4.0.0/
$ make xen tools stubdom
# make install-xen install-tools install-stubdom

上面 make stubdom 的时候会从网上自动下载一些东西,所以如果是用代理上网的话需要在自己根目录下的 .wgetrc 里加上代理服务器,以便 wget 能通过代理正常下载:

$ vi .wgetrc
http_proxy = http://proxy.vpsee.com:3128/
use_proxy = on

加入到启动脚本:

# /sbin/chkconfig --add xend
# /sbin/chkconfig --add xendomains
# /sbin/chkconfig xend on
# /sbin/chkconfig xendomains on

安装 Xen 内核

下载 Linux 内核后给内核打 xen 补丁:

$ cd
$ wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.31.8.tar.bz2
$ tar -xjf linux-2.6.31.8.tar.bz2

$ wget http://gentoo-xen-kernel.googlecode.com/files/
xen-patches-2.6.31-10.tar.bz2
$ mkdir xenpatch-2.6.31.8
$ cd xenpatch-2.6.31.8
$ tar -xjf ../xen-patches-2.6.31-10.tar.bz2
$ cd ..

$ cd linux-2.6.31.8
$ for i in `ls ../xenpatch-2.6.31.8/`; \
do patch -p1 < ../xenpatch-2.6.31.8/"$i"; done

配置带 xen 的 Linux 内核:

$ make menuconfig

Processor type and features --->
  [*] Enable Xen compatible kernel
Networking support --->
  Networking options --->
    <*> 802.1d Ethernet Bridging
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
       PCI-device backend driver
       SCSI backend driver
       USB backend driver
    <*> Block-device frontend driver
    <*> Network-device frontend driver
     SCSI frontend driver
     USB frontend driver
    <*> Framebuffer-device frontend driver
    <*>   Keyboard-device frontend driver
    [*] Disable serial port drivers
    <*> Export Xen attributes in sysfs
        Xen version compatibility (3.3.0 and later) --->
           3.3.0 and later

配置好内核参数以后,保存并退出,开始编译 Linux 内核:

$ make
$ make modules
# make modules_install
# make install
# /sbin/depmod 2.6.31.8

更新 grub:

#  vi /boot/grub/menu.lst
...
title CentOS (2.6.31.8-xen)
        root (hd0,0)
        kernel /xen-4.0.0.gz
        module /vmlinuz-2.6.31.8 ro root=/dev/VolGroup00/LogVol00
        module /initrd-2.6.31.8.img
...

重启系统,确认 Xen 安装成功:

# reboot

# uname -a
Linux localhost.localdomain 2.6.31.8 #2 SMP Tue Apr 20 11:19:19 SAST 2010 x86_64 GNU/Linux

# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  3713     4     r-----     36.0

评论 (282 Comments)

  1. @wnlo_apple
    看看日志文件里有些什么异常的
    /var/log/xen/xen-hotplug.log
    /var/log/xen/xend.log

  2. @vpsee
    今天重新make xen&&install-xen了一下
    启动拷贝过来的domU,不再提示
    Error:Device 0(vif)could not be connected.hotplug scripts is not working.
    但是仍然启动不起来
    查看了一下
    /var/log/xen/xen-hotplug.log
    没什么信息,就是nothing to flush.
    /var/log/xen/xend.log提示
    [2012-03-21 16:16:17 7370] DEBUG (DevController:139) Waiting for devices vif2.
    [2012-03-21 16:16:17 7370] DEBUG (DevController:139) Waiting for devices vif.
    [2012-03-21 16:16:17 7370] DEBUG (DevController:139) Waiting for devices vscsi.
    [2012-03-21 16:16:17 7370] DEBUG (DevController:139) Waiting for devices vbd.
    [2012-03-21 16:16:17 7370] DEBUG (DevController:139) Waiting for devices ioports.
    [2012-03-21 16:16:17 7370] DEBUG (DevController:139) Waiting for devices irq.
    [2012-03-21 16:16:17 7370] DEBUG (DevController:139) Waiting for devices vkbd.
    [2012-03-21 16:16:17 7370] DEBUG (DevController:139) Waiting for devices vfb.
    [2012-03-21 16:16:17 7370] DEBUG (DevController:139) Waiting for devices console.
    [2012-03-21 16:16:17 7370] DEBUG (DevController:144) Waiting for 0.
    [2012-03-21 16:16:17 7370] DEBUG (DevController:139) Waiting for devices pci.
    [2012-03-21 16:16:17 7370] DEBUG (DevController:139) Waiting for devices tap2.
    [2012-03-21 16:16:17 7370] DEBUG (DevController:144) Waiting for 51712.
    [2012-03-21 16:16:18 7370] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vbd/1/51712/hotplug-status.
    [2012-03-21 16:16:18 7370] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vbd/1/51712/hotplug-status.
    [2012-03-21 16:16:18 7370] DEBUG (DevController:642) hotplugStatusCallback 1.
    [2012-03-21 16:16:18 7370] DEBUG (DevController:139) Waiting for devices tap.
    [2012-03-21 16:16:18 7370] DEBUG (DevController:139) Waiting for devices vusb.
    [2012-03-21 16:16:18 7370] DEBUG (DevController:139) Waiting for devices vtpm.
    ……
    DOM0编译的问题?

  3. Vpsee 大大 , 最近装xen 4.1.2 (CentOS 6.0) ,在用virt-manager连接xen时,总是出现如下错误。。。已经修改过xend.config了,(xend-http-server yes)
    (xend-port 8000)
    (xend-address localhost)解除注释。。。

    Unable to open connection to hypervisor URI ‘xen:///’:
    no connection driver available for No connection for URI xen:///
    Traceback (most recent call last):
    File “/usr/share/virt-manager/virtManager/connection.py”, line 992, in _try_open
    None], flags)
    File “/usr/lib64/python2.6/site-packages/libvirt.py”, line 102, in openAuth
    if ret is None:raise libvirtError(‘virConnectOpenAuth() failed’)
    libvirtError: no connection driver available for No connection for URI xen:///

  4. 你好 我是在centos5.5上安装xen4.0.1
    根据您的文档 在执行
    make xen tools stubdom
    时遇到以下问题
    /root/xen/xen-4.0.1/stubdom/ioemu
    /bin/sh:line 6:32644 Segmentation fault rm -f “$f”
    make[1]:*** [ioemu/linkfarm.stamp] Error 139
    make[1]: Leaving directory `/root/xen/xen-4.0.1/stubdom’
    make:*** [install-stubdom] Error 2
    请问一下这些到底是什么意思呢 怎么解决

  5. vpsee,您好。
    我是在redhat6下面安装xen-4.1.2.
    在$ make xen tools stubdom 和
    # make install-xen install-tools install-stubdom
    都有同样的错误:
    make[3]: *** [check-build] 错误 1
    make[3]: Leaving directory `/root/src/xen-4.1.2/tools/check’
    make[2]: *** [subdir-install-check] 错误 2
    make[2]: Leaving directory `/root/src/xen-4.1.2/tools’
    make[1]: *** [subdirs-install] 错误 2
    make[1]: Leaving directory `/root/src/xen-4.1.2/tools’
    make: *** [install-tools] 错误 2

    看了有些留言,您说不加make stubdom 我也试过,还是提示这个错误。万般无奈只能向您求救了。

  6. 谢谢。vpsee,上面的问题。我又仔细的研究了一下,搞定了。不好意思打扰了啊。

  7. @vpsee想请教一下如果是实际的操作上,是使用xen hypervisor好,稳定还是用xcp。xcp可以使用Xapi感覺會比較方便 ,但是曾经试过用xcp無法鏈接iscsi服務器又让我对xcp的信心不足. 请问vpsee有没有这方面的经验

  8. 想知道XCP跟只装XEN hypervisor那个更适合实际操作

  9. @Tony
    这两个不同,用的话都很稳定,XCP 基于 Xen,XCP 对应的应该是 XenServer, vSphere, HyperV 等。比如 OpenStack 之类的云计算产品,只支持 XCP/XenServer,不支持 Xen.

  10. 那么在Centos5.8里面在make menuconfig 之后的make时出现

    drivers/xen/blktap2/built-in.o:/root/kernel/linux-2.6.38.2/drivers/xen/blktap2/sysfs.c:300: first defined here
    ld: Warning: size of symbol `blktap_sysfs_create’ changed from 315 in drivers/xen/blktap2/built-in.o to 214 in drivers/xen/blktap2-new/built-in.o
    make[2]: *** [drivers/xen/built-in.o] Error 1
    make[1]: *** [drivers/xen] Error 2
    make: *** [drivers] Error 2
    怎么回事?

  11. 然后改成 2.6.32.4也不行

    arch/x86/kernel/vsyscall_64-xen.c:78: error: conflicting types for ‘update_vsyscall’
    include/linux/clocksource.h:283: error: previous declaration of ‘update_vsyscall’ was here

  12. LD drivers/xen/console/built-in.o
    CC drivers/xen/core/evtchn.o
    drivers/xen/core/evtchn.c: In function ‘arch_init_chip_data’:
    drivers/xen/core/evtchn.c:1646: error: ‘struct irq_desc’ has no member named ‘affinity’
    drivers/xen/core/evtchn.c: In function ‘arch_probe_nr_irqs’:
    drivers/xen/core/evtchn.c:1672: error: ‘nr_ioapics’ undeclared (first use in this function)
    drivers/xen/core/evtchn.c:1672: error: (Each undeclared identifier is reported only once
    drivers/xen/core/evtchn.c:1672: error: for each function it appears in.)
    drivers/xen/core/evtchn.c:1673: error: implicit declaration of function ‘io_apic_get_redir_entries’
    make[3]: *** [drivers/xen/core/evtchn.o] Error 1
    make[2]: *** [drivers/xen/core] Error 2
    make[1]: *** [drivers/xen] Error 2
    make: *** [drivers] Error 2

    I got this error while running “make”
    please help me
    very thanks!!!

  13. 想请问,这是为什么?
    [root@localhost linux-2.6.31.8]# make
    CHK include/linux/version.h
    CHK include/linux/utsrelease.h
    SYMLINK include/asm -> include/asm-x86
    CALL scripts/checksyscalls.sh
    CHK include/linux/compile.h
    CC drivers/xen/core/evtchn.o
    drivers/xen/core/evtchn.c: In function ‘xen_init_IRQ’:
    drivers/xen/core/evtchn.c:1797: error: size of array ‘type name’ is negative
    make[3]: *** [drivers/xen/core/evtchn.o] Error 1
    make[2]: *** [drivers/xen/core] Error 2
    make[1]: *** [drivers/xen] Error 2
    make: *** [drivers] Error 2
    You have new mail in /var/spool/mail/root

  14. 大神,请问下我用32bit的Fedora 16做dom0,内核是用的是3.3.2,xen用的是4.1.2,在配置内核的时候默认启动了PAE,但是为什么在改完grub之后重启,会发现先是花屏然后显示系统出现错误。这是内核配置的问题么?

  15. 您好,我遇到如下错误,是缺少什么安装包吗??
    @wang_nets你是如何解决到??
    make[5]: Entering directory `/home/fy/xen-4.1.2/stubdom/newlib-x86_64/etc’
    /home/fy/xen-4.1.2/stubdom/newlib-1.16.0/missing makeinfo –split-size=5000000 –split-size=5000000 –no-split -I../../newlib-1.16.0/etc -o standards.info ../../newlib-1.16.0/etc/standards.texi
    WARNING: `makeinfo’ is missing on your system. You should only need it if
    you modified a `.texi’ or `.texinfo’ file, or any other file
    indirectly affecting the aspect of the manual. The spurious
    call might also be the consequence of using a buggy `make’ (AIX,
    DU, IRIX). You might want to install the `Texinfo’ package or
    the `GNU make’ package. Grab either from any GNU archive site.
    make[5]: *** [standards.info] 错误 1
    make[5]: Leaving directory `/home/fy/xen-4.1.2/stubdom/newlib-x86_64/etc’
    make[4]: *** [info] 错误 1
    make[4]: Leaving directory `/home/fy/xen-4.1.2/stubdom/newlib-x86_64/etc’
    make[3]: *** [all-etc] 错误 2
    make[3]: Leaving directory `/home/fy/xen-4.1.2/stubdom/newlib-x86_64′
    make[2]: *** [all] 错误 2
    make[2]: Leaving directory `/home/fy/xen-4.1.2/stubdom/newlib-x86_64′
    make[1]: *** [cross-root-x86_64/x86_64-xen-elf/lib/libc.a] 错误 2
    make[1]: Leaving directory `/home/fy/xen-4.1.2/stubdom’
    make: *** [install-stubdom] 错误 2

  16. 刚看到,是缺少texinfo!

  17. @wang_nets
    一般启动问题都是内核配置问题。

  18. @vpsee大侠,我是在win7系统的vmware虚拟机里安装的centos6,在make的时候出现了这样的提示,请问是为什么?
    [root@localhost linux-2.6.31.8]# make
    CHK include/linux/version.h
    CHK include/linux/utsrelease.h
    SYMLINK include/asm -> include/asm-x86
    CALL scripts/checksyscalls.sh
    CHK include/linux/compile.h
    CC drivers/xen/core/evtchn.o
    drivers/xen/core/evtchn.c: In function ‘xen_init_IRQ’:
    drivers/xen/core/evtchn.c:1797: error: size of array ‘type name’ is negative
    make[3]: *** [drivers/xen/core/evtchn.o] Error 1
    make[2]: *** [drivers/xen/core] Error 2
    make[1]: *** [drivers/xen] Error 2
    make: *** [drivers] Error 2
    You have new mail in /var/spool/mail/root

  19. @vpsee大神,我之前64位没有出现这个情况,32位内核我只注意了PAE选项被选上了,还需要选择什么么?还有一个问题我用虚拟机管理器安装PV,但是没有看到安装界面同时PV的CPU使用率100%,xend.log中有这些信息。

    [2012-06-07 22:20:57 2027] DEBUG (DevController:139) Waiting for devices vif.
    [2012-06-07 22:20:57 2027] DEBUG (DevController:144) Waiting for 0.
    [2012-06-07 22:20:57 2027] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vif/2/0/hotplug-status.
    [2012-06-07 22:20:57 2027] DEBUG (DevController:642) hotplugStatusCallback 1.
    [2012-06-07 22:20:57 2027] DEBUG (DevController:139) Waiting for devices vkbd.
    [2012-06-07 22:20:57 2027] DEBUG (DevController:139) Waiting for devices ioports.
    [2012-06-07 22:20:57 2027] DEBUG (DevController:139) Waiting for devices tap.
    [2012-06-07 22:20:57 2027] DEBUG (DevController:139) Waiting for devices vif2.
    [2012-06-07 22:20:57 2027] DEBUG (DevController:139) Waiting for devices console.
    [2012-06-07 22:20:57 2027] DEBUG (DevController:144) Waiting for 0.
    [2012-06-07 22:20:57 2027] DEBUG (DevController:139) Waiting for devices vscsi.
    [2012-06-07 22:20:57 2027] DEBUG (DevController:139) Waiting for devices vbd.
    [2012-06-07 22:20:57 2027] DEBUG (DevController:144) Waiting for 51712.
    [2012-06-07 22:20:57 2027] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vbd/2/51712/hotplug-status.
    [2012-06-07 22:20:57 2027] DEBUG (DevController:642) hotplugStatusCallback 1.
    [2012-06-07 22:20:57 2027] DEBUG (DevController:139) Waiting for devices irq.
    [2012-06-07 22:20:57 2027] DEBUG (DevController:139) Waiting for devices vfb.
    [2012-06-07 22:20:57 2027] DEBUG (DevController:139) Waiting for devices pci.
    [2012-06-07 22:20:57 2027] DEBUG (DevController:139) Waiting for devices vusb.
    [2012-06-07 22:20:57 2027] DEBUG (DevController:139) Waiting for devices vtpm.
    [2012-06-07 22:20:57 2027] INFO (XendDomain:1225) Domain Fedora16_PV (2) unpaused.
    不知道你是否遇到过这种情况,安装HVM时正常的。

  20. 你好,安装是出现:怎么解决
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:57: undefined reference to `__gmpz_sizeinbase’
    bn.o: In function `tpm_bn_import’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:62: undefined reference to `__gmpz_import’
    bn.o: In function `tpm_bn_export’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:67: undefined reference to `__gmpz_export’
    bn.o: In function `tpm_bn_init’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:22: undefined reference to `__gmpz_init’
    bn.o: In function `tpm_bn_init2′:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:27: undefined reference to `__gmpz_init2′
    bn.o: In function `tpm_bn_init_set’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:32: undefined reference to `__gmpz_init_set’
    bn.o: In function `tpm_bn_init_set_ui’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:37: undefined reference to `__gmpz_init_set_ui’
    bn.o: In function `tpm_bn_set_ui’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:42: undefined reference to `__gmpz_set_ui’
    bn.o: In function `tpm_bn_clear’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:47: undefined reference to `__gmpz_clear’
    bn.o: In function `tpm_bn_swap’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:52: undefined reference to `__gmpz_swap’
    bn.o: In function `tpm_bn_cmp’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:72: undefined reference to `__gmpz_cmp’
    bn.o: In function `tpm_bn_cmp_ui’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:77: undefined reference to `__gmpz_cmp_ui’
    bn.o: In function `tpm_bn_setbit’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:87: undefined reference to `__gmpz_setbit’
    bn.o: In function `tpm_bn_add’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:92: undefined reference to `__gmpz_add’
    bn.o: In function `tpm_bn_add_ui’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:97: undefined reference to `__gmpz_add_ui’
    bn.o: In function `tpm_bn_sub’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:102: undefined reference to `__gmpz_sub’
    bn.o: In function `tpm_bn_sub_ui’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:107: undefined reference to `__gmpz_sub_ui’
    bn.o: In function `tpm_bn_mul’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:112: undefined reference to `__gmpz_mul’
    bn.o: In function `tpm_bn_mod’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:117: undefined reference to `__gmpz_mod’
    bn.o: In function `tpm_bn_powm’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:122: undefined reference to `__gmpz_powm’
    bn.o: In function `tpm_bn_ui_pow_ui’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:127: undefined reference to `__gmpz_ui_pow_ui’
    bn.o: In function `tpm_bn_fdiv_q_2exp’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:132: undefined reference to `__gmpz_fdiv_q_2exp’
    bn.o: In function `tpm_bn_tdiv_q’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:137: undefined reference to `__gmpz_tdiv_q’
    bn.o: In function `tpm_bn_gcd’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:142: undefined reference to `__gmpz_gcd’
    bn.o: In function `tpm_bn_invert’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:147: undefined reference to `__gmpz_invert’
    bn.o: In function `tpm_bn_nextprime’:
    /root/xen-4.1.2/tools/vtpm/vtpm/tpmd/../crypto/bn.c:152: undefined reference to `__gmpz_nextprime’
    collect2: ld 返回 1
    make[5]: *** [tpmd] 错误 1
    make[5]:正在离开目录 `/root/xen-4.1.2/tools/vtpm/vtpm/tpmd’
    /bin/sh: 4: exit: Illegal number: -1
    make[4]: *** [all-recursive] 错误 2
    make[4]:正在离开目录 `/root/xen-4.1.2/tools/vtpm/vtpm’
    make[3]: *** [build_sub] 错误 2
    make[3]:正在离开目录 `/root/xen-4.1.2/tools/vtpm’
    make[2]: *** [subdir-install-vtpm] 错误 2
    make[2]:正在离开目录 `/root/xen-4.1.2/tools’
    make[1]: *** [subdirs-install] 错误 2
    make[1]:正在离开目录 `/root/xen-4.1.2/tools’
    make: *** [install-tools] 错误 2

  21. 大牛,我在xen4.1.2配置网桥,为什么默认的xenbr0或者tmpbridge之类自动开启呢?brctl show后只有virbr0.郁闷ing

  22. 是默认的xenbr0或者tmpbridge之类没有自动开启,上面的错了

  23. 您好,我在CentOS6.3下源码安装xen-4.1.2,一切正常,但是virt-install用不了。我看了网上的帖子后,说重新编译libvirt源码
    我编译好后(编译过程中未出现error),查看/usr/lib目录,存在有libvirt*等一系列文件,
    但是当我yum install virt-install时,默认yum到的事0.9版本的,总是有Processing Dependency: libvirt.so.0*******的文字,感觉我编译出来的文件貌似没有被找到,然后yum会自动下载一个libvirt

    由于下载的这个Libvirt不支持xen,所以virt-install一直用不了?

  24. 请问这个问题如何解决,我看了之前的对话,貌似有和我问题相同的,但是也没有具体的解决方案。
    我只是想安装Guest OS,之后可能就用不到了
    如果这个问题很难办,请问还有没有其他安装Guest OS的方法
    谢谢

  25. 用LINUX3.1.2+XEN4.1.1 安装成功,但是后来执行virt-install 安装虚拟机的时候出错
    提示ERROR Host does not support any virtualization options

  26. @franklin1990
    virt-install 依赖 libvirt,这可能是 libvirt 的一个 bug,检查 libvirt (0.9.8+) 的版本,升级到 0.9.8+ 或以上。或者你可以不用 virt-install 安装虚拟机。

  27. 博主,现在还回答问题吗?555555

  28. 大神,请问一下,我用centos6.4安装libvirt后,运行libvirtd出现

    [root@david libvirt-0.7.7]# libvirtd
    10:56:12.652: warning : qemudStartup:1150 : Unable to create cgroup for driver: No such device or address
    10:56:12.706: warning : lxcStartup:1748 : Unable to create cgroup for driver: No such device or address

    11:46:04.079: warning : qemudDispatchSignalEvent:385 : Shutting down on signal 2

    请问应该 怎么解决?

  29. @知秋一叶
    貌似没有找到 /dev/cgroup,试一下手动挂载,然后重启一下 libvirtd

    # mkdir /dev/cgroup
    # mount -t cgroup none /dev/cgroup -o cpu,memory,devices

  30. make[3]: *** [check-build] Error 1
    make[3]: Leaving directory `/home/a/Downloads/xen-4.0.1/tools/check’
    make[2]: *** [subdir-install-check] Error 2
    make[2]: Leaving directory `/home/a/Downloads/xen-4.0.1/tools’
    make[1]: *** [subdirs-install] Error 2
    make[1]: Leaving directory `/home/a/Downloads/xen-4.0.1/tools’
    make: *** [install-tools] Error 2
    这是什么问题啊?

  31. vpsee大大,安装你上面的过程我在centos6.5-2.6.32下面编译安装xen,过程都没有报错,但是一直没有出现xend,我猜应该是没有编译tools,但是具体应该怎么解决这个问题呢?谢谢!

  32. 您好,我按照您的配置 一直进不去启动项
    显示invalid magic number:1ff8
    Error13:Invalid or unsupported executable format

    centos的挂载格式也试过ext3和ext4但是一直卡在这一步进不去

发表评论