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

[Xen-users] Re: Is there something missing for my NIC passthough?

To: Pasi Kärkkäinen <pasik@xxxxxx>, Xen Mailing List <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] Re: Is there something missing for my NIC passthough?
From: lei yang <yanglei.fage@xxxxxxxxx>
Date: Fri, 28 May 2010 01:16:57 +0800
Cc:
Delivery-date: Thu, 27 May 2010 10:20:35 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=BAh/OaX8oFca1qTgl8JeiA1D92Cx4kmE4WOmii5claw=; b=l7QgV/8s/BmTuU9BHTyQG9fdl5gql4bNxvTJtSEEfGyMXSwVlaFHsUCWiOH1P2jz0b lP4Zogyi6XSoY+edKENozruRWWkKWkXTSPCcAipWJUkFkMCqGSPMgjBWZQFM3nsBdyV3 c4YsEN96w1DlKIGmRUcP9aHEzTbBKbhIuI2uE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=OCaUbvUYcNs7pcnaVtzSvgRQdv+wn47cEKn+mR5tXi8P/OhoazozCi8Q69Ows/xYjF WGG0Yx/xkOjBgPK4ObmKKZSslhvxDUQcRfe3RzeH7LB0KwUmOlUKz4jsZb8rW8hL50Sa n3uqKzpicqLdECAZGKcUNmYVAQw9RM1oRKgxQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTilsOtk8FhPwGzaaIqLy8hFEZKDNaUPx181FwSkI@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTilbgI2l-nbpukPJte58bCnCyPNkF0U4hy-vLhV-@xxxxxxxxxxxxxx> <20100527130846.GP17817@xxxxxxxxxxx> <AANLkTilsOtk8FhPwGzaaIqLy8hFEZKDNaUPx181FwSkI@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On Thu, May 27, 2010 at 10:51 PM, lei yang <yanglei.fage@xxxxxxxxx> wrote:


>    my *intent* it to let domU to use "05:00.0" device.
>
>    boot dom0 with  "pci=resource_alignment=05:00.0
>    xen-pciback.hide=(05:00.0)" appended
>
>    my domU config file is
>
>    disk = ['tap:aio:/domU.image,xvda1,w', 'tap:aio:/domUswap.image,xvda2,w']
>    kernel = "/bzImage"
>    vcpus=2
>    vif  = [ "mac=00:15:17:AC:00:40,ip=128.224.165.204" ]
>    root = "/dev/xvda1 ro"
>    extra= "xen console=hvc0"
>    pci = ['05:00.0']
>
>    Is there something I missed? eg: my cfg file or other configure? or other
>    steps
>

Yes, you're missing the required parameters for the domU kernel.

See: http://wiki.xensource.com/xenwiki/XenPCIpassthrough

 
 
Thanks Pasik "I will add "iommu=soft swiotlb=force"。does it add into "domU.cfg" file with
    disk = ['tap:aio:/domU.image,xvda1,w', 'tap:aio:/domUswap.image,xvda2,w']
    kernel = "/bzImage"
    vcpus=2
    vif  = [ "mac=00:15:17:AC:00:40,ip=128.224.165.204" ]
    root = "/dev/xvda1 ro"
    extra= "xen console=hvc0 iommu=soft swiotlb=force"
    pci = ['05:00.0']
 
I just want to let domU nic using my pci nic directly. do I need to change my "   vif  = [ "mac=00:15:17:AC:00:40,ip=128.224.165.204" ]" or remove it?
 
 
if I remove "vif  = [ "mac=00:15:17:AC:00:40,ip=128.224.165.204" ]"
 
I find I can't find a networking interface
 
root@localhost:/root> ifconfig
root@localhost:/root> ifconfig eth0 up
eth0: ERROR while getting interface flags: No such device
root@localhost:/root> ifconfig eth1 up
eth1: ERROR while getting interface flags: No such device
root@localhost:/root> ifconfig -a
lo        Link encap:Local Loopback
          LOOPBACK  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
 
Thanks
Lei

 
 
 
-- Pasi




--
"We learn from failure, not from success!"



--
"We learn from failure, not from success!"
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users