WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] network problem: Cannot find network for bridge

To: "Fajar A. Nugraha" <fajar@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] network problem: Cannot find network for bridge
From: "Marco Strullato" <marco.strullato@xxxxxxxxx>
Date: Mon, 8 Oct 2007 10:41:53 +0200
Cc: xen-users <Xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 08 Oct 2007 01:42:47 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=nugP8Ajkqp1TZkEXEJRxfCu66VJJMlRATyz4TmPBTls=; b=krsClsF5frhzhXPzyYS7YDJ6Utzc74pD1ZMjdX1gtGW9RXmksbWFmUnBET9BLosXmCRi+AieMjjyWxM+UzxjC4JRX9ZRYC5RID0iCBqFwsTqiKsov6sTzRJB2a7zU8dgmWVrm1otxkwPiTCs91kO9uuwmRx8ewnVznvavP+Oo3o=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=dXAj/CbTe4CRUTEhrwVBzFge6FbGCMmVrUkl52yQ1z1dQTEs8CcTjQDD1H4U3KaNhOGawPZQmp1nrPxv9WZ4EaS6AsTGek1DMpZl3HGFObK4oh/sovvBMghOsTEGBUCDv8FqdRwzmMrlV0YXGbCMsnc91HikqrGUAvr0uS+/jKs=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4709EA00.6050407@xxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <b9f669850710080112q1b6b5758t72e3dc2e5518622e@xxxxxxxxxxxxxx> <4709EA00.6050407@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxx>:
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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users