Manchmal will man schnell etwas installieren, ohne das komplette System zu zerlegen. Ein sehr guter Blog Artikel zum Thema.

Snap/LXC installieren

  1. Neuere Version (3.x) gibt es über snap # apt install snapd
  2. Alte Version deinstallieren, neue installieren # apt purge lxd; snap install lxd
  3. # adduser [benutzer] lxd
  4. LXC einrichten # lxc init
  5. Pool als dir definieren. Kein IPv6, wenn nicht absolut notwendig.
  6. Rechte setzen $ echo "root:$UID:1" | sudo tee -a /etc/subuid /etc/subgid
  7. wget https://LupusE.github.io/misc/lxdguiprofile.txt
  8. Profil anlegen $ cat lxdguiprofile.txt | lxc profile edit gui
  9. VM erstellen $ lxc launch --profile default --profile gui ubuntu:trusty oldbuntu
  10. In VM einloggen $ lxc exec oldbuntu -- sudo --user ubuntu --login

Aufräumen

  1. VM verlassen $ exit
  2. VM beenden $ lxc stop oldbuntu
  3. VM löschen $ lxc delete oldbuntu