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

Re: [Xen-users] Pci export configuration



Hi,

> I'm still having problems to automatically give a pci device to a DomU.
>
> I put the "pciback.hide=(00:1d.0)(04:00.0)" argument to grub.
>
> While passing the device id to the "xm" command works it do not in the
> configuration file with the line : pci = ['00:1d.1','04:00.0']
>
> Here is the result of the command :
>
> xen:~# xm create vm.fp
> Using config file "/etc/xen/vm.fp".
> Error: pci: PCI Backend does not own device 0000:00:1d.1
> See the pciback.hide kernel command-line parameter or
> bind your slot/device to the PCI backend using sysfs

Can you post the output of "dmesg" in dom0?  There should be messages in there 
about the PCI backend grabbing that device...

Try taking the dmesg after you've tried to manually bind the device to see if 
that generated any messages.

> I tried with "echo -n ..." but i got an error message too :
>
> xen:~# echo -n 0000:00:1d.1 > /sys/bus/pci/drivers/pciback/new_slot
> xen:~# echo -n 0000:00:1d.1 > /sys/bus/pci/drivers/pciback/bind
> -bash: echo: write error: Aucun peripherique de ce type
>
> Which means "no type of this device".

A thought...  is it possible your pciback is compiled as a module?  If it is, 
it probably can't "steal" the devices you've requested it to hide.  In this 
case, you'll need to manually "unbind" the devices from their current 
drivers...

Do an ls -l "/sys/bus/pci/devices/0000:00:1d.1"

There's probably a symlink in there called "driver", right?

If you do an

echo -n "0000:00:1d.1" > "/sys/bus/pci/devices/0000:00:1d.1/driver/unbind"

Does that succeed?  Are you able to manually add the device to pciback now?

> Any help would be great.

Hope that helps,
Cheers,
Mark

> Thanks.
>
> Julien.
>
> Julien Reveillet a écrit :
> > Hi all,
> >
> > This has, i'm sure, been told a lot of time but i haven't found any
> > things to solve my problems.
> > Here is it:
> >
> > I wan't to export a usb port on DomU (CentOS 5) from my Dom0 (Debian
> > Etch).
> >
> > I have only succeded with the pci export but with the next command:
> > "xm create machine pci=00:1d.0"
> >
> > With having many differents syntaxes in the machine configuration file
> > would not work for me.
> >
> > Does anybody know how to do it in the conf file?
> >
> > Or perhaps with a usb export (it would be what i want finally)?
> >
> > Xen version : 3.0.3-1 from Debian stable packages
> >
> > Thanks.
> >
> > Regards.
> > Julien.
> >
> > _______________________________________________
> > 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



-- 
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!

_______________________________________________
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®.