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] Assign Physical NIC to domU

To: Ivan Gonzalez <smaug_valley@xxxxxxxxx>
Subject: Re: [Xen-users] Assign Physical NIC to domU
From: Igor Chubin <igor@xxxxxxx>
Date: Wed, 26 Mar 2008 22:16:17 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 26 Mar 2008 13:13:12 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <604683.11590.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: <20080326190834.GB32245@xxxxxxx> <604683.11590.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Reply-to: Igor Chubin <igor@xxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.17+20080114 (2008-01-14)
On Mi, Mär 26, 2008 at 12:25:02 -0700, Ivan Gonzalez wrote:
> Hello Igor.
> 
> I'm using HVM for my domU, and i don't mind to use
> linux bridge to connect my domU to eth1, so if you
> could tell me how to do it would be really helpful.


If you use (and want use further) HVM domain,
you can make passthrough only if 

    (1) your hadrware support VT-d (I/O virtualization technology from Intel) 
        which is very rare for the present (don't confuse it with VT-x)
    and
    (2) you also use Xen 3.2 (or 3.3-unstable).

So, I think that it's better not to passthrouth PCI-device, 
but to use linux bridge instead of it.

To do this, you should:


1) In dom0:

 /etc/xen/scripts/network-bridge start bridge=eth1bridged netdev=eth1

2) In config of your HVM domain:

 vif = [ 'type=ioemu, bridge=eth1bridged' ]

That's all.


> 
> Thanks for your help.
> Regards
> Ivan
> 
> --- Igor Chubin <igor@xxxxxxx> wrote:
> 
> > On Mi, Mär 26, 2008 at 11:56:12 -0700, Ivan Gonzalez
> > wrote:
> > > Hello Brian!
> > > 
> > > Thanks for the quick answer.
> > > 
> > > Yes i have two separate cards, do you mind telling
> > me
> > > how can i assign the PCI device to the domU?
> > 
> > 
> > Do you use a PV or an HVM guest domain?
> > Do you want to make PCI passthrough or you 
> > don't mind to use linux bridge to connect
> > domU to eth1 in the domain 0?
> > 
> > > 
> > > Again thanks for your help.
> > > Regards
> > > Ivan
> > > 
> > > --- Brian Stempin <brian.stempin@xxxxxxxxx> wrote:
> > > 
> > > > Hi Ivan,
> > > > 
> > > > If the NICs are on 2 separate cards or have 2
> > > > separate PCI addresses, you
> > > > can assign the PCI device directly to the DomU.
> > > > 
> > > > On Tue, Mar 25, 2008 at 6:55 PM, Ivan Gonzalez
> > > > <smaug_valley@xxxxxxxxx>
> > > > wrote:
> > > > 
> > > > > Hello everyone!
> > > > >
> > > > > Well i want to know, if there is a way to
> > specify
> > > > a
> > > > > physical nic (like eth0 or eth1) to a
> > > > > domU and how can i do it.
> > > > >
> > > > > The server has two nics, what i want to do is
> > > > assign
> > > > > physical nic (eth0) to the dom0 and assign
> > > > physical
> > > > > nic (eht1) to the domU.
> > > > >
> > > > > I appreciate your help.
> > > > > Regards
> > > > > Ivan
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > 
> > > >
> > >
> >
> ____________________________________________________________________________________
> > > > > Be a better friend, newshound, and
> > > > > know-it-all with Yahoo! Mobile.  Try it now.
> > > > >
> > > >
> > >
> >
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> > > > >
> > > > >
> > _______________________________________________
> > > > > Xen-users mailing list
> > > > > Xen-users@xxxxxxxxxxxxxxxxxxx
> > > > > http://lists.xensource.com/xen-users
> > > > >
> > > > 
> > > 
> > > 
> > > 
> > >      
> >
> ____________________________________________________________________________________
> > > Be a better friend, newshound, and 
> > > know-it-all with Yahoo! Mobile.  Try it now. 
> >
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> > > 
> > > _______________________________________________
> > > Xen-users mailing list
> > > Xen-users@xxxxxxxxxxxxxxxxxxx
> > > http://lists.xensource.com/xen-users
> > 
> > -- 
> > WBR, i.m.chubin
> > 
> > 
> > _______________________________________________
> > Xen-users mailing list
> > Xen-users@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-users
> > 
> 
> 
> 
>       
> ____________________________________________________________________________________
> Be a better friend, newshound, and 
> know-it-all with Yahoo! Mobile.  Try it now.  
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

-- 
WBR, i.m.chubin


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