CentOS 7: sshfs can't find fuse, even though fuse is loaded

Robin Hartmann asked:

When I try to run sshfs, I get the error fuse: device not found, try 'modprobe fuse' first. I already ran sudo modprobe fuse, but it just returns immediately without any output and the error persists:

[[email protected] main]# modprobe fuse
[[email protected] main]# sshfs user:[email protected] mnt
fuse: device not found, try 'modprobe fuse' first

I can also verify that fuse is loaded:

[[email protected] ~]$ lsmod | grep fuse
fuse                    4242  -2

This is on a VPS with freshly installed CentOS. The OS is up-to-date, as far as I can tell:

[[email protected] ~]$ cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core)

Running virt-what yields the following:

[[email protected] ~]$ virt-what

Any ideas on how I can resolve this?

My answer:

Eww, it’s OpenVZ. That’s why it doesn’t work. You can’t load modules (properly) on OpenVZ without the VPS provider doing it for you. These guys somehow managed to screw it up. Go find a nice KVM VPS.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.