LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-16-2011, 01:02 AM   #1
bkarthick
Member
 
Registered: Apr 2009
Posts: 56

Rep: Reputation: 0
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')
 
Old 04-16-2011, 09:30 AM   #2
umwai
Member
 
Registered: May 2008
Location: Sri Lanka
Distribution: Ubuntu
Posts: 57
Blog Entries: 1

Rep: Reputation: 16
Smile 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.
 
Old 04-16-2011, 04:14 PM   #3
bkarthick
Member
 
Registered: Apr 2009
Posts: 56

Original Poster
Rep: Reputation: 0
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
 
Old 04-17-2011, 08:48 AM   #4
umwai
Member
 
Registered: May 2008
Location: Sri Lanka
Distribution: Ubuntu
Posts: 57
Blog Entries: 1

Rep: Reputation: 16
Lightbulb 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" ])
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Xen: How to Convert An Image-Based Guest To An LVM-Based Guest LXer Syndicated Linux News 0 04-19-2009 05:00 PM
why can't I install a xen guest? extendedping Linux - Software 1 02-08-2007 06:08 PM
why can't I install a xen guest? extendedping Linux - Software 1 02-08-2007 08:11 AM
Can I use Gnome under Xen Guest OS? SquishyMarbles Linux - Software 1 09-07-2006 09:50 PM
How to run RHEL 4 as guest in Xen(SLES 10 XEN) darshanbv Linux - Software 1 06-26-2006 12:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration