我是新来的xen,我正在尝试运行domU,但是我遇到了问题。 我认为我的网卡可能不支持桥接,这是奇怪的。
这是我尝试创builddomU时遇到的错误
[root@hyrba ~]# xm create sardis.secusrvr.com.cfg Using config file "/etc/xen/sardis.secusrvr.com.cfg". Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
所有的XEN内核模块加载…
xen_pciback 52948 0 xen_gntalloc 6807 0 xen_acpi_processor 5390 1 xen_netback 27155 0 [permanent] xen_blkback 21827 0 [permanent] xen_gntdev 10849 1 xen_evtchn 5215 1 xenfs 3326 1 xen_privcmd 4854 16 xenfs
我在/var/log/xen/xen-hotplug.log中得到这个错误
RTNETLINK answers: Operation not supported can't add vif2.0 to bridge eth0: Operation not supported can't add vif2.0-emu to bridge eth0: Operation not supported
我知道这个问题已经有一段时间了,但为了他人的利益,我会发布帮助我的解决scheme。
在Oracle OVM 2上有类似的错误,无法启动虚拟机:
# tail /var/log/xen/xen-hotplug.log ... can't add vif128.0 to bridge eth0: Operation not supported ...
问题 :出现错误的界面。
解决scheme :编辑vm.cfg并将vif =参数节点“bridge”从eth0更改为xenbr0 VM启动:
# cat vm.cfg | grep '^vif' vif = ['bridge=eth0,mac=00:16:3E:01:59:04,type=ioemu']
# cat vm.cfg | grep '^vif' vif = ['bridge=xenbr0,mac=00:16:3E:01:59:04,type=ioemu']