Hi, I created an LXC domain via libvirt (on Fedora 20), but when I'm trying to mount a FUSE filesystem, like sshfs, I'm getting a following error: $ sshfs 172.30.15.2:/<mntdir> /<mntpoint> fuse: device not found, try 'modprobe fuse' first I see that there's no /dev/fuse device. Is there a way to make it work? Can I get it working via libvirt domain xml file settings or should I use something else, for example, edit cgroups settings directly somehow? Thanks in advance! -- -- Regards, Eldar Yusupov.
On 12/19/2013 05:16 AM, Eldar Yusupov wrote:> Hi, > > I created an LXC domain via libvirt (on Fedora 20), but when I'm trying to mount a FUSE filesystem, like sshfs, I'm getting a following error: > > $ sshfs 172.30.15.2:/<mntdir> /<mntpoint> > fuse: device not found, try 'modprobe fuse' first > > I see that there's no /dev/fuse device. Is there a way to make it work? Can I get it working via libvirt domain xml file settings or should I use something else, for example, edit cgroups settings > directly somehow?Try to add below configuration to your xml file. <devices> ..... <hostdev mode='capabilities' type='misc'> <source> <char>/dev/fuse</char> </source> </hostdev> ..... </devices>
Thanks, worked nicely! On Thu, Dec 19, 2013 at 5:02 AM, Gao feng <gaofeng@cn.fujitsu.com> wrote:> On 12/19/2013 05:16 AM, Eldar Yusupov wrote: > > Hi, > > > > I created an LXC domain via libvirt (on Fedora 20), but when I'm trying > to mount a FUSE filesystem, like sshfs, I'm getting a following error: > > > > $ sshfs 172.30.15.2:/<mntdir> /<mntpoint> > > fuse: device not found, try 'modprobe fuse' first > > > > I see that there's no /dev/fuse device. Is there a way to make it work? > Can I get it working via libvirt domain xml file settings or should I use > something else, for example, edit cgroups settings > > directly somehow? > > Try to add below configuration to your xml file. > > <devices> > ..... > <hostdev mode='capabilities' type='misc'> > <source> > <char>/dev/fuse</char> > </source> > </hostdev> > ..... > </devices> >-- -- Regards, Eldar Yusupov.
Reasonably Related Threads
- fuse in libivrt-lxc
- sshfs -o rellinks (module option) rejected by fuse
- cannot get fuse-ssh to operate from a batch script - but does from cmd line
- [PATCH 1/2] LXC: hostdev: introduce lxcContainerSetupHostdevCapsMakePath
- [PATCH 2/2] LXC: hostdev: parent directroy for hostdev atomically