📜  在 lxc 中安装 sshfs - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:17.735000             🧑  作者: Mango

代码示例1
1. stop the LXC container
lxc-stop -kn {container_name}


2. add these lines at LXC container config file 
--default location at:
/var/lib/lxc/{container_name}/config

#tun
lxc.cgroup.devices.allow = c 10:200 rwm
#ppp
lxc.cgroup.devices.allow = c 108:0 rwm
#fuse
lxc.cgroup.devices.allow = c 10:229 rwm
#loop0
lxc.cgroup.devices.allow = b 7:0 rwm


3. execute this inside LXC container

apt install -fy sshfs fuse3; \
update-rc.d -f udev disable; systemctl stop udev; \
systemctl disable udev; \
mknod /dev/fuse c 10 229