https://en.altlinux.org/index.php?title=LXD&feed=atom&action=history
LXD - Revision history
2024-03-29T15:59:14Z
Revision history for this page on the wiki
MediaWiki 1.38.2
https://en.altlinux.org/index.php?title=LXD&diff=1293&oldid=prev
Obirvalger: /* Launch */
2019-07-11T17:43:10Z
<p><span dir="auto"><span class="autocomment">Launch</span></span></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 17:43, 11 July 2019</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l54">Line 54:</td>
<td colspan="2" class="diff-lineno">Line 54:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> $ lxc exec first bash</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> $ lxc exec first bash</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Stop it.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Stop it.</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> $ lxc <del style="font-weight: bold; text-decoration: none;">exec </del>first</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> $ lxc <ins style="font-weight: bold; text-decoration: none;">stop </ins>first</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>And delete.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>And delete.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> $ lxc rm first</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> $ lxc rm first</div></td></tr>
</table>
Obirvalger
https://en.altlinux.org/index.php?title=LXD&diff=1292&oldid=prev
Obirvalger: Created page with "[https://linuxcontainers.org/lxd/introduction/ LXD] is a next generation system container manager. It offers a user experience similar to virtual machines but using Linux cont..."
2019-07-10T16:47:41Z
<p>Created page with "[https://linuxcontainers.org/lxd/introduction/ LXD] is a next generation system container manager. It offers a user experience similar to virtual machines but using Linux cont..."</p>
<p><b>New page</b></p><div>[https://linuxcontainers.org/lxd/introduction/ LXD] is a next generation system container manager. It offers a user experience similar to virtual machines but using Linux containers instead.<br />
<br />
== Install and setup ==<br />
Install package {{pkg|lxd}}.<br />
# apt-get install lxd<br />
Add uid and gid map into files {{path|/etc/subuid}} и {{path|/etc/subgid}}:<br />
root:100000:65536<br />
lxd:100000:65536<br />
Start and enable lxd service.<br />
# systemctl enable --now lxd<br />
Run initial setup.<br />
# lxd init<br />
Add user to lxd group.<br />
# usermod username --append --groups lxd<br />
<br />
== Launch ==<br />
Available ALT images on images.linuxcontainers.org<br />
$ lxc image list images:alt<br />
Approximate output:<br />
{| class="wikitable"<br />
|-<br />
| alt/Sisyphus (3 more) || a6bb3268c7a1 || yes || Alt Sisyphus amd64 (20190710_01:17) || x86_64 || 227.27MB || "Jul 10 || 2019 at 12:00am (UTC)"<br />
|-<br />
| alt/Sisyphus/arm64 (1 more) || 4d860461a016 || yes || Alt Sisyphus arm64 (20190710_01:17) || aarch64 || 177.23MB || "Jul 10 || 2019 at 12:00am (UTC)"<br />
|-<br />
| alt/Sisyphus/i386 (1 more) || 62d0664ce372 || yes || Alt Sisyphus i386 (20190710_01:17) || i686 || 183.37MB || "Jul 10 || 2019 at 12:00am (UTC)"<br />
|-<br />
| alt/Sisyphus/ppc64el (1 more) || 143672c92ab2 || yes || Alt Sisyphus ppc64el (20190710_01:17) || ppc64le || 183.72MB || "Jul 10 || 2019 at 12:00am (UTC)"<br />
|-<br />
| alt/p8 (3 more) || b6674565b63b || yes || Alt p8 amd64 (20190710_01:17) || x86_64 || 231.58MB || "Jul 10 || 2019 at 12:00am (UTC)"<br />
|-<br />
| alt/p8/i386 (1 more) || 864957bdb260 || yes || Alt p8 i386 (20190710_01:17) || i686 || 182.66MB || "Jul 10 || 2019 at 12:00am (UTC)"<br />
|-<br />
| alt/p9 (3 more) || 262a6ff9259c || yes || Alt p9 amd64 (20190710_01:17) || x86_64 || 226.51MB || "Jul 10 || 2019 at 12:00am (UTC)"<br />
|-<br />
| alt/p9/arm64 (1 more) || 7643261d1273 || yes || Alt p9 arm64 (20190710_01:17) || aarch64 || 176.94MB || "Jul 10 || 2019 at 12:00am (UTC)"<br />
|-<br />
| alt/p9/i386 (1 more) || 4faf887493d7 || yes || Alt p9 i386 (20190710_01:17) || i686 || 183.38MB || "Jul 10 || 2019 at 12:00am (UTC)"<br />
|-<br />
| alt/p9/ppc64el (1 more) || df49ca8bf30a || yes || Alt p9 ppc64el (20190710_01:17) || ppc64le || 182.81MB || "Jul 10 || 2019 at 12:00am (UTC)"<br />
|}<br />
<br />
Images available for the following arches:<br />
* amd64<br />
* arm64<br />
* i386<br />
* ppc64el<br />
<br />
Launch container.<br />
$ lxc launch images:alt/p9 first<br />
Check it created.<br />
$ lxc ls<br />
Get into it.<br />
$ lxc exec first bash<br />
Stop it.<br />
$ lxc exec first<br />
And delete.<br />
$ lxc rm first<br />
<br />
== Build of images ==<br />
LXD images buildings via {{pkg|distrobuilder}}.<br />
# apt-get install distrobuilder<br />
# distrobuilder build-lxd /usr/share/distrobuilder/examples/alt<br />
<br />
Import image to lxd.<br />
$ lxc image import lxd.tar.xz rootfs.squashfs --alias myimage</div>
Obirvalger