Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

FUSE

679 bytes added, 16:28, 10 March 2022
Container tuning
== Setup ==
=== Kernel ===
* Download appropriate kernel from [http://download.openvz.org/ openvz.org] or compile kernel with <code>CONFIG_FUSE_FS</code> option set* Debian/Ubuntu: You can alternatively add the line <code>fuse</code> into /etc/modules, and apply immediately with the command: <pre>modprobe --first-time fuse</pre>
=== Userspace ===
==== Debian/Ubuntu ====
===== Debian 5.0 (lenny) =====
FUSE cannot be installed due to udev/hotplug dependency (explained in [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503953 bug report 503953])
===== Ubuntu, Debian 6.0 (squeeze), Debian 4.0 (etch) and older =====
# apt-get install sshfs
 
(Debian 4.0 note: see [[Installing udev in VE based on Debian-4.0]])
==== Compiling from source ====
...
</pre>
 
Or more simply:
<pre>
# vzctl set 103 --devnodes fuse:rw --save
...
</pre>
 
Note that restart (or moving to root container device cgroup before mounting) might be required.
=== Mounting filesystem ===
<pre>
# vzctl enter 100
# sshfs <nowiki>root@foo.org</nowiki>:/root /mnt/foo.org.root
</pre>
In case of <code>sshfs</code> after umounting an appropriate daemon must be killed. This may be done by the following command:
<pre>
# fusermount -u moutpointmountpoint
</pre>
Anonymous user