feat: added lxc bits
This commit is contained in:
parent
63a01370fe
commit
f5b249e20d
1 changed files with 27 additions and 3 deletions
|
|
@ -1,12 +1,36 @@
|
||||||
# LXC
|
# LXC
|
||||||
|
|
||||||
## Show running LXC
|
## Interaction
|
||||||
|
|
||||||
|
### Show running LXC
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
sudo pct list
|
sudo pct list
|
||||||
```
|
```
|
||||||
|
|
||||||
## GPU access
|
### Enter running LXC
|
||||||
|
|
||||||
|
```shell
|
||||||
|
sudo pct enter <id>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Operate LCX
|
||||||
|
```shell
|
||||||
|
sudo pct stop <id>
|
||||||
|
sudo pct start <id>
|
||||||
|
sudo pct reboot <id>
|
||||||
|
sudo pct destroy <id>
|
||||||
|
|
||||||
|
sudo pct status <id>
|
||||||
|
sudo pct migrate <id> <target>
|
||||||
|
|
||||||
|
sudo pct snapshot <id> <snapname>
|
||||||
|
sudo pct rollback <id> <snapname>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
### GPU access
|
||||||
|
|
||||||
Add the following to the config:
|
Add the following to the config:
|
||||||
|
|
||||||
|
|
@ -19,7 +43,7 @@ lxc.mount.entry: /dev/fb0 dev/fb0 none bind,optional,create=file
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Add mount point
|
### Add mount point
|
||||||
|
|
||||||
Add the following to the config:
|
Add the following to the config:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue