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