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
- Re: fuse in libivrt-lxc
- [PATCH] ocfs2: Fix wrong search logic in __ocfs2_resv_find_window
- Re: libivrt issue report , 1.1.0 version, while migrate VMs between two hosts, is it solved or other way to avoid it, thanks
- [libivrt-users] What features of kernel are required to support virDomainGetCPUStats?
- [libivrt-user]problem when using qemu 2.0.0 + libvirt 1.2.6