[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lxc-users
Subject:    Re: [lxc-users] does lxc container virtualizes wireless card
From:       Divya Vyas <edivya.vyas () gmail ! com>
Date:       2015-11-26 12:30:58
Message-ID: CAGfiMvBPboq0FszTZV+C-Ayv7M-N+PfRmr38mifj4Vkve-14UQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


lxc..network.type=phys

passing wlan0 giving error, cannot move wlan0

On Thu, Nov 26, 2015 at 5:31 PM, Luis Michael Ibarra <
michael.ibarra@gmail.com> wrote:

>
>
> 2015-11-26 0:29 GMT-05:00 Divya Vyas <edivya.vyas@gmail.com>:
>
>> Hi,
>>
>> Actually I am creating a container as wifi hotspot. So I want wlan
>> interface to be there on container.
>>
>> I am not finding a way how to pass wlan0 to container.
>>
>
> Ok, use phys to pass the wireless nic to an specific container namespace
> in /var/lib/${container}/config[1]. Keep in mind that the wileress nic
> won't be available in the host network namespace or any other container
> after you pass it to a container.
>
> An interface can be only in one network namespace.
>
> Describe your topology for more information.
>
> [1] lxc.container.conf(5)
>
>>
>> On Thu, Nov 26, 2015 at 10:03 AM, Luis Michael Ibarra <
>> michael.ibarra@gmail.com> wrote:
>>
>>>
>>>
>>> 2015-11-25 21:22 GMT-05:00 Divya Vyas <edivya.vyas@gmail.com>:
>>>
>>>> Hi,
>>>> Can you please let me know how I can pass wlan0 from conf file.
>>>>
>>>> I am adding wlan in a bridge.
>>>>
>>>
>>> I answered this in the other thread you created.
>>>
>>> I still don't understand what do you want to achieve?
>>>
>>>
>>>
>>>
>>>> On Nov 26, 2015 12:09 AM, "Ranjib Dey" <dey.ranjib@gmail.com> wrote:
>>>>
>>>>> I don't think so. However you can pass any physical interface using
>>>>> the config, including wlan0. Note you won't be able to use that on host
>>>>> machine after this, and also u have to run lxc in privileged mode
>>>>> On Nov 25, 2015 3:47 AM, "Divya Vyas" <edivya.vyas@gmail.com> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I am not able to get wlan on my container
>>>>>>
>>>>>> iwconfig
>>>>>>
>>>>>> iwconfig
>>>>>> lo        no wireless extensions.
>>>>>>
>>>>>> tunl0     no wireless extensions.
>>>>>>
>>>>>> eth0      no wireless extensions.
>>>>>>
>>>>>> tun0      no wireless extensions.
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> lxc-users mailing list
>>>>>> lxc-users@lists.linuxcontainers.org
>>>>>> http://lists.linuxcontainers.org/listinfo/lxc-users
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> lxc-users mailing list
>>>>> lxc-users@lists.linuxcontainers.org
>>>>> http://lists.linuxcontainers.org/listinfo/lxc-users
>>>>>
>>>>
>>>> _______________________________________________
>>>> lxc-users mailing list
>>>> lxc-users@lists.linuxcontainers.org
>>>> http://lists.linuxcontainers.org/listinfo/lxc-users
>>>>
>>>
>>>
>>>
>>> --
>>> Luis Michael Ibarra
>>>
>>> _______________________________________________
>>> lxc-users mailing list
>>> lxc-users@lists.linuxcontainers.org
>>> http://lists.linuxcontainers.org/listinfo/lxc-users
>>>
>>
>>
>> _______________________________________________
>> lxc-users mailing list
>> lxc-users@lists.linuxcontainers.org
>> http://lists.linuxcontainers.org/listinfo/lxc-users
>>
>
>
>
> --
> Luis Michael Ibarra
>
> _______________________________________________
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>

[Attachment #5 (text/html)]

<div dir="ltr"><div><div>lxc..network.type=phys<br></div><br></div>passing wlan0 \
giving error, cannot move wlan0 <br></div><div class="gmail_extra"><br><div \
class="gmail_quote">On Thu, Nov 26, 2015 at 5:31 PM, Luis Michael Ibarra <span \
dir="ltr">&lt;<a href="mailto:michael.ibarra@gmail.com" \
target="_blank">michael.ibarra@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div \
class="gmail_quote"><span class="">2015-11-26 0:29 GMT-05:00 Divya Vyas <span \
dir="ltr">&lt;<a href="mailto:edivya.vyas@gmail.com" \
target="_blank">edivya.vyas@gmail.com</a>&gt;</span>:<br></span><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div><div>Hi,<br><br></div><span \
class="">Actually I am creating a container as wifi hotspot. So I want wlan interface \
to be there on container.<br><br></span></div><span class="">I am not finding a way \
how to pass wlan0 to container.<br></span></div></blockquote><div><br></div><div>Ok, \
use phys to pass the wireless nic to an specific container namespace in \
/var/lib/${container}/config[1]. Keep in mind that the wileress nic won&#39;t be \
available in the host network namespace or any other container after you pass it to a \
container.<br><br></div><div>An interface can be only in one network namespace. \
<br><br></div><div>Describe your topology for more information. <br></div><div>  \
<br></div><div>[1] lxc.container.conf(5) <br></div><div><div class="h5"><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"></div><div><div><div \
class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 26, 2015 at 10:03 AM, \
Luis Michael Ibarra <span dir="ltr">&lt;<a href="mailto:michael.ibarra@gmail.com" \
target="_blank">michael.ibarra@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div \
class="gmail_quote"><span>2015-11-25 21:22 GMT-05:00 Divya Vyas <span \
dir="ltr">&lt;<a href="mailto:edivya.vyas@gmail.com" \
target="_blank">edivya.vyas@gmail.com</a>&gt;</span>:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><p dir="ltr">Hi,<br> Can you please let me know how I can \
pass wlan0 from conf file. </p> <p dir="ltr">I am adding wlan in a bridge. \
</p></blockquote><div><br></div></span><div>I answered this in the other thread you \
created. <br><br>I still don&#39;t understand what do you want to achieve? \
<br><br><br></div><span><div>  </div><blockquote class="gmail_quote" style="margin:0 \
0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div class="gmail_quote">On \
Nov 26, 2015 12:09 AM, &quot;Ranjib Dey&quot; &lt;<a \
href="mailto:dey.ranjib@gmail.com" target="_blank">dey.ranjib@gmail.com</a>&gt; \
wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">I don&#39;t think so. \
However you can pass any physical interface using the config, including wlan0. Note \
you won&#39;t be able to use that on host machine after this, and also u have to run \
lxc in privileged mode</p> <div class="gmail_quote">On Nov 25, 2015 3:47 AM, \
&quot;Divya Vyas&quot; &lt;<a href="mailto:edivya.vyas@gmail.com" \
target="_blank">edivya.vyas@gmail.com</a>&gt; wrote:<br \
type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div \
dir="ltr"><div><div>Hi,<br><br></div>I am not able to get wlan on my \
container<br><br></div>iwconfig <br><br>iwconfig<br>lo               no wireless \
extensions.<br><br>tunl0         no wireless extensions.<br><br>eth0           no \
wireless extensions.<br><br>tun0           no wireless extensions.<br><br><br></div> \
<br>_______________________________________________<br> lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" \
target="_blank">lxc-users@lists.linuxcontainers.org</a><br> <a \
href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" \
target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div>
 <br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" \
target="_blank">lxc-users@lists.linuxcontainers.org</a><br> <a \
href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" \
target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div>
 <br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" \
target="_blank">lxc-users@lists.linuxcontainers.org</a><br> <a \
href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" \
target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></span></div><span><font \
color="#888888"><br><br clear="all"><br>-- <br><div><div dir="ltr"><div>Luis Michael \
Ibarra</div></div></div> </font></span></div></div>
<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" \
target="_blank">lxc-users@lists.linuxcontainers.org</a><br> <a \
href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" \
target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div>
 </div></div><br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" \
target="_blank">lxc-users@lists.linuxcontainers.org</a><br> <a \
href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" \
target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div></div></div><span \
class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div><div \
dir="ltr"><div>Luis Michael Ibarra</div></div></div> </font></span></div></div>
<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
 <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" \
target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div>



[Attachment #6 (text/plain)]

_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic