new file: docs/lxd_container_foo.md

This commit is contained in:
Trent Palmer 2018-02-05 17:40:06 -08:00
parent 77ca6bf989
commit 4ed2aba56a
24 changed files with 574 additions and 23 deletions

View File

@ -4,6 +4,7 @@ Obviously, the commit history will reflect the time when these documents are wri
* [Apt Pinning Artful Aardvark Packages in Xenial Xerus](apt_pinning_artful_aardvark_packages_in_xenial_xerus.md)
* [LXD Container Home Server Networking For Dummies](lxd_container_home_server_networking_for_dummies.md)
* [LXD Container Foo](lxd_container_foo.md)
* [How To Reassign A Static Ip Address with dnsmasq](how_to_reassign_a_static_ip_address_with_dnsmasq.md)
* [Serve And Share Apps From Your Phone With Fdroid](serve_and_share_apps_from_your_phone_with_fdroid.md)
* [Nspawn Containers](nspawn.md)

99
docs/lxd_container_foo.md Normal file
View File

@ -0,0 +1,99 @@
# More Notes and Tips for Using LXD
### LXD Server and _Clients_
#####Your LXD hosts can establish a secure client-server relationship very quickly and easily.
```bash
# First enable networking on Both the server and client:
lxc config set core.https_address [::]:8443
# Then on the server, set a password:
lxc config set core.trust_password <something-secure>
# Then on the client, add the server as a remote,
# and enter the password you just created for it:
lxc remote add <server> <ip address>
```
#####Now from the perspective of the client machine, the server is just another remote, same as:
* **local** (the default)
* **ubuntu** (where ubuntu images come from), and
* **images** (where lxc images of other distros come from).
* **clyde** (your host named clyde)
```bash
# command to list remotes
# returns local, images, ubuntu, etc.
lxc remote list
# command to list containers on a remote
lxc list <remote>:
# i.e. for a remote named "black"
lxc list black:
# command to list images on a remote
# i.e. for a remote name "images"
lxc image list images:
# or for a remote named "ubuntu"
lxc image list ubuntu:
# or for a specific image
lxc image list ubuntu:16.04 # or
lxc image list ubuntu:fdceb4d263b9
```
#####Now you can move containers around between servers and clients.
```bash
# launch an ubuntu container from the ubuntu remote
lxc launch ubuntu:16.04 <optional name>
# or from a remote named "black"
lxc launch black:069b95ed3a60 <optional name>
# to list the images that black has available
lxc image list black:
# copy a container from a server named "black"
# to your local client
lxc copy black:jerry <optional name to copy to>
# or from "local" back to "black"
lxc copy jerry black:<optional name to copy to>
# or move
lxc move black:jerry <optional name to copy to>
# or change the default remote from "local" to "black"
lxc remote set-default black
# and then reverse the syntax
# copy a container from a server named "black"
# to your local client
lxc copy jerry local:<optional name to copy to>
# or from "local" back to "black"
lxc copy local:jerry <optional name to copy to>
```
#####Or remote control another LXD server
```bash
# bash shell on container named "jim" running on
# a remote server named "black"
lxc exec black:jim bash
# copy that
lxc copy black:jim black:francine
# snapshot
lxc snapshot black:jim
# delete a snapshot from a remote container
# first get the containers info to see what
# snapshots it has
lxc info black:jim
# and then delete
lxc delete black:jim/snap0
# or rollback/restore,
# slightly different syntax vs "delete"
lxc restore black:jim snap0
```

View File

@ -6,6 +6,7 @@ pages:
- 'Home': index.md
- 'Apt Pinning Artful Aardvark Packages in Xenial Xerus': apt_pinning_artful_aardvark_packages_in_xenial_xerus.md
- 'LXD Container Home Server Networking For Dummies': lxd_container_home_server_networking_for_dummies.md
- 'LXD Container Foo': lxd_container_foo.md
- 'How To Reassign A Static Ip Address with dnsmasq': how_to_reassign_a_static_ip_address_with_dnsmasq.md
- 'Serve And Share Apps From Your Phone With Fdroid': serve_and_share_apps_from_your_phone_with_fdroid.md
- 'Nspawn': nspawn.md

View File

@ -57,6 +57,11 @@
<li class="toctree-l1">
<a class="" href="/lxd_container_foo/">LXD Container Foo</a>
</li>
<li class="toctree-l1">
<a class="" href="/how_to_reassign_a_static_ip_address_with_dnsmasq/">How To Reassign A Static Ip Address with dnsmasq</a>
</li>

View File

@ -70,6 +70,11 @@
<li class="toctree-l1">
<a class="" href="../lxd_container_foo/">LXD Container Foo</a>
</li>
<li class="toctree-l1">
<a class="" href="../how_to_reassign_a_static_ip_address_with_dnsmasq/">How To Reassign A Static Ip Address with dnsmasq</a>
</li>

View File

@ -64,6 +64,11 @@
<li class="toctree-l1">
<a class="" href="../lxd_container_foo/">LXD Container Foo</a>
</li>
<li class="toctree-l1">
<a class="" href="../how_to_reassign_a_static_ip_address_with_dnsmasq/">How To Reassign A Static Ip Address with dnsmasq</a>
</li>

View File

@ -64,6 +64,11 @@
<li class="toctree-l1">
<a class="" href="../lxd_container_foo/">LXD Container Foo</a>
</li>
<li class="toctree-l1">
<a class="" href="../how_to_reassign_a_static_ip_address_with_dnsmasq/">How To Reassign A Static Ip Address with dnsmasq</a>
</li>

View File

@ -64,6 +64,11 @@
<li class="toctree-l1">
<a class="" href="../lxd_container_foo/">LXD Container Foo</a>
</li>
<li class="toctree-l1">
<a class="" href="../how_to_reassign_a_static_ip_address_with_dnsmasq/">How To Reassign A Static Ip Address with dnsmasq</a>
</li>

View File

@ -64,6 +64,11 @@
<li class="toctree-l1">
<a class="" href="../lxd_container_foo/">LXD Container Foo</a>
</li>
<li class="toctree-l1">
<a class="" href="../how_to_reassign_a_static_ip_address_with_dnsmasq/">How To Reassign A Static Ip Address with dnsmasq</a>
</li>

View File

@ -64,6 +64,11 @@
<li class="toctree-l1">
<a class="" href="../lxd_container_foo/">LXD Container Foo</a>
</li>
<li class="toctree-l1">
<a class="" href="../how_to_reassign_a_static_ip_address_with_dnsmasq/">How To Reassign A Static Ip Address with dnsmasq</a>
</li>

View File

@ -64,6 +64,11 @@
<li class="toctree-l1">
<a class="" href="../lxd_container_foo/">LXD Container Foo</a>
</li>
<li class="toctree-l1">
<a class="" href="../how_to_reassign_a_static_ip_address_with_dnsmasq/">How To Reassign A Static Ip Address with dnsmasq</a>
</li>

View File

@ -62,6 +62,11 @@
<a class="" href="../lxd_container_home_server_networking_for_dummies/">LXD Container Home Server Networking For Dummies</a>
</li>
<li class="toctree-l1">
<a class="" href="../lxd_container_foo/">LXD Container Foo</a>
</li>
<li class="toctree-l1 current">
<a class="current" href="./">How To Reassign A Static Ip Address with dnsmasq</a>
@ -194,7 +199,7 @@ and then restart networking on the new client machine.</p>
<a href="../serve_and_share_apps_from_your_phone_with_fdroid/" class="btn btn-neutral float-right" title="Serve And Share Apps From Your Phone With Fdroid">Next <span class="icon icon-circle-arrow-right"></span></a>
<a href="../lxd_container_home_server_networking_for_dummies/" class="btn btn-neutral" title="LXD Container Home Server Networking For Dummies"><span class="icon icon-circle-arrow-left"></span> Previous</a>
<a href="../lxd_container_foo/" class="btn btn-neutral" title="LXD Container Foo"><span class="icon icon-circle-arrow-left"></span> Previous</a>
</div>
@ -220,7 +225,7 @@ and then restart networking on the new client machine.</p>
<span class="rst-current-version" data-toggle="rst-current-version">
<span><a href="../lxd_container_home_server_networking_for_dummies/" style="color: #fcfcfc;">&laquo; Previous</a></span>
<span><a href="../lxd_container_foo/" style="color: #fcfcfc;">&laquo; Previous</a></span>
<span style="margin-left: 15px"><a href="../serve_and_share_apps_from_your_phone_with_fdroid/" style="color: #fcfcfc">Next &raquo;</a></span>

View File

@ -76,6 +76,11 @@
<li class="toctree-l1">
<a class="" href="lxd_container_foo/">LXD Container Foo</a>
</li>
<li class="toctree-l1">
<a class="" href="how_to_reassign_a_static_ip_address_with_dnsmasq/">How To Reassign A Static Ip Address with dnsmasq</a>
</li>
@ -177,6 +182,7 @@
<ul>
<li><a href="apt_pinning_artful_aardvark_packages_in_xenial_xerus/">Apt Pinning Artful Aardvark Packages in Xenial Xerus</a></li>
<li><a href="lxd_container_home_server_networking_for_dummies/">LXD Container Home Server Networking For Dummies</a></li>
<li><a href="lxd_container_foo/">LXD Container Foo</a></li>
<li><a href="how_to_reassign_a_static_ip_address_with_dnsmasq/">How To Reassign A Static Ip Address with dnsmasq</a></li>
<li><a href="serve_and_share_apps_from_your_phone_with_fdroid/">Serve And Share Apps From Your Phone With Fdroid</a></li>
<li><a href="nspawn/">Nspawn Containers</a></li>
@ -243,5 +249,5 @@
<!--
MkDocs version : 0.17.2
Build Date UTC : 2018-01-28 20:18:47
Build Date UTC : 2018-02-06 01:39:21
-->

View File

@ -0,0 +1,316 @@
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="../img/favicon.ico">
<title>LXD Container Foo - Trent Docs</title>
<link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="../css/theme.css" type="text/css" />
<link rel="stylesheet" href="../css/theme_extra.css" type="text/css" />
<link rel="stylesheet" href="../css/highlight.css">
<script>
// Current page data
var mkdocs_page_name = "LXD Container Foo";
var mkdocs_page_input_path = "lxd_container_foo.md";
var mkdocs_page_url = "/lxd_container_foo/";
</script>
<script src="../js/jquery-2.1.1.min.js"></script>
<script src="../js/modernizr-2.8.3.min.js"></script>
<script type="text/javascript" src="../js/highlight.pack.js"></script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-nav-search">
<a href=".." class="icon icon-home"> Trent Docs</a>
<div role="search">
<form id ="rtd-search-form" class="wy-form" action="../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<ul class="current">
<li class="toctree-l1">
<a class="" href="..">Home</a>
</li>
<li class="toctree-l1">
<a class="" href="../apt_pinning_artful_aardvark_packages_in_xenial_xerus/">Apt Pinning Artful Aardvark Packages in Xenial Xerus</a>
</li>
<li class="toctree-l1">
<a class="" href="../lxd_container_home_server_networking_for_dummies/">LXD Container Home Server Networking For Dummies</a>
</li>
<li class="toctree-l1 current">
<a class="current" href="./">LXD Container Foo</a>
<ul class="subnav">
<li class="toctree-l2"><a href="#more-notes-and-tips-for-using-lxd">More Notes and Tips for Using LXD</a></li>
<ul>
<li><a class="toctree-l3" href="#lxd-server-and-clients">LXD Server and Clients</a></li>
</ul>
</ul>
</li>
<li class="toctree-l1">
<a class="" href="../how_to_reassign_a_static_ip_address_with_dnsmasq/">How To Reassign A Static Ip Address with dnsmasq</a>
</li>
<li class="toctree-l1">
<a class="" href="../serve_and_share_apps_from_your_phone_with_fdroid/">Serve And Share Apps From Your Phone With Fdroid</a>
</li>
<li class="toctree-l1">
<a class="" href="../nspawn/">Nspawn</a>
</li>
<li class="toctree-l1">
<a class="" href="../gentoo_lxd_container/">Gentoo LXD Container</a>
</li>
<li class="toctree-l1">
<a class="" href="../mastodon_on_arch/">Mastodon on Arch</a>
</li>
<li class="toctree-l1">
<a class="" href="../debian_nspawn_container_on_arch_for_testing_apache_configurations/">Debian Nspawn Container On Arch For Testing Apache Configurations</a>
</li>
<li class="toctree-l1">
<a class="" href="../dynamic_cacheing_nginx_reverse_proxy_for_pacman/">Dynamic Cacheing Nginx Reverse Proxy For Pacman</a>
</li>
<li class="toctree-l1">
<a class="" href="../freebsd_jails_on_freenas/">FreeBSD Jails on FreeNAS</a>
</li>
<li class="toctree-l1">
<a class="" href="../arch_redis_nspawn/">Quick Dirty Redis Nspawn Container on Arch Linux</a>
</li>
<li class="toctree-l1">
<a class="" href="../arch_postgresql_nspawn/">Quick Dirty Postgresql Nspawn Container on Arch Linux</a>
</li>
<li class="toctree-l1">
<a class="" href="../misc_tips_troubleshooting/">Misc Tips, Trouble Shooting</a>
</li>
<li class="toctree-l1">
<a class="" href="../self_signed_certs/">Self Signed Certs</a>
</li>
<li class="toctree-l1">
<a class="" href="../selfoss_on_centos7/">Selfoss on Centos7</a>
</li>
</ul>
</div>
&nbsp;
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="..">Trent Docs</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="..">Docs</a> &raquo;</li>
<li>LXD Container Foo</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main">
<div class="section">
<h1 id="more-notes-and-tips-for-using-lxd">More Notes and Tips for Using LXD</h1>
<h3 id="lxd-server-and-clients">LXD Server and <em>Clients</em></h3>
<h5 id="your-lxd-hosts-can-establish-a-secure-client-server-relationship-very-quickly-and-easily">Your LXD hosts can establish a secure client-server relationship very quickly and easily.</h5>
<pre><code class="bash"># First enable networking on Both the server and client:
lxc config set core.https_address [::]:8443
# Then on the server, set a password:
lxc config set core.trust_password &lt;something-secure&gt;
# Then on the client, add the server as a remote,
# and enter the password you just created for it:
lxc remote add &lt;server&gt; &lt;ip address&gt;
</code></pre>
<h5 id="now-from-the-perspective-of-the-client-machine-the-server-is-just-another-remote-same-as">Now from the perspective of the client machine, the server is just another remote, same as:</h5>
<ul>
<li><strong>local</strong> (the default)</li>
<li><strong>ubuntu</strong> (where ubuntu images come from), and </li>
<li><strong>images</strong> (where lxc images of other distros come from).</li>
<li><strong>clyde</strong> (your host named clyde)</li>
</ul>
<pre><code class="bash"># command to list remotes
# returns local, images, ubuntu, etc.
lxc remote list
# command to list containers on a remote
lxc list &lt;remote&gt;:
# i.e. for a remote named &quot;black&quot;
lxc list black:
# command to list images on a remote
# i.e. for a remote name &quot;images&quot;
lxc image list images:
# or for a remote named &quot;ubuntu&quot;
lxc image list ubuntu:
# or for a specific image
lxc image list ubuntu:16.04 # or
lxc image list ubuntu:fdceb4d263b9
</code></pre>
<h5 id="now-you-can-move-containers-around-between-servers-and-clients">Now you can move containers around between servers and clients.</h5>
<pre><code class="bash"># launch an ubuntu container from the ubuntu remote
lxc launch ubuntu:16.04 &lt;optional name&gt;
# or from a remote named &quot;black&quot;
lxc launch black:069b95ed3a60 &lt;optional name&gt;
# to list the images that black has available
lxc image list black:
# copy a container from a server named &quot;black&quot;
# to your local client
lxc copy black:jerry &lt;optional name to copy to&gt;
# or from &quot;local&quot; back to &quot;black&quot;
lxc copy jerry black:&lt;optional name to copy to&gt;
# or move
lxc move black:jerry &lt;optional name to copy to&gt;
# or change the default remote from &quot;local&quot; to &quot;black&quot;
lxc remote set-default black
# and then reverse the syntax
# copy a container from a server named &quot;black&quot;
# to your local client
lxc copy jerry local:&lt;optional name to copy to&gt;
# or from &quot;local&quot; back to &quot;black&quot;
lxc copy local:jerry &lt;optional name to copy to&gt;
</code></pre>
<h5 id="or-remote-control-another-lxd-server">Or remote control another LXD server</h5>
<pre><code class="bash"># bash shell on container named &quot;jim&quot; running on
# a remote server named &quot;black&quot;
lxc exec black:jim bash
# copy that
lxc copy black:jim black:francine
# snapshot
lxc snapshot black:jim
# delete a snapshot from a remote container
# first get the containers info to see what
# snapshots it has
lxc info black:jim
# and then delete
lxc delete black:jim/snap0
# or rollback/restore,
# slightly different syntax vs &quot;delete&quot;
lxc restore black:jim snap0
</code></pre>
</div>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="../how_to_reassign_a_static_ip_address_with_dnsmasq/" class="btn btn-neutral float-right" title="How To Reassign A Static Ip Address with dnsmasq">Next <span class="icon icon-circle-arrow-right"></span></a>
<a href="../lxd_container_home_server_networking_for_dummies/" class="btn btn-neutral" title="LXD Container Home Server Networking For Dummies"><span class="icon icon-circle-arrow-left"></span> Previous</a>
</div>
<hr/>
<div role="contentinfo">
<!-- Copyright etc -->
</div>
Built with <a href="http://www.mkdocs.org">MkDocs</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<div class="rst-versions" role="note" style="cursor: pointer">
<span class="rst-current-version" data-toggle="rst-current-version">
<span><a href="../lxd_container_home_server_networking_for_dummies/" style="color: #fcfcfc;">&laquo; Previous</a></span>
<span style="margin-left: 15px"><a href="../how_to_reassign_a_static_ip_address_with_dnsmasq/" style="color: #fcfcfc">Next &raquo;</a></span>
</span>
</div>
<script>var base_url = '..';</script>
<script src="../js/theme.js"></script>
<script src="../search/require.js"></script>
<script src="../search/search.js"></script>
</body>
</html>

View File

@ -84,6 +84,11 @@
<li class="toctree-l1">
<a class="" href="../lxd_container_foo/">LXD Container Foo</a>
</li>
<li class="toctree-l1">
<a class="" href="../how_to_reassign_a_static_ip_address_with_dnsmasq/">How To Reassign A Static Ip Address with dnsmasq</a>
</li>
@ -469,7 +474,7 @@ vim /etc/hosts
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="../how_to_reassign_a_static_ip_address_with_dnsmasq/" class="btn btn-neutral float-right" title="How To Reassign A Static Ip Address with dnsmasq">Next <span class="icon icon-circle-arrow-right"></span></a>
<a href="../lxd_container_foo/" class="btn btn-neutral float-right" title="LXD Container Foo">Next <span class="icon icon-circle-arrow-right"></span></a>
<a href="../apt_pinning_artful_aardvark_packages_in_xenial_xerus/" class="btn btn-neutral" title="Apt Pinning Artful Aardvark Packages in Xenial Xerus"><span class="icon icon-circle-arrow-left"></span> Previous</a>
@ -501,7 +506,7 @@ vim /etc/hosts
<span><a href="../apt_pinning_artful_aardvark_packages_in_xenial_xerus/" style="color: #fcfcfc;">&laquo; Previous</a></span>
<span style="margin-left: 15px"><a href="../how_to_reassign_a_static_ip_address_with_dnsmasq/" style="color: #fcfcfc">Next &raquo;</a></span>
<span style="margin-left: 15px"><a href="../lxd_container_foo/" style="color: #fcfcfc">Next &raquo;</a></span>
</span>
</div>

View File

@ -64,6 +64,11 @@
<li class="toctree-l1">
<a class="" href="../lxd_container_foo/">LXD Container Foo</a>
</li>
<li class="toctree-l1">
<a class="" href="../how_to_reassign_a_static_ip_address_with_dnsmasq/">How To Reassign A Static Ip Address with dnsmasq</a>
</li>

View File

@ -64,6 +64,11 @@
<li class="toctree-l1">
<a class="" href="../lxd_container_foo/">LXD Container Foo</a>
</li>
<li class="toctree-l1">
<a class="" href="../how_to_reassign_a_static_ip_address_with_dnsmasq/">How To Reassign A Static Ip Address with dnsmasq</a>
</li>

View File

@ -64,6 +64,11 @@
<li class="toctree-l1">
<a class="" href="../lxd_container_foo/">LXD Container Foo</a>
</li>
<li class="toctree-l1">
<a class="" href="../how_to_reassign_a_static_ip_address_with_dnsmasq/">How To Reassign A Static Ip Address with dnsmasq</a>
</li>

View File

@ -57,6 +57,11 @@
<li class="toctree-l1">
<a class="" href="lxd_container_foo/">LXD Container Foo</a>
</li>
<li class="toctree-l1">
<a class="" href="how_to_reassign_a_static_ip_address_with_dnsmasq/">How To Reassign A Static Ip Address with dnsmasq</a>
</li>

View File

@ -2,7 +2,7 @@
"docs": [
{
"location": "/",
"text": "Welcome to Trent Docs\n\n\nGit Repo For These Docs\n\n\nObviously, the commit history will reflect the time when these documents are written.\n\n\n\n\nApt Pinning Artful Aardvark Packages in Xenial Xerus\n\n\nLXD Container Home Server Networking For Dummies\n\n\nHow To Reassign A Static Ip Address with dnsmasq\n\n\nServe And Share Apps From Your Phone With Fdroid\n\n\nNspawn Containers\n\n\nGentoo LXD Container\n\n\nMastodon on Arch\n\n\nDebian Nspawn Container On Arch For Testing Apache Configurations\n\n\nDynamic Cacheing Nginx Reverse Proxy For Pacman\n\n\nFreeBSD Jails on FreeNAS\n \n\n\nQuick Dirty Redis Nspawn Container on Arch Linux\n\n\nQuick Dirty Postgresql Nspawn Container on Arch Linux\n\n\nMisc Tips, Trouble Shooting\n\n\nSelf Signed Certs\n\n\nSelfoss on Centos7",
"text": "Welcome to Trent Docs\n\n\nGit Repo For These Docs\n\n\nObviously, the commit history will reflect the time when these documents are written.\n\n\n\n\nApt Pinning Artful Aardvark Packages in Xenial Xerus\n\n\nLXD Container Home Server Networking For Dummies\n\n\nLXD Container Foo\n\n\nHow To Reassign A Static Ip Address with dnsmasq\n\n\nServe And Share Apps From Your Phone With Fdroid\n\n\nNspawn Containers\n\n\nGentoo LXD Container\n\n\nMastodon on Arch\n\n\nDebian Nspawn Container On Arch For Testing Apache Configurations\n\n\nDynamic Cacheing Nginx Reverse Proxy For Pacman\n\n\nFreeBSD Jails on FreeNAS\n \n\n\nQuick Dirty Redis Nspawn Container on Arch Linux\n\n\nQuick Dirty Postgresql Nspawn Container on Arch Linux\n\n\nMisc Tips, Trouble Shooting\n\n\nSelf Signed Certs\n\n\nSelfoss on Centos7",
"title": "Home"
},
{
@ -12,7 +12,7 @@
},
{
"location": "/#git-repo-for-these-docs",
"text": "Obviously, the commit history will reflect the time when these documents are written. Apt Pinning Artful Aardvark Packages in Xenial Xerus LXD Container Home Server Networking For Dummies How To Reassign A Static Ip Address with dnsmasq Serve And Share Apps From Your Phone With Fdroid Nspawn Containers Gentoo LXD Container Mastodon on Arch Debian Nspawn Container On Arch For Testing Apache Configurations Dynamic Cacheing Nginx Reverse Proxy For Pacman FreeBSD Jails on FreeNAS Quick Dirty Redis Nspawn Container on Arch Linux Quick Dirty Postgresql Nspawn Container on Arch Linux Misc Tips, Trouble Shooting Self Signed Certs Selfoss on Centos7",
"text": "Obviously, the commit history will reflect the time when these documents are written. Apt Pinning Artful Aardvark Packages in Xenial Xerus LXD Container Home Server Networking For Dummies LXD Container Foo How To Reassign A Static Ip Address with dnsmasq Serve And Share Apps From Your Phone With Fdroid Nspawn Containers Gentoo LXD Container Mastodon on Arch Debian Nspawn Container On Arch For Testing Apache Configurations Dynamic Cacheing Nginx Reverse Proxy For Pacman FreeBSD Jails on FreeNAS Quick Dirty Redis Nspawn Container on Arch Linux Quick Dirty Postgresql Nspawn Container on Arch Linux Misc Tips, Trouble Shooting Self Signed Certs Selfoss on Centos7",
"title": "Git Repo For These Docs"
},
{
@ -100,6 +100,41 @@
"text": "Once you assign the containers static ip addresses for their eth1 \ninterfaces, you can use the /etc/hosts file on each container to make them\naware of where the other containers and the host machine are. For instance, if you want the container quick-joey to talk directly\nto the host machine, which will be at the ip address of lxdbr1 , start a shell\non the container quick-joey lxc exec quick-joey bash and edit /etc/hosts # /etc/hosts\n10.151.18.1 mothership Or you have a container named fat-cinderella , that needs to be able to talk\ndirectly quick-joey . lxc exec fat-cinderella bash\nvim /etc/hosts # /etc/hosts\n10.151.18.123 quick-joey etcetera",
"title": "the /etc/hosts file"
},
{
"location": "/lxd_container_foo/",
"text": "More Notes and Tips for Using LXD\n\n\nLXD Server and \nClients\n\n\nYour LXD hosts can establish a secure client-server relationship very quickly and easily.\n\n\n# First enable networking on Both the server and client:\nlxc config set core.https_address [::]:8443\n\n# Then on the server, set a password:\nlxc config set core.trust_password <something-secure>\n\n# Then on the client, add the server as a remote,\n# and enter the password you just created for it:\nlxc remote add <server> <ip address>\n\n\n\n\nNow from the perspective of the client machine, the server is just another remote, same as:\n\n\n\n\nlocal\n (the default)\n\n\nubuntu\n (where ubuntu images come from), and \n\n\nimages\n (where lxc images of other distros come from).\n\n\nclyde\n (your host named clyde)\n\n\n\n\n# command to list remotes\n# returns local, images, ubuntu, etc.\nlxc remote list\n\n# command to list containers on a remote\nlxc list <remote>:\n# i.e. for a remote named \"black\"\nlxc list black:\n\n# command to list images on a remote\n# i.e. for a remote name \"images\"\nlxc image list images:\n# or for a remote named \"ubuntu\"\nlxc image list ubuntu:\n# or for a specific image\nlxc image list ubuntu:16.04 # or\nlxc image list ubuntu:fdceb4d263b9\n\n\n\n\nNow you can move containers around between servers and clients.\n\n\n# launch an ubuntu container from the ubuntu remote\nlxc launch ubuntu:16.04 <optional name>\n# or from a remote named \"black\"\nlxc launch black:069b95ed3a60 <optional name>\n# to list the images that black has available\nlxc image list black:\n\n# copy a container from a server named \"black\"\n# to your local client\nlxc copy black:jerry <optional name to copy to>\n# or from \"local\" back to \"black\"\nlxc copy jerry black:<optional name to copy to>\n# or move\nlxc move black:jerry <optional name to copy to>\n\n# or change the default remote from \"local\" to \"black\"\nlxc remote set-default black\n# and then reverse the syntax\n# copy a container from a server named \"black\"\n# to your local client\nlxc copy jerry local:<optional name to copy to>\n# or from \"local\" back to \"black\"\nlxc copy local:jerry <optional name to copy to>\n\n\n\n\nOr remote control another LXD server\n\n\n# bash shell on container named \"jim\" running on\n# a remote server named \"black\"\nlxc exec black:jim bash\n\n# copy that\nlxc copy black:jim black:francine\n\n# snapshot\nlxc snapshot black:jim\n\n# delete a snapshot from a remote container\n# first get the containers info to see what\n# snapshots it has\nlxc info black:jim\n# and then delete\nlxc delete black:jim/snap0\n\n# or rollback/restore,\n# slightly different syntax vs \"delete\"\nlxc restore black:jim snap0",
"title": "LXD Container Foo"
},
{
"location": "/lxd_container_foo/#more-notes-and-tips-for-using-lxd",
"text": "",
"title": "More Notes and Tips for Using LXD"
},
{
"location": "/lxd_container_foo/#lxd-server-and-clients",
"text": "",
"title": "LXD Server and Clients"
},
{
"location": "/lxd_container_foo/#your-lxd-hosts-can-establish-a-secure-client-server-relationship-very-quickly-and-easily",
"text": "# First enable networking on Both the server and client:\nlxc config set core.https_address [::]:8443\n\n# Then on the server, set a password:\nlxc config set core.trust_password <something-secure>\n\n# Then on the client, add the server as a remote,\n# and enter the password you just created for it:\nlxc remote add <server> <ip address>",
"title": "Your LXD hosts can establish a secure client-server relationship very quickly and easily."
},
{
"location": "/lxd_container_foo/#now-from-the-perspective-of-the-client-machine-the-server-is-just-another-remote-same-as",
"text": "local (the default) ubuntu (where ubuntu images come from), and images (where lxc images of other distros come from). clyde (your host named clyde) # command to list remotes\n# returns local, images, ubuntu, etc.\nlxc remote list\n\n# command to list containers on a remote\nlxc list <remote>:\n# i.e. for a remote named \"black\"\nlxc list black:\n\n# command to list images on a remote\n# i.e. for a remote name \"images\"\nlxc image list images:\n# or for a remote named \"ubuntu\"\nlxc image list ubuntu:\n# or for a specific image\nlxc image list ubuntu:16.04 # or\nlxc image list ubuntu:fdceb4d263b9",
"title": "Now from the perspective of the client machine, the server is just another remote, same as:"
},
{
"location": "/lxd_container_foo/#now-you-can-move-containers-around-between-servers-and-clients",
"text": "# launch an ubuntu container from the ubuntu remote\nlxc launch ubuntu:16.04 <optional name>\n# or from a remote named \"black\"\nlxc launch black:069b95ed3a60 <optional name>\n# to list the images that black has available\nlxc image list black:\n\n# copy a container from a server named \"black\"\n# to your local client\nlxc copy black:jerry <optional name to copy to>\n# or from \"local\" back to \"black\"\nlxc copy jerry black:<optional name to copy to>\n# or move\nlxc move black:jerry <optional name to copy to>\n\n# or change the default remote from \"local\" to \"black\"\nlxc remote set-default black\n# and then reverse the syntax\n# copy a container from a server named \"black\"\n# to your local client\nlxc copy jerry local:<optional name to copy to>\n# or from \"local\" back to \"black\"\nlxc copy local:jerry <optional name to copy to>",
"title": "Now you can move containers around between servers and clients."
},
{
"location": "/lxd_container_foo/#or-remote-control-another-lxd-server",
"text": "# bash shell on container named \"jim\" running on\n# a remote server named \"black\"\nlxc exec black:jim bash\n\n# copy that\nlxc copy black:jim black:francine\n\n# snapshot\nlxc snapshot black:jim\n\n# delete a snapshot from a remote container\n# first get the containers info to see what\n# snapshots it has\nlxc info black:jim\n# and then delete\nlxc delete black:jim/snap0\n\n# or rollback/restore,\n# slightly different syntax vs \"delete\"\nlxc restore black:jim snap0",
"title": "Or remote control another LXD server"
},
{
"location": "/how_to_reassign_a_static_ip_address_with_dnsmasq/",
"text": "How To Reassign a Static ip address with dnsmasq\n\n\nOn your router you can assign static ip addresses for various machines\nin your network, by writing the reservations in the file \n/etc/dnsmasq.conf\n.\n\n\nThese will be in the form as below.\n\n\ndhcp-host=<mac address>,<ip address>\n\n\nSo here's how you transfer an existing static ip address assignment to\na new client machine. Begin by editting the file \n/etc/dnsmasq.conf\n on\nyour router, and update the mac address associated with the intended\nip address.\n\n\nNext, temporarily stop dnsmasq.\n\n\nsystemctl stop dnsmasq\n\n\n\n\nNext shutdown networking on the new client machine. Shutting the machine down might work,\nor the command \ndhclient -v -r\n might get the job done (you will lose the connection).\n\n\nNow on the router, edit the file \n/var/lib/misc/dnsmasq.leases\n, and delete the pre-existing\nlease for the old client machine that will no longer exist.\n\n\nRestart dnsmasq on the router,\n\nand then restart networking on the new client machine.",

View File

@ -64,6 +64,11 @@
<li class="toctree-l1">
<a class="" href="../lxd_container_foo/">LXD Container Foo</a>
</li>
<li class="toctree-l1">
<a class="" href="../how_to_reassign_a_static_ip_address_with_dnsmasq/">How To Reassign A Static Ip Address with dnsmasq</a>
</li>

View File

@ -64,6 +64,11 @@
<li class="toctree-l1">
<a class="" href="../lxd_container_foo/">LXD Container Foo</a>
</li>
<li class="toctree-l1">
<a class="" href="../how_to_reassign_a_static_ip_address_with_dnsmasq/">How To Reassign A Static Ip Address with dnsmasq</a>
</li>

View File

@ -64,6 +64,11 @@
<li class="toctree-l1">
<a class="" href="../lxd_container_foo/">LXD Container Foo</a>
</li>
<li class="toctree-l1">
<a class="" href="../how_to_reassign_a_static_ip_address_with_dnsmasq/">How To Reassign A Static Ip Address with dnsmasq</a>
</li>

View File

@ -4,7 +4,7 @@
<url>
<loc>/</loc>
<lastmod>2018-01-28</lastmod>
<lastmod>2018-02-05</lastmod>
<changefreq>daily</changefreq>
</url>
@ -12,7 +12,7 @@
<url>
<loc>/apt_pinning_artful_aardvark_packages_in_xenial_xerus/</loc>
<lastmod>2018-01-28</lastmod>
<lastmod>2018-02-05</lastmod>
<changefreq>daily</changefreq>
</url>
@ -20,7 +20,15 @@
<url>
<loc>/lxd_container_home_server_networking_for_dummies/</loc>
<lastmod>2018-01-28</lastmod>
<lastmod>2018-02-05</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>/lxd_container_foo/</loc>
<lastmod>2018-02-05</lastmod>
<changefreq>daily</changefreq>
</url>
@ -28,7 +36,7 @@
<url>
<loc>/how_to_reassign_a_static_ip_address_with_dnsmasq/</loc>
<lastmod>2018-01-28</lastmod>
<lastmod>2018-02-05</lastmod>
<changefreq>daily</changefreq>
</url>
@ -36,7 +44,7 @@
<url>
<loc>/serve_and_share_apps_from_your_phone_with_fdroid/</loc>
<lastmod>2018-01-28</lastmod>
<lastmod>2018-02-05</lastmod>
<changefreq>daily</changefreq>
</url>
@ -44,7 +52,7 @@
<url>
<loc>/nspawn/</loc>
<lastmod>2018-01-28</lastmod>
<lastmod>2018-02-05</lastmod>
<changefreq>daily</changefreq>
</url>
@ -52,7 +60,7 @@
<url>
<loc>/gentoo_lxd_container/</loc>
<lastmod>2018-01-28</lastmod>
<lastmod>2018-02-05</lastmod>
<changefreq>daily</changefreq>
</url>
@ -60,7 +68,7 @@
<url>
<loc>/mastodon_on_arch/</loc>
<lastmod>2018-01-28</lastmod>
<lastmod>2018-02-05</lastmod>
<changefreq>daily</changefreq>
</url>
@ -68,7 +76,7 @@
<url>
<loc>/debian_nspawn_container_on_arch_for_testing_apache_configurations/</loc>
<lastmod>2018-01-28</lastmod>
<lastmod>2018-02-05</lastmod>
<changefreq>daily</changefreq>
</url>
@ -76,7 +84,7 @@
<url>
<loc>/dynamic_cacheing_nginx_reverse_proxy_for_pacman/</loc>
<lastmod>2018-01-28</lastmod>
<lastmod>2018-02-05</lastmod>
<changefreq>daily</changefreq>
</url>
@ -84,7 +92,7 @@
<url>
<loc>/freebsd_jails_on_freenas/</loc>
<lastmod>2018-01-28</lastmod>
<lastmod>2018-02-05</lastmod>
<changefreq>daily</changefreq>
</url>
@ -92,7 +100,7 @@
<url>
<loc>/arch_redis_nspawn/</loc>
<lastmod>2018-01-28</lastmod>
<lastmod>2018-02-05</lastmod>
<changefreq>daily</changefreq>
</url>
@ -100,7 +108,7 @@
<url>
<loc>/arch_postgresql_nspawn/</loc>
<lastmod>2018-01-28</lastmod>
<lastmod>2018-02-05</lastmod>
<changefreq>daily</changefreq>
</url>
@ -108,7 +116,7 @@
<url>
<loc>/misc_tips_troubleshooting/</loc>
<lastmod>2018-01-28</lastmod>
<lastmod>2018-02-05</lastmod>
<changefreq>daily</changefreq>
</url>
@ -116,7 +124,7 @@
<url>
<loc>/self_signed_certs/</loc>
<lastmod>2018-01-28</lastmod>
<lastmod>2018-02-05</lastmod>
<changefreq>daily</changefreq>
</url>
@ -124,7 +132,7 @@
<url>
<loc>/selfoss_on_centos7/</loc>
<lastmod>2018-01-28</lastmod>
<lastmod>2018-02-05</lastmod>
<changefreq>daily</changefreq>
</url>