<aclass=""href="../mastodon_on_arch/">Mastodon on Arch</a>
</li>
<liclass="toctree-l1">
<aclass=""href="../debian_nspawn_container_on_arch_for_testing_apache_configurations/">Debian Nspawn Container On Arch For Testing Apache Configurations</a>
</li>
<liclass="toctree-l1">
<aclass=""href="../dynamic_cacheing_nginx_reverse_proxy_for_pacman/">Dynamic Cacheing Nginx Reverse Proxy For Pacman</a>
</li>
<liclass="toctree-l1">
<aclass=""href="../freebsd_jails_on_freenas/">FreeBSD Jails on FreeNAS</a>
</li>
<liclass="toctree-l1">
<aclass=""href="../arch_redis_nspawn/">Quick Dirty Redis Nspawn Container on Arch Linux</a>
</li>
<liclass="toctree-l1">
<aclass=""href="../arch_postgresql_nspawn/">Quick Dirty Postgresql Nspawn Container on Arch Linux</a>
<h1id="more-notes-and-tips-for-using-lxd">More Notes and Tips for Using LXD</h1>
<h3id="lxd-server-and-clients">LXD Server and <em>Clients</em></h3>
<h5id="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><codeclass="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>
</code></pre>
<h5id="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><codeclass="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
</code></pre>
<h5id="now-you-can-move-containers-around-between-servers-and-clients">Now you can move containers around between servers and clients.</h5>
<pre><codeclass="bash"># launch an ubuntu container from the ubuntu remote
<ahref="../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 <spanclass="icon icon-circle-arrow-right"></span></a>
<ahref="../lxd_container_home_server_networking_for_dummies/"class="btn btn-neutral"title="LXD Container Home Server Networking For Dummies"><spanclass="icon icon-circle-arrow-left"></span> Previous</a>
</div>
<hr/>
<divrole="contentinfo">
<!-- Copyright etc -->
</div>
Built with <ahref="http://www.mkdocs.org">MkDocs</a> using a <ahref="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.