[Lxc-users] Failed to move phys interface, invalid argument (Linux 3.1.0, lxc 0.7.5)
Ivan Vilata i Balaguer
ivan at selidor.net
Mon Nov 21 21:50:17 UTC 2011
Daniel Smith (2011-11-21 08:12:16 -0500) wrote:
> On 11/21/2011 7:20 AM, Ivan Vilata i Balaguer wrote:
> > Hi all. I'm having trouble moving a physical, unused WiFi interface in my
> > computer to a container, which uses a network configuration like this::
>
> So I ran into the problem as well, what I found was that the whole wiphy
> had to be moved over into the namespace manually with the iw command.
> After which you have to use the iw command again inside the container to
> create a new interface. A word of caution, I have found even though
> the phy is in another namespace you can still add vifs to it. Even
> though it is possible, don't! It will hang your system when you shutdown
> the container(s).
>
> Hope this helps.
Indeed it does, thanks! I didn't need to run iw under the container, it
appeared there instantly after moving the interface from the host. I don't
know what you mean by adding vifs to the moved interface, but thanks for the
advice. :)
However, I think this should be automatically set up by the "lxc.network.type
= phys" option, so if no one has a clear reason of why this isn't supported
I'll file a new issue in the tracker.
Cheers,
--
Ivan Vilata i Balaguer -- https://elvil.net/
More information about the lxc-users
mailing list