Jump to content

- - - - -

Enable FUSE on OpenVZ VPS (s3fs)

s3fs s3fs mybucket mountpoint -o

  • Please log in to reply
No replies to this topic

#1 Pirate Tony

Pirate Tony

    Advanced Member

  • Members
  • PipPipPip
  • 291 posts

Posted 30 December 2020 - 10:25 AM

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:

[[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!



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users