<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 07/23/2018 06:47 AM, Pierre Couderc
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:6e651199-6512-23a7-17c2-eba14aa121c0@couderc.eu">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<br>
<div class="moz-cite-prefix">On 07/23/2018 12:37 PM, Fajar A.
Nugraha wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAG1y0seJzrfRb_Xak1gc_3cBiOJw2w7BL4Re4z=KmZP02ZPBSw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html;
charset=utf-8">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Mon, Jul 23, 2018 at 5:33 PM,
Pierre Couderc <span dir="ltr"><<a
href="mailto:pierre@couderc.eu" target="_blank"
moz-do-not-send="true">pierre@couderc.eu</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><span class=""> <br>
<div class="m_-566893458362909254moz-cite-prefix">On
07/23/2018 12:12 PM, Fajar A. Nugraha wrote:<br>
</div>
</span>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote"><span class="">Relevant
to all VM-like in general (including lxd,
kvm and virtualbox):
<div>- with the default bridged setup (on
lxd this is lxdbr0), VMs/containers can
access internet</div>
</span>
<div>(...)</div>
<span class="">
<div>- bridges (including macvlan) does not
work on wifi</div>
<div><br>
</div>
<br>
</span></div>
</div>
</div>
</blockquote>
Sorry, it is not clear for me how default bridges "can
access internet", if simultaneously "bridges
(including macvlan) does not work on wifi" ?<br>
<br>
</div>
</blockquote>
<div><br>
</div>
<div><br>
</div>
<div>My bad for not being clear :)</div>
<div><br>
</div>
<div>I meant, the default setup uses bridge + NAT (i.e.
lxdbr0). The NAT is automatically setup by LXD. That
works. If your PC can access the internet, then anything
on your container (e.g. wget, firefox, etc) can access
the internet as well.</div>
<div><br>
</div>
<div><br>
</div>
<div>Bridge setups WITHOUT nat (those that bridge
containers interface directly to your host interface,
e.g. eth0 or wlan), on the other hand, will only work
for wired, and will not work for wireless.</div>
<div><br>
</div>
<br>
</div>
</div>
</div>
</blockquote>
Mmm, do you mean that there is no known solution to use LXD with
wifi ?<br>
<br>
</blockquote>
Based on what has been indicated here and my own understanding there
are two high level ways you can access the network: 1) bridge + NAT
and 2) containers directly access the host interface.<br>
<br>
With option 1 the container can access the network via the host even
if that host interface is wifi based. You will configure the wifi
on the host.<br>
<br>
<br>
</body>
</html>