1. Listing Available Images To view available Debian images:
- incus image list images: debian
2. Launching a New Container To create and start a new container named debian13-container on the 16C32T node:
- incus launch images:debian/trixie debian13-container --target 16C32T
3. Creating a Network Bridge To create a network bridge named my-bridge on the node1 node:
- incus network create my-bridge --target node1
Then, to finalize the network creation across the cluster:
- incus network create my-bridge
4. Attaching the Network to the Container To attach the my-bridge network to the debian13-container as eth0:
- incus network attach my-bridge debian13-container eth0
After attaching, restart the container to apply changes:
- incus restart debian13-container
5. Moving the Container to Another Node To move debian13-container from 16C32T to 8core:
- incus move debian13-container --target 8core
If live migration fails due to missing CRIU or nested UTS namespaces, stop the container before moving:
- incus stop debian13-container incus move debian13-container --target 8core
6. Accessing the Container's Shell To open a shell inside debian13-container:
- incus exec debian13-container -- /bin/bash
To access as a specific user:
- incus exec debian13-container -- su --login <username>
7. Viewing Container Configuration To display the expanded configuration of debian13-container:
8. Modifying Container Configuration To set the security.nesting option to false:
After changing the configuration, restart the container:
9. Listing Containers To list all containers with their status and location:
10. Checking Network Interfaces To view network interfaces on the host:
- ip a
To view network interfaces inside the container:
- incus exec debian13-container -- ip a
11. Deleting a Container To delete debian13-container:
- incus delete debian13-container
12. Copying a Container To copy debian13-container to a new container named debian13-container-copy:
- incus copy debian13-container debian13-container-copy
13. Starting and Stopping Containers To start a container:
- incus start <container-name>
To stop a container:
- incus stop <container-name>
14. Viewing Detailed Container Information To get detailed information about debian13-container:
- incus info debian13-container
15. Creating and Managing Snapshots To create a snapshot named snapshot1 for debian13-container:
- incus snapshot debian13-container snapshot1
To list snapshots of a container:
- incus snapshot list debian13-container
To restore a container to a snapshot:
- incus restore debian13-container snapshot1
To delete a snapshot:
- incus snapshot delete debian13-container snapshot1
16. Exporting and Importing Containers To export a container to a file:
- incus export debian13-container /path/to/export.tar.gz
To import a container from a file:
- incus import /path/to/export.tar.gz
17. Managing Storage To list storage pools:
- incus storage list
To show details of a storage pool:
- incus storage show <pool-name>
To create a new storage pool:
- incus storage create <pool-name> <driver> [key=value...]
18. Managing Networks To list networks:
incus network list