I am using Xen on Ubuntu, and I want to install Ubuntu on Xen as a domU. I followed these instructions: https://help.ubuntu.com/community/Xen, Manually installing an HVM Guest VM
However I had this error parsing config from ubuntu-hvm.cfg:
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:1116:device_hotplug_child_death_cb: script: Could not find bridge device xenbr0
libxl: error: libxl_create.c:1231: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:1116: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:1116:device_hotplug_child_death_cb: script: Could not find bridge device xenbr0
How should I modify the configurations to install ubuntu ?
Best Answer
Your error message states xen could not find a
xenbr0
interface.Make sure to create such bridge before starting your domUs.
If you have no bridges configured yet, there's a fair chance you'll need to install the following:
Then, edit your network configuration. Assuming you have some
eth0
device, and want to have your virtual machines bridged on this device, we would have:Assuming you want to create this bridge on your loopback, make sure to load the dummy kernel module
Then, edit your network configuration: