<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 2017-05-28 07:57 PM, Fajar A.
Nugraha wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAG1y0sf+TirrUVfYSfztCojYby8T8r3pndvjjMAf5SBaUYyxxg@mail.gmail.com">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Mon, May 29, 2017 at 5:58 AM, Rick
Leir <span dir="ltr"><<a
href="mailto:rleir@leirtech.com" target="_blank"
moz-do-not-send="true">rleir@leirtech.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"><span class="gmail-">
<blockquote type="cite">
<blockquote type="cite"># brctl show <br>
<br>
bridge name bridge id STP enabled
interfaces <br>
virbr0 8000.525400c7428b yes
virbr0-nic <br>
# lxc-checkconfig <br>
<all enabled> <br>
<br>
# lxc-create -n crowdsr -t fedora <br>
<br>
# lxc-start -n crowdsr -F <br>
lxc-start: conf.c: instantiate_veth: 2669 failed
to attach 'vethMU7OO1' <br>
to the bridge 'lxcbr0': Operation not permitted <br>
</blockquote>
<br>
brctl shows only virbr0; you are trying to attach to
lxcbr0 which, apparently, doesn't exist. I thought
lxc created that but you can add it with <br>
<br>
brctl addbr lxcbr0 <br>
</blockquote>
</span> Mike<br>
Thanks so much for this. It led me to virsh and
eventually to the Fedora doco at <br>
<a
class="gmail-m_5470366559568534247moz-txt-link-freetext"
href="https://fedoraproject.org/wiki/LXC"
target="_blank" moz-do-not-send="true">https://fedoraproject.org/<wbr>wiki/LXC</a>
<br>
<br>
</div>
</blockquote>
<div><br>
</div>
<div>Hmmm ... that doc is outdated in several ways.<br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"> which is where I should have
searched first. After I start libvirtd, it tells me to:<br>
<span
style="color:rgb(0,0,0);font-family:sans-serif;font-size:12.16px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">
Edit the file /etc/lxc/default.conf and change the
parameter 'lxc.network.link' from 'lxcbr0' to
'virbr0':<br>
<br>
Then I can create and start a container successfully.
Woo woo<br>
</span></div>
<div bgcolor="#FFFFFF"><span
style="color:rgb(0,0,0);font-family:sans-serif;font-size:12.16px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br>
</span></div>
</blockquote>
<div><br>
</div>
<div>There are at least several tools that make use of linux
container capabilites:</div>
<div>- lxc/lxd</div>
<div>- libvirt</div>
<div>- docker</div>
<div>- systemd-nspawn</div>
<div><br>
</div>
<div>IMHO the easiest way to use lxc is with lxd. Unofficial
packages exists (at least it did in the past) for fedora,
but the easiest way to get started with lxd is on ubuntu
(a live trial is available on <a
href="https://linuxcontainers.org/lxd/try-it/"
moz-do-not-send="true">https://linuxcontainers.org/lxd/try-it/</a>).</div>
</div>
</div>
</div>
</blockquote>
Fajar,<br>
I did consider using LXD, but it did not seem to have significant
benefits compared with LXC so I went with the tried-and-true. The
welcome page could have a better comparison of LXD vs plain LXC, and
I could have been persuaded!. Oh, and I use Fedora for my servers
for various reasons which might only matter to me. And Ubuntu on my
desktops and Chromebook.<br>
<blockquote type="cite"
cite="mid:CAG1y0sf+TirrUVfYSfztCojYby8T8r3pndvjjMAf5SBaUYyxxg@mail.gmail.com">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div><br>
</div>
<div>Libvirt has its own lxc driver (<a
href="http://libvirt.org/drvlxc.html"
moz-do-not-send="true">http://libvirt.org/drvlxc.html</a>),
and you manage it using 'virsh'. lxc1 has its own userland
tools (e.g. lxc-create), and by default should include an
init script which creates lxcbr0 (with its appropriate NAT
rules). The wiki link you mentioned mix both, using
libvirt ONLY for the bridge, while using lxc1 userland
tools to manage the container. IMHO not an ideal setup.</div>
<div><br>
</div>
<div>Another thing, the page says 'debootstrap is necessary
in order to build Debian-based containers'. That is true
if you want to build a debian/ubuntu container from
scratch, but for most users the 'download' template should
be enough (and MUCH faster to create) and it doesn't need
debootstrap/dpkg installed on the host.</div>
</div>
</div>
</div>
</blockquote>
I used 'debootstrap', for a debian container, but I might have used
'download' if I knew more about it. For a person choosing an option
without more info, a fair guess would be 'use download if no other
choice is an option'. How could the cli communicate this better? Now
I have tried 'download', it is the old cli which I am used to.<br>
<br>
My, the debian containers are basic.<br>
# ls -al<br>
bash: ls: command not found<br>
<br>
Thanks for the info<br>
Rick<br>
<blockquote type="cite"
cite="mid:CAG1y0sf+TirrUVfYSfztCojYby8T8r3pndvjjMAf5SBaUYyxxg@mail.gmail.com">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div><br>
</div>
<div>-- </div>
<div>Fajar</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
lxc-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>
<a class="moz-txt-link-freetext" href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a></pre>
</blockquote>
<br>
</body>
</html>