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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×