Marco Strullato
2007-Oct-08 08:12 UTC
[Xen-users] network problem: Cannot find network for bridge
Hi all, I have a network problem: Dom0 has: Dom1: linux paravirtualized Dom2: winxp hvm It worked well but now winxp can not connect to network: Dom0 has eth0, lo, peth0, vif1.0 and vif3.0>From Dom0:[root@localhost xen]# xm network-list WinXP --long (0 ((backend-id 0) (mac 00:16:3e:3f:54:42) (handle 0) (state 1) (backend /local/domain/0/backend/vif/3/0) ) ) [root@localhost xen]# xm network-list Linux01 --long (0 ((backend-id 0) (mac 00:16:3e:58:56:65) (handle 0) (state 4) (backend /local/domain/0/backend/vif/1/0) (tx-ring-ref 109) (rx-ring-ref 526) (event-channel 10) (request-rx-copy 1) (feature-rx-notify 1) (feature-sg 1) (feature-gso-tcpv4 1) ) ) [root@localhost xen]# brctl show bridge name bridge id STP enabled interfaces eth0 8000.00155880c616 no vif3.0 vif1.0 peth0>From xend.log[2007-10-08 09:58:47 3558] ERROR (XendDomainInfo:2328) bridge_to_network Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line 2326, in get_dev_xenapi_config config.get(''bridge'')).get_uuid() File "/usr/lib/python2.5/site-packages/xen/xend/XendNode.py", line 510, in bridge_to_network raise Exception(''Cannot find network for bridge %s'' % bridge) Exception: Cannot find network for bridge xenbr0 [2007-10-08 09:58:47 3558] ERROR (XendDomainInfo:2328) bridge_to_network Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line 2326, in get_dev_xenapi_config config.get(''bridge'')).get_uuid() File "/usr/lib/python2.5/site-packages/xen/xend/XendNode.py", line 510, in bridge_to_network raise Exception(''Cannot find network for bridge %s'' % bridge) Exception: Cannot find network for bridge xenbr0 [2007-10-08 09:58:47 3558] INFO (SrvServer:180) unix path=/var/lib/xend/xend-socket What do you suggest me to solve the problem? Thanks Marco _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2007-Oct-08 08:27 UTC
Re: [Xen-users] network problem: Cannot find network for bridge
Marco Strullato wrote:> Hi all, I have a network problem: > Dom0 has: > Dom1: linux paravirtualized > Dom2: winxp hvm > > It worked well but now winxp can not connect to network: > > Dom0 has eth0, lo, peth0, vif1.0 and vif3.0 >That''s weird. You should also have some tap interfaces for HVM domains. Do you remember to put "type=ioemu" on winxp''s vif config line?> [root@localhost xen]# brctl show > bridge name bridge id STP enabled interfaces > eth0 8000.00155880c616 no vif3.0 > vif1.0 > peth0 > >It says your bridge is called eth0> From xend.log > > Exception: Cannot find network for bridge xenbr0But xend.log says you''re using xenbr0 in your config file. The befault network-bridge script should create a bridge called xenbr0. If you use a custom bridge script, you should modify your domU config accordingly. It should be (on your setup) something like vif = [ ''type=ioemu, mac=SOME_FIXED_MAC_ADDRESS_HERE, bridge=eth0'' ] Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Marco Strullato
2007-Oct-08 08:41 UTC
Re: [Xen-users] network problem: Cannot find network for bridge
I''ve created virtual machines with virt-manager and now I have to export, change and re-import xml configurations: I don''t have a regular xen configuration file but and xml. Here''s the mine. <domain type=''xen'' id=''2''> <name>WinXP</name> <uuid>f3834331-f045-4b4b-90ad-0a57ec790248</uuid> <os> <type>hvm</type> <loader>/usr/lib/xen/boot/hvmloader</loader> <boot dev=''hd''/> </os> <memory>1562624</memory> <vcpu>2</vcpu> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <features> <acpi/> <apic/> <pae/> </features> <clock offset=''utc''/> <devices> <emulator>/usr/lib/xen/bin/qemu-dm</emulator> <interface type=''bridge''> <source bridge=''xenbr0''/> <target dev=''vif2.0''/> <mac address=''00:16:3e:3f:54:42''/> <script path=''vif-bridge''/> </interface> <disk type=''block'' device=''disk''> <driver name=''phy''/> <source dev=''/dev/VolGroup00/WinXP''/> <target dev=''hda''/> </disk> <disk type=''block'' device=''cdrom''> <driver name=''phy''/> <source dev=''/dev/cdrom''/> <target dev=''hdc''/> <readonly/> </disk> <input type=''mouse'' bus=''ps2''/> <graphics type=''vnc'' port=''5900'' keymap=''it''/> </devices> </domain> I know that I should have the bridge xenbr0 but I don''t know why... Where should I check? It''s stange beacuse the linux vm''s network works well. Suggestions? Thanks Marco 2007/10/8, Fajar A. Nugraha <fajar@telkom.net.id>:> > Marco Strullato wrote: > > Hi all, I have a network problem: > > Dom0 has: > > Dom1: linux paravirtualized > > Dom2: winxp hvm > > > > It worked well but now winxp can not connect to network: > > > > Dom0 has eth0, lo, peth0, vif1.0 and vif3.0 > > > That''s weird. You should also have some tap interfaces for HVM domains. > Do you remember to put "type=ioemu" on winxp''s vif config line? > > > [root@localhost xen]# brctl show > > bridge name bridge id STP enabled interfaces > > eth0 8000.00155880c616 no vif3.0 > > vif1.0 > > peth0 > > > > > It says your bridge is called eth0 > > > From xend.log > > > > Exception: Cannot find network for bridge xenbr0 > But xend.log says you''re using xenbr0 in your config file. > > The befault network-bridge script should create a bridge called xenbr0. > If you use a custom bridge script, you should modify your domU config > accordingly. It should be (on your setup) something like > > vif = [ ''type=ioemu, mac=SOME_FIXED_MAC_ADDRESS_HERE, bridge=eth0'' ] > > Regards, > > Fajar > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2007-Oct-08 08:54 UTC
Re: [Xen-users] network problem: Cannot find network for bridge
Marco Strullato wrote:> I''ve created virtual machines with virt-manager and now I have to > export, change and re-import xml configurations: I don''t have a > regular xen configuration file but and xml. Here''s the mine. >> <interface type=''bridge''> > <source bridge=''xenbr0''/>Try export, change this to "bridge=''eth0''", and re-import.> > I know that I should have the bridge xenbr0 but I don''t know why... > Where should I check?What dom0 distro do you use? How did you install Xen?> It''s stange beacuse the linux vm''s network works well. >Check your linux config, it should say something like "bridge=''eth0''" Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Marco Strullato
2007-Oct-08 14:02 UTC
Re: [Xen-users] network problem: Cannot find network for bridge
Hi, I don''t have much time so I solved the problem reinstalling dom0... 2007/10/8, Fajar A. Nugraha <fajar@telkom.net.id>:> > Marco Strullato wrote: > > I''ve created virtual machines with virt-manager and now I have to > > export, change and re-import xml configurations: I don''t have a > > regular xen configuration file but and xml. Here''s the mine. > > > > > <interface type=''bridge''> > > <source bridge=''xenbr0''/> > > Try export, change this to "bridge=''eth0''", and re-import. > > > > > > I know that I should have the bridge xenbr0 but I don''t know why... > > Where should I check? > What dom0 distro do you use? How did you install Xen? > > It''s stange beacuse the linux vm''s network works well. > > > Check your linux config, it should say something like "bridge=''eth0''" > > Regards, > > Fajar > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users