我在Ubuntu14.04服务器上使用xen 4.4.1,我的DomU也在运行Ubuntu14.04Server。我以前在桥模式下运行过这个DomU,没有问题。但是,我想切换到一个路由设置。
我将DomU配置vif更改为:
vif=['10.0.1.2,script=vif-route']在/etc/xen/xend-config.sxp中:
#(vif-script vif-bridge)
#(network-script network-bridge
(network-script network-route)
(vif-script vif-route)但是,当我试图打开VM时,它会抛出以下错误:
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/vif-bridge online [-1] exited with error status 1
libxl: error: libxl_device.c:1085:device_hotplug_child_death_cb: script: Could not find bridge device xenbr0
libxl: error: libxl_create.c:1226:domcreate_attach_vtpms: unable to add nic devices
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/vif-bridge offline [-1] exited with error status 1
libxl: error: libxl_device.c:1085:device_hotplug_child_death_cb: script: Could not find bridge device xenbr0
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/vif-bridge remove [-1] exited with error status 1
libxl: error: libxl_device.c:1085:device_hotplug_child_death_cb: script: Could not find bridge device xenbr0即使我在xend-config.sxp中注释掉了它,它为什么仍然试图运行vif-bridge脚本?
发布于 2017-02-25 13:51:33
在debian dom0上从xen 4.1更新到4.4后,我们在这里遇到了完全相同的问题(wheezy>jessie)。
解决方案是更改xl.conf:
# default vif script to use if none is specified in the guest config
vif.default.script="vif-route"发布于 2016-04-09 10:47:22
使用ip创建xenbr0接口,使用eth0实现bridge=xenbr0。
配置vif.default.gatewaydev @ xl.conf
发布于 2021-08-18 16:50:02
为了扩大费利佩的回答:
警告!当您创建新的xenbr0接口时,您需要断开到主机的网络连接,因此需要有(物理或虚拟)终端连接。
使用此命令查看桥状态。在我的机器上是空的:
brctl show见接口
ip link或
ifconfig向网桥添加接口(在我的机器上,接口名是enp5s3,也可以是eth0)
brctl addif xenbr0 enp5s3在此之后,我认为虚拟机将获得IP。但是,如果还需要恢复到主机的网络连接,则可以向桥接器接口分配ip,如下所示:
在新机器上
/etc/netplan/01-netcfg.yaml在旧机器上
/etc/network/interfaceshttps://serverfault.com/questions/680571
复制相似问题