為 HVM 建立橋接網絡

為 HVM 建立橋接網絡

我正在嘗試建立一個 HVM,我可以在我的伺服器上執行此操作,但不附加到任何 NIC(即使嘗試配置橋接網路)。當我嘗試使用 xl 運行指定 MAC 位址的 cfg 檔案時,出現錯誤:

Parsing config from /root/xen/devoracle.cfg
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/vif-route online [15257] exited with error status 1
libxl: error: libxl_device.c:1219:device_hotplug_child_death_cb: script: /etc/xen/scripts/vif-route failed; error detected.
libxl: error: libxl_create.c:1462:domcreate_attach_vtpms: unable to add nic devices
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/vif-route offline [15372] exited with error status 1
libxl: error: libxl_device.c:1219:device_hotplug_child_death_cb: script: /etc/xen/scripts/vif-route failed; error detected.
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/block remove [15362] exited with error status 1
libxl: error: libxl_device.c:1219:device_hotplug_child_death_cb: script: /etc/xen/scripts/block failed; error detected.
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/block remove [15365] exited with error status 1
libxl: error: libxl_device.c:1219:device_hotplug_child_death_cb: script: /etc/xen/scripts/block failed; error detected.
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/vif-route remove [15495] exited with error status 1
libxl: error: libxl_device.c:1219:device_hotplug_child_death_cb: script: /etc/xen/scripts/vif-route failed; error detected.
libxl: error: libxl.c:1583:libxl__destroy_domid: non-existant domain 54
libxl: error: libxl.c:1542:domain_destroy_callback: unable to destroy guest with domid 54
libxl: error: libxl.c:1471:domain_destroy_cb: destruction of domain 54 failed

我讀過的每一篇文章,甚至 Xen 的網站,都指出第一步是建立橋接網路。但是當我運行 ifup 時,我總是得到:

can't add eth0 to bridge xenbr1: Operation not supported

這是我的 ifcfg-eth0 的樣子:

GAETWAY=192.168.x.x 
SUBNET=255.255.255.0
ONBOOT=yes
BRIDGE=xenbr0
NM_CONTROLLED=no

和 ifcfg-xenbr0:

DEVICE=xenbr0
TYPE=Bridge
BOOTPROTO=static
BROADCAST=192.168.x.x
IPADDR=192.168.x.x
NETMASK=255.255.255.0
ONBOOT=yes
DELAY=0
NM_CONTROLLED=no

兩個設備共享同一個網關。我在這個配置中缺少什麼嗎?

更新:

不確定這是否有幫助,但是當我嘗試運行 ifup icfg-xenbr0 時,我得到:

add bridge failed: Package not installed

相關內容