User Tools

Site Tools


public:managing_lxd_on_debian

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
public:managing_lxd_on_debian [2024/05/08 08:54] – created thomaspublic:managing_lxd_on_debian [2024/05/13 09:15] (current) thomas
Line 1: Line 1:
-====== Managing LXD on Debian ======+====== Managing LXD (Incus) on Debian ======
  
-===== Installing LXD (Incus=====+===== Installing Incus =====
  
 Debian has its own port of LXD called Incus. It can be installed by executing: Debian has its own port of LXD called Incus. It can be installed by executing:
Line 10: Line 10:
  
 Then initialize Incus: Then initialize Incus:
 +
 +:!: Before initialization, make sure to have a network bridge and ZFS dataset ready if you want to use those.
  
 <code> <code>
 sudo incus admin init sudo incus admin init
 </code> </code>
 +
 +FIXME TODO: Define multiple networks (NAT/bridged) and specify how to deploy a VM in them.
 +
 +===== Listing available images =====
 +
 +<code>
 +incus image list images: | less
 +</code>
 +
 +===== Getting a root shell on a container =====
 +
 +<code>
 +incus exec <containername> -- bash
 +</code>
 +
 +===== Getting to the console of a container =====
 +
 +<code>
 +incus console <containername>
 +</code>
 +
 +===== List running containers =====
 +
 +<code>
 +incus list
 +</code>
 +
 +===== Stopping a container =====
 +
 +<code>
 +incus stop <containername>
 +</code>
 +
 +===== Creating a new container =====
 +
 +<code>
 +incus launch images:<os/version> <containername>
 +</code>
 +
 +===== Delete a container =====
 +
 +<code>
 +incus delete <containername>
 +</code>
 +
 +
 +===== References =====
 +
 +  * https://wiki.debian.org/LXD
 +  * https://www.cyberciti.biz/faq/how-to-install-lxd-on-debian-11-linux/
  
public/managing_lxd_on_debian.1715158463.txt.gz · Last modified: by thomas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki