Answers for "install sshfs inside lxc"

0

install sshfs inside lxc

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 sshfs fuse3; \
update-rc.d -f udev disable; systemctl stop udev; \
systemctl disable udev; \
mknod /dev/fuse c 10 229
Posted by: Guest on October-16-2021

Code answers related to "install sshfs inside lxc"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language