add documentation

This commit is contained in:
2022-10-29 17:31:01 +01:00
parent ebe48d2e4e
commit 576c4d411f

View File

@@ -2,8 +2,24 @@
## Setup ## Setup
requires snap
```bash
sudo apt install snap
```
```bash
sudo snap install lxd
sudo usermod -a -G lxd $(whoami) sudo usermod -a -G lxd $(whoami)
```
Init
Setup lxd
```bash
sudo lxd init
```
## Containers ## Containers
@@ -25,6 +41,13 @@ lxc info containername
lxc launch ubuntu containername lxc launch ubuntu containername
``` ```
### move
```bash
lxc mv ubuntu ubuntu1
lxc mv ubuntu1 -s=poolname
```
### Stop ### Stop
```bash ```bash
@@ -79,12 +102,19 @@ lxc profile assign "container name" "profile name to assign"
### macvlan only ### macvlan only
1) create copy from default 1) create copy from default
2) edit new profile
```bash ```bash
lxc profile copy default eth0_macvlan
lxc profile edit eth0_macvlan
```
1) edit new profile
```bash
devices: devices:
eth0: eth0:
nictype: macvlan nictype: macvlan
parent: "physical ethernet name" parent: eth0 # parent ethernet name
type: nic type: nic
``` ```