官方一键安装脚本
1 |
curl -sSL https://get.docker.com/ | sh |
部署 portainer
1 |
docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock –name ui –restart=always /portainer:portainer |
官方一键安装脚本
1 |
curl -sSL https://get.docker.com/ | sh |
部署 portainer
1 |
docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock –name ui –restart=always /portainer:portainer |
update 0825
可以犧牲一點安全性的話,開啟巢狀可以解決
LXC->Option->Features->netsting [select]
1 2 3 |
systemctl mask systemd-logind pam-auth-update unselect "Register user sessions in the systemd control group hierarchy" |
1 |
Aug 25 08:18:27 Debian-11-vdi-61 dbus-daemon[113]: [system] Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
systemd-logind.service - User Login Management Loaded: loaded (/lib/systemd/system/systemd-logind.service; static) Active: failed (Result: exit-code) since Wed 2021-08-25 08:20:36 UTC; 42s a> Docs: man:sd-login(3) man:systemd-logind.service(8) man:logind.conf(5) man:org.freedesktop.login1(5) Process: 395 ExecStart=/lib/systemd/systemd-logind (code=exited, status=226/> Main PID: 395 (code=exited, status=226/NAMESPACE) CPU: 18ms Aug 25 08:20:36 Debian-11-vdi-61 systemd[1]: systemd-logind.service: Main proces> Aug 25 08:20:36 Debian-11-vdi-61 systemd[1]: systemd-logind.service: Failed with> Aug 25 08:20:36 Debian-11-vdi-61 systemd[1]: Failed to start User Login Manageme> Aug 25 08:20:36 Debian-11-vdi-61 systemd[1]: systemd-logind.service: Scheduled r> Aug 25 08:20:36 Debian-11-vdi-61 systemd[1]: Stopped User Login Management. Aug 25 08:20:36 Debian-11-vdi-61 systemd[1]: systemd-logind.service: Start reque> Aug 25 08:20:36 Debian-11-vdi-61 systemd[1]: systemd-logind.service: Failed with> Aug 25 08:20:36 Debian-11-vdi-61 systemd[1]: Failed to start User Login Manageme> root@Debian-11-vdi-61:/home/ryan# systemctl restart systemd-logind Job for systemd-logind.service failed because the control process exited with error code. See "systemctl status systemd-logind.service" and "journalctl -xe" for details. |
1 2 3 4 5 6 7 8 |
Aug 25 08:22:06 Debian-11-vdi-61 systemd[1]: Failed to start Load Kernel Module > ░░ Subject: A start job for unit modprobe@drm.service has failed ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ A start job for unit modprobe@drm.service has finished with a failure. ░░ ░░ The job identifier is 1607 and the job result is failed. |
在一個無預警的斷電後就杯具了
解決方案參考於 這裡
systemctl restart lxc.service
TASK ERROR: org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
解決方法:
1 2 3 4 5 6 7 |
#rm -rf /var/run/dbus/ 我本來就是空的.... 沒用到 dbus-daemon --system ll /var/run/dbus/ total 4 -rw-r--r-- 1 root root 6 Jun 16 01:08 pid srwxrwxrwx 1 root root 0 Jun 16 01:06 system_bus_socket |
成功! 請拍手
為了怕usb 太早掛點,修改了一堆目錄後
WebUI 全顯示問號,改回去也不行,可以先試以下三個指令
systemctl restart pvedaemon systemctl restart pveproxy systemctl restart pvestatd
當clone lxc 時出現:
依字面意思去檢查了zfs 的設定
pve> zfs get quota,refquota data/subvol–108-disk–0 NAME PROPERTY VALUE SOURCE data/subvol–116-disk–0 quota none default data/subvol–116-disk–0 refquota none default
看似沒有問題,卻依然無法成功
比對了跟可以正常clone 的lxc ,原來 refquota 不是none
難道是我英文不好… 依原始HD大小修改一下設定
pve> zfs set refquota=8G data/subvol–108-disk–0
就可以clone了[拍手]