Enable fuse in LXC container

deadbird

New Member
Jan 9, 2016
10
0
1
38
Hi.

Is there a way to enable fuse mountpoints in Proxmox 4? My aim is to mount svfs disks in LXC containers.

Thanks ;)
 

fabian

Proxmox Staff Member
Staff member
Jan 7, 2016
4,860
789
163
If you absolutely have to, I would suggest establishing the FUSE mount on the Proxmox host and then using a bindmountpoint (e.g. "mp0: /path/on/host,mp=/path/in/container") to make it available in the container. If you establish the FUSE mounts inside the container, you will run into problems (lxc-freeze is not compatible with FUSE which means no snapshots and no suspend backup, you need to change all sorts of containment settings which lessens security, ..).
 

lifeboy

Active Member
Can you share a little more on how one achieves this please? I make a connection on the server using:
sshfs myuser@192.168.abc.def:/ /mnt/xxx-win01
(myuser is a valid user on the connected to server and the command succeeds)
The mountpoint is added like this:

mp0: /mnt/xxx-win01, mp=/mnt/server

This creates the mountpoint in the LXC machine, but the content cannot be listed.

:~$ ls -la /mnt/server
ls: cannot access /mnt/server: Permission denied

The mount is world readable though

Is there some trick that I'm missing here?
 

oguz

Proxmox Staff Member
Staff member
Nov 19, 2018
2,571
284
88
Can you share a little more on how one achieves this please? I make a connection on the server using:
sshfs myuser@192.168.abc.def:/ /mnt/xxx-win01
(myuser is a valid user on the connected to server and the command succeeds)
The mountpoint is added like this:

mp0: /mnt/xxx-win01, mp=/mnt/server

This creates the mountpoint in the LXC machine, but the content cannot be listed.

:~$ ls -la /mnt/server
ls: cannot access /mnt/server: Permission denied

The mount is world readable though

Is there some trick that I'm missing here?
can you post your container config?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!