mirror of
https://github.com/TrentSPalmer/trentdocs_website.git
synced 2025-08-01 13:33:57 -07:00
extend docs/misc_tips_troubleshooting.md with how to move lxd container
to another server
This commit is contained in:
@@ -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 "who" ; 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 <container name>
|
||||
# publish image of container to local *storage*
|
||||
lxc publish <container name> --alias <image name>
|
||||
# export the new image to tarball
|
||||
lxc image export <image name>
|
||||
# scp tarball to other box
|
||||
scp a4762b114fecee2e2bc227b9032405642c5286c02009babef7953e011e597bfe.tar.gz server:
|
||||
# on other box import the image
|
||||
lxc image import <tarball file name> --alias <image name>
|
||||
# launch container
|
||||
lxc launch <image name> <container name>
|
||||
# assign profile to container
|
||||
lxc profile assign <container name> <profile name>
|
||||
</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
|
||||
|
Reference in New Issue
Block a user