extend docs/misc_tips_troubleshooting.md with how to move lxd container

to another server
This commit is contained in:
2017-07-26 09:30:44 -07:00
parent 27b6330edd
commit 14649a2871
5 changed files with 69 additions and 16 deletions

View File

@@ -118,6 +118,8 @@
<li><a class="toctree-l3" href="#sending-commands-to-lxd-containers">Sending commands to LXD containers</a></li>
<li><a class="toctree-l3" href="#move-lxd-container-to-another-server">Move LXD container to another Server</a></li>
<li><a class="toctree-l3" href="#ubuntu-mate-welcome-center-doesnt-work-some-for-some-repos">Ubuntu-Mate-Welcome-Center doesn't work some for some repos</a></li>
</ul>
@@ -183,6 +185,27 @@ for machine in (lxc list | grep RUNNING | awk '{print $2}') ; echo ; \
echo $machine ; lxc exec $machine -- bash -c &quot;who&quot; ; end
</code></pre>
<h2 id="move-lxd-container-to-another-server">Move LXD container to another Server</h2>
<pre><code class="bash"># stop the container
lxc stop &lt;container name&gt;
# publish image of container to local *storage*
lxc publish &lt;container name&gt; --alias &lt;image name&gt;
# export the new image to tarball
lxc image export &lt;image name&gt;
# scp tarball to other box
scp a4762b114fecee2e2bc227b9032405642c5286c02009babef7953e011e597bfe.tar.gz server:
# on other box import the image
lxc image import &lt;tarball file name&gt; --alias &lt;image name&gt;
# launch container
lxc launch &lt;image name&gt; &lt;container name&gt;
# assign profile to container
lxc profile assign &lt;container name&gt; &lt;profile name&gt;
</code></pre>
<p>Shell into the new running container, update any network interface
configurations that you need to, and then restart the container.</p>
<p>See also
<a href="../lxd_container_home_server_networking_for_dummies/">LXD Container Home Server Networking For Dummies</a></p>
<h2 id="ubuntu-mate-welcome-center-doesnt-work-some-for-some-repos">Ubuntu-Mate-Welcome-Center doesn't work some for some repos</h2>
<p>Perhaps your apt-cacher-ng proxy server isn't configured to allow
traffic through from https sources. Make sure the following is