Skip to content

Instantly share code, notes, and snippets.

@adam-stokes
Last active June 24, 2022 03:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save adam-stokes/4dfb10a876875fb82c67 to your computer and use it in GitHub Desktop.
Save adam-stokes/4dfb10a876875fb82c67 to your computer and use it in GitHub Desktop.
Exporting/Importing LXD Images
#!/bin/bash
# On local machine
lxc launch images:ubuntu/wily/amd64 ubuntu-64
lxc publish ubuntu-64 db-server
scp /var/lib/lxc/images/<fingerprint id from lxc publish>
# On remote host
lxc image import 63c7c79560194cf9792fc34d0a8c63ff6fe17b0a4dc185ac9544b079f4b2a7fc
lxc launch 63c7c7956019 u1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment