Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:lxc [2024/10/29 08:16] – 5.152.82.90 | wiki:lxc [2024/11/02 16:32] (current) – 5.152.82.90 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| =====Commnads===== | =====Commnads===== | ||
| - | **Get config** | + | **Config** |
| - | < | + | < |
| - | **Set cpu core count** | + | pct config < |
| - | < | + | pct set <id> --cores 4 --memory 2048 |
| - | **Set memory size** | + | pct resize <id> rootfs 32G |
| - | < | + | </ |
| - | **Set disk size** | + | |
| - | < | + | **Images** |
| - | **List local images** | + | < |
| - | < | + | pveam available |
| - | **List available images** | + | pveam download local image.tar.gz |
| - | < | + | pveam list local |
| - | **Download image** | + | </ |
| - | <code>pveam download local image.tar.gz</ | + | |
| + | =====LXC Kernel Logs===== | ||
| + | < | ||
| + | apt install -y ulogd2 | ||
| + | |||
| + | cp /etc/ | ||
| + | cat<<EOF>/etc/ulogd.conf | ||
| + | [global] | ||
| + | logfile=" | ||
| + | loglevel=3 | ||
| + | stack=log1: | ||
| + | [log1] | ||
| + | group=1 | ||
| + | [iptables] | ||
| + | file="/ | ||
| + | sync=1 | ||
| + | EOF | ||
| + | |||
| + | systemctl restart ulogd | ||
| + | rm -rf / | ||
| + | </ | ||
| =====Memory Usage===== | =====Memory Usage===== | ||
| <code bash> | <code bash> | ||