Jump to content
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
NickTheGreek

How to enable FUSE on OpenVZ VPS

Recommended Posts

enable-FUSE-900x600.jpg

 

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!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×