Editing FUSE
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | This page describes how to setup FUSE (filesystem in userspace) inside a | + | This page describes how to setup FUSE (filesystem in userspace) inside a VE. |
[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. | [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. | ||
Line 13: | Line 13: | ||
== Setup == | == Setup == | ||
=== Kernel === | === Kernel === | ||
− | + | Download appropriate kernel from [http://download.openvz.org/ openvz.org] or compile kernel with <code>CONFIG_FUSE_FS</code> option set | |
− | |||
=== Userspace === | === Userspace === | ||
Line 31: | Line 30: | ||
==== Debian/Ubuntu ==== | ==== Debian/Ubuntu ==== | ||
− | |||
− | |||
− | + | * FIXME | |
− | |||
− | |||
− | |||
==== Compiling from source ==== | ==== Compiling from source ==== | ||
If there are no packages provided for you distribution, you have to compile from source. | If there are no packages provided for you distribution, you have to compile from source. | ||
− | First, compile libfuse in a | + | First, compile libfuse in a VE without kernel module |
<pre> | <pre> | ||
# vzctl enter 100 | # vzctl enter 100 | ||
Line 68: | Line 62: | ||
</pre> | </pre> | ||
− | === | + | === VE tuning === |
− | You need to make a character device named <code>/dev/fuse</code> and grant your | + | You need to make a character device named <code>/dev/fuse</code> and grant your VE permissions to it |
<pre> | <pre> | ||
# vzctl set 100 --devices c:10:229:rw --save | # vzctl set 100 --devices c:10:229:rw --save | ||
Line 76: | Line 70: | ||
... | ... | ||
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== Mounting filesystem === | === Mounting filesystem === | ||
− | After this you may try to mount FUSE in a | + | After this you may try to mount FUSE in a VE |
<pre> | <pre> | ||
# vzctl enter 100 | # vzctl enter 100 | ||
− | # sshfs | + | # sshfs root@foo.org:/root /mnt/foo.org.root |
</pre> | </pre> | ||
Line 95: | Line 81: | ||
In case of <code>sshfs</code> after umounting an appropriate daemon must be killed. This may be done by the following command: | In case of <code>sshfs</code> after umounting an appropriate daemon must be killed. This may be done by the following command: | ||
<pre> | <pre> | ||
− | # fusermount -u | + | # fusermount -u moutpoint |
</pre> | </pre> | ||
== Using fusectl filesystem == | == Using fusectl filesystem == | ||
− | Fusectl is a helper filesystem for FUSE. You may mount it in a | + | Fusectl is a helper filesystem for FUSE. You may mount it in a VE as well |
<pre> | <pre> | ||
# vzctl enter 100 | # vzctl enter 100 |