[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: Pasi Kärkkäinen <pasik@xxxxxx>, Xen Mailing List <xen-users@xxxxxxxxxxxxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>



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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.