This post explains how to enable FUSE on OpenVZ container. FUSE (Filesystem in Userspace) allows the non-privileged users create their own file systems without editing kernel code. It is available for Unix and Linux but is not enabled by default in OpenVZ.
Enable FUSE module on Hardware Node:First of all, you need to enable FUSE on Hardware Node. This can be done using the following command:
modprobe fuse
Verify the module is loaded properly:
lsmod | grep fuse
Sample Output:
[[email protected] ~]# lsmod | grep fuse fuse 99604 12 [[email protected] ~]#Enable FUSE on the container:
Once you enabled FUSE on Hardware node, you need to enable it on the VPS. You can do this by any of the following methods:
Method 1
vzctl set VEID --devices c:10:229:rw --save vzctl exec VEID mknod /dev/fuse c 10 229
Method 2
vzctl set VEID --devnodes fuse:rw --save
Please make sure that to replace VEID with your Virtual Server ID. This will create a character device named /dev/fuse and will grant container permissions to it.
That’s it!