LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   My guest os is not loading in XEN (https://www.linuxquestions.org/questions/linux-newbie-8/my-guest-os-is-not-loading-in-xen-875278/)

bkarthick 04-16-2011 12:02 AM

My guest os is not loading in XEN
 
Hi all,

I have installed 5.2 RHEL in my box.
Using Virt-manager is have created the guest os.for the first time,guest os is loading pretty fine.When i reboot my system,host is working fine and guest os is throwing an error.

"Error starting domain: virDomainCreate() failed POST operation failed: (xend.err 'Device 0 (vif) could not be connected. Could not find bridge device xenbr0')"

Details
=======
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/engine.py", line 472, in run_domain
vm.startup()
File "/usr/share/virt-manager/virtManager/domain.py", line 379, in startup
self.vm.create()
File "/usr/lib64/python2.4/site-packages/libvirt.py", line 228, in create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: virDomainCreate() failed POST operation failed: (xend.err 'Device 0 (vif) could not be connected. Could not find bridge device xenbr0')

umwai 04-16-2011 08:30 AM

Do you have created a bridge
 
Type "brctl show" and check the out put
Or you can edit the /etc/xen/xend-config.sxp and enable bridged networking mode and restart the "xend"
post your guest os configuration file.

bkarthick 04-16-2011 03:14 PM

Hi,

This is the output for
#brctl show

bridge name bridge id STP enabled interfaces
virbr0 8000.000000000000 yes
xenbr1 8000.feffffffffff no peth1
vif0.1
my guest os configuration file.

name = "guest"
uuid = "716ceb7b-47c3-3d1d-1a33-ae696681eff9"
maxmem = 1024
memory = 1024
vcpus = 1
bootloader = "/usr/bin/pygrub"
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
vfb = [ "type=vnc,vncunused=1,keymap=en-us" ]
disk = [ "phy:/dev/sda10,xvda,w" ]
vif = [ "mac=00:16:3e:2c:41:46,bridge=xenbr1" ]

And also tell me how to enable bridged networking mode in /etc/xen/xend-config.sxp file

thanks

umwai 04-17-2011 07:48 AM

Creating a xen bridge
 
Your brctl show output indicates that there is a bridge. (xenbr1)
But if you want to create a bridge you have to do the following changes.
(open /etc/xen/xend-config.sxp)
1. First find out all entries start with "(network-script " and comment them all except "(network-script network-bridge)" you can comment them by adding # to the begging.

2. Then find out all the entries with "(vif-script " and comment them all except "(vif-script vif-bridge)"
3. Then restart your xend -> /etc/init.d/xend restart

Post your xend-config.sxp file

If this does not work try commenting your vif line in your guest configuration file (vif = [ "mac=00:16:3e:2c:41:46,bridge=xenbr1" ])


All times are GMT -5. The time now is 01:37 AM.