SERVER MANAGEMENT

How to enable FUSE on OpenVZ VPS

Enable FUSE on OpenVZ VPS
Enable FUSE on OpenVZ

Enable FUSE on OpenVZ VPS

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:

[root@server ~]# lsmod | grep fuse
fuse 99604 12
[root@server ~]#
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!

Read More:

If you like this post and wish to receive more articles from us, please like our FB page: Button

Your suggestions and feedbacks will encourage us and help to improve further, please feel free to write your comments.

For more details on our services, please drop us an E-mail at info@grepitout.com