All of lore.kernel.org
 help / color / mirror / Atom feed
* host PCI (-X) device assigned to a container
@ 2010-10-14  6:24 Mihamina Rakotomandimby
       [not found] ` <20101014092437.37cf8c86-jVktQDY1Ej77k9Ui2d6hDdi2O/JbrIOy@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Mihamina Rakotomandimby @ 2010-10-14  6:24 UTC (permalink / raw)
  To: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

Manao ahoana, Hello, Bonjour,

I would like to directly use a PCI device from a caontainer. For
example, this one:
http://www.sangoma.com/products/hardware_products/transcoding/overview.html

I saw that using libvirt I can do it
(http://libvirt.org/formatdomain.html#elementsUSB), but how to do it in
"lxc.conf"?
I suppose (not really sure) that using "lxc.cgroup.devices.allow" is a
tip, but once the PCI device plugged, how to guess the numbers &
letters to set up?


Misaotra, Thanks, Merci.


-- 

       Architecte Informatique chez Blueline/Gulfsat:
    Administration Systeme, Recherche & Developpement
                                    +261 34 56 000 19

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: host PCI (-X) device assigned to a container
       [not found] ` <20101014092437.37cf8c86-jVktQDY1Ej77k9Ui2d6hDdi2O/JbrIOy@public.gmane.org>
@ 2010-10-14 10:55   ` Pavel Labushev
  0 siblings, 0 replies; 2+ messages in thread
From: Pavel Labushev @ 2010-10-14 10:55 UTC (permalink / raw)
  To: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

14.10.2010 14:24, Mihamina Rakotomandimby пишет:

> I suppose (not really sure) that using "lxc.cgroup.devices.allow" is a
> tip, but once the PCI device plugged, how to guess the numbers &
> letters to set up?

You could setup udev on host system to launch scripts to place the
relevant device files into some directory and configure a bind-mount of
that directory to /dev within the container's mount namespace.
Container's devices.allow should also be managed by udev scripts on host
system. And device unplugging events should trigger some udev script to
perform reverse actions.
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-14 10:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-14  6:24 host PCI (-X) device assigned to a container Mihamina Rakotomandimby
     [not found] ` <20101014092437.37cf8c86-jVktQDY1Ej77k9Ui2d6hDdi2O/JbrIOy@public.gmane.org>
2010-10-14 10:55   ` Pavel Labushev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.