[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-users] Re: Is there something missing for my NIC passthough?
On Fri, May 28, 2010 at 01:16:57AM +0800, lei yang wrote: > On Thu, May 27, 2010 at 10:51 PM, lei yang <[1]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: [2]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? > You don't need to remove it.. it'll just create a virtual interface (xen-netfront) to the domU. It doesn't conflict with the PCI passthru. > >  > 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 >  > [3]root@localhost:/root> ifconfig > [4]root@localhost:/root> ifconfig eth0 up > eth0: ERROR while getting interface flags: No such device > [5]root@localhost:/root> ifconfig eth1 up > eth1: ERROR while getting interface flags: No such device > [6]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) > [7]root@localhost:/root> lspci > [8]root@localhost:/root> >  > Does your domU kernel have xen-pcifront driver? is it loaded? that's required for PCI passthrough to PV guests. Note that upstream (kernel.org) kernels don't yet have xen-pcifront included. -- Pasi _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |