<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Blindmatrix</id>
	<title>OpenVZ Virtuozzo Containers Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Blindmatrix"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/Special:Contributions/Blindmatrix"/>
	<updated>2026-05-15T18:26:43Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=FUSE&amp;diff=4051</id>
		<title>FUSE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=FUSE&amp;diff=4051"/>
		<updated>2008-01-24T16:43:23Z</updated>

		<summary type="html">&lt;p&gt;Blindmatrix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page describes how to setup FUSE (filesystem in userspace) inside a VE.&lt;br /&gt;
&lt;br /&gt;
[http://git.openvz.org/?p=linux-2.6.18-openvz;a=blob;h=a584f05403a412e778cf359e84d3690d5a22d1e4;hb=045f4a5fcb8c2625fe7505a8d9d4ebffd7e0d905;f=Documentation/filesystems/fuse.txt FUSE] is a filesystem in which data and metadata are provided by an ordinary userspace process. The filesystem can be accessed normally through the kernel interface.&lt;br /&gt;
&lt;br /&gt;
== Preparations ==&lt;br /&gt;
To use FUSE you need the following:&lt;br /&gt;
# OpenVZ kernel version [http://git.openvz.org/?p=linux-2.6.18-openvz;a=commit;h=045f4a5fcb8c2625fe7505a8d9d4ebffd7e0d905 028test005] or higher&lt;br /&gt;
# [http://mesh.dl.sourceforge.net/sourceforge/fuse/fuse-2.6.0.tar.gz Fuse lib]&lt;br /&gt;
# Any FUSE-based [http://fuse.sourceforge.net/wiki/index.php/FileSystems filesystem]&lt;br /&gt;
&lt;br /&gt;
In the examples below [http://fuse.sourceforge.net/sshfs.html sshfs] is used.&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
=== Kernel ===&lt;br /&gt;
Download appropriate kernel from [http://download.openvz.org/ openvz.org] or compile kernel with &amp;lt;code&amp;gt;CONFIG_FUSE_FS&amp;lt;/code&amp;gt; option set&lt;br /&gt;
&lt;br /&gt;
=== Userspace ===&lt;br /&gt;
&lt;br /&gt;
You have to fuse libraries and some fuse filesystem modules (here we use sshfs as an example).&lt;br /&gt;
&lt;br /&gt;
The best way to have it installed is to use the packages from your distro vendor. An alternative is compiling the stuff from source.&lt;br /&gt;
&lt;br /&gt;
==== Gentoo ====&lt;br /&gt;
&lt;br /&gt;
 # emerge sys-fs/sshfs-fuse&lt;br /&gt;
&lt;br /&gt;
==== Fedora ====&lt;br /&gt;
&lt;br /&gt;
 # yum install fuse-sshfs&lt;br /&gt;
&lt;br /&gt;
==== Debian/Ubuntu ====&lt;br /&gt;
&lt;br /&gt;
 # apt-get install sshfs&lt;br /&gt;
&lt;br /&gt;
==== Compiling from source ====&lt;br /&gt;
If there are no packages provided for you distribution, you have to compile from source.&lt;br /&gt;
&lt;br /&gt;
First, compile libfuse in a VE without kernel module&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# vzctl enter 100&lt;br /&gt;
# tar xzf fuse-2.6.0.tar.gz&lt;br /&gt;
# cd fuse-2.6.0&lt;br /&gt;
# ./configure --disable-kernel-module&lt;br /&gt;
...&lt;br /&gt;
# make&lt;br /&gt;
...&lt;br /&gt;
# make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{note|Sometimes &amp;lt;code&amp;gt;libfuse.so.X&amp;lt;/code&amp;gt; is unseen by your programs. Usually this file is installed in &amp;lt;code&amp;gt;/usr/local/lib&amp;lt;/code&amp;gt; directory so don't forget to add this directory into your &amp;lt;code&amp;gt;/etc/ld.so.conf&amp;lt;/code&amp;gt; and then run &amp;lt;code&amp;gt;ldconfig&amp;lt;/code&amp;gt;.}}&lt;br /&gt;
&lt;br /&gt;
Next, download and compile filesystem.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# vzctl enter 100&lt;br /&gt;
# tar xzf sshfs-fuse-1.7.tar.gz&lt;br /&gt;
# cd sshfs-fuse-1.7&lt;br /&gt;
# ./configure&lt;br /&gt;
...&lt;br /&gt;
# make&lt;br /&gt;
...&lt;br /&gt;
# make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VE tuning ===&lt;br /&gt;
You need to make a character device named &amp;lt;code&amp;gt;/dev/fuse&amp;lt;/code&amp;gt; and grant your VE permissions to it&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# vzctl set 100 --devices c:10:229:rw --save&lt;br /&gt;
...&lt;br /&gt;
# vzctl exec 100 mknod /dev/fuse c 10 229&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mounting filesystem ===&lt;br /&gt;
After this you may try to mount FUSE in a VE&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# vzctl enter 100&lt;br /&gt;
# sshfs root@foo.org:/root /mnt/foo.org.root&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Unmounting filesystem ====&lt;br /&gt;
In case of &amp;lt;code&amp;gt;sshfs&amp;lt;/code&amp;gt; after umounting an appropriate daemon must be killed. This may be done by the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# fusermount -u moutpoint&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using fusectl filesystem ==&lt;br /&gt;
Fusectl is a helper filesystem for FUSE. You may mount it in a VE as well&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# vzctl enter 100&lt;br /&gt;
# mount -t fusectl none /fuse_ctl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
&lt;br /&gt;
* [http://fuse.sourceforge.net/ FUSE site]&lt;br /&gt;
&lt;br /&gt;
[[Category:HOWTO]]&lt;/div&gt;</summary>
		<author><name>Blindmatrix</name></author>
		
	</entry>
</feed>