<?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=Wikihippy</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=Wikihippy"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/Special:Contributions/Wikihippy"/>
	<updated>2026-06-10T04:39:24Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=NX_inside_VE&amp;diff=10112</id>
		<title>NX inside VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=NX_inside_VE&amp;diff=10112"/>
		<updated>2011-04-09T10:23:59Z</updated>

		<summary type="html">&lt;p&gt;Wikihippy: /* Installation */ repository is dead&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You can run full graphical remote desktop inside container using [http://en.wikipedia.org/wiki/NX_technology NX technology]. This is handy for when you work from home and you wish to run a web browser on your work's internal network to access local resources. You can use NX client to connect to remote NX server.&lt;br /&gt;
&lt;br /&gt;
= Fedora =&lt;br /&gt;
&lt;br /&gt;
[[File:NX server on Fedora 12.png|thumb|300px|Connecting remotely with NX Client to Fedora inside OpenVZ container.]]&lt;br /&gt;
&lt;br /&gt;
* Use fedora template to create new container and install desktop of your choice:&lt;br /&gt;
&lt;br /&gt;
GNOME:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;yum groupinstall &amp;quot;GNOME Desktop Environment&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
KDE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;yum groupinstall &amp;quot;KDE (K Desktop Environment)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
XFce:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;yum groupinstall &amp;quot;XFCE&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* You may need to install additional package audiofile:&lt;br /&gt;
&amp;lt;pre&amp;gt;yum install audiofile&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Download installation RPM packages for server from site [http://www.nomachine.com/select-package.php?os=linux&amp;amp;id=1 www.nomachine.com]. Choose right architecture i386 or x86_64.&lt;br /&gt;
&lt;br /&gt;
Example: &lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://64.34.161.181/download/3.4.0/Linux/nxclient-3.4.0-5.i386.rpm&lt;br /&gt;
wget http://64.34.161.181/download/3.4.0/Linux/nxnode-3.4.0-6.i386.rpm&lt;br /&gt;
wget http://64.34.161.181/download/3.4.0/Linux/FE/nxserver-3.4.0-8.i386.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Do simple manual installation of RPM packages.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rpm -ivh nxclient-3.4.0-5.i386.rpm&lt;br /&gt;
rpm -ivh nxnode-3.4.0-6.i386.rpm&lt;br /&gt;
rpm -ivh nxserver-3.4.0-8.i386.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Done. You can now connect from NX client to your server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Ubuntu =&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Create a new container using the gutsy template. Edit /etc/apt/sources.list and enable the &amp;quot;multiverse&amp;quot; repository.&lt;br /&gt;
Install X and XDM&lt;br /&gt;
&amp;lt;pre&amp;gt;apt-get install xorg xdm&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then add this 3rd party repo to sources.list.  (Warning: the datakeylive.com repository below is obsolete!  No ubuntu repository offers freenx at the moment)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;deb &amp;lt;s&amp;gt;http://www.datakeylive.com/ubuntu&amp;lt;/s&amp;gt; gutsy main&amp;lt;br&amp;gt;&lt;br /&gt;
deb-src &amp;lt;s&amp;gt;http://www.datakeylive.com/ubuntu&amp;lt;/s&amp;gt; gutsy main&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
Install the repo keys and update:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
wget &amp;lt;s&amp;gt;http://www.datakeylive.com/ubuntu/dists/gutsy/wjeremy.key&amp;lt;/s&amp;gt; -O - | apt-key add -&amp;lt;br&amp;gt;&lt;br /&gt;
wget &amp;lt;s&amp;gt;http://www.datakeylive.com/ubuntu/dists/gutsy/alivesoftware.key&amp;lt;/s&amp;gt; -O - | apt-key add -&amp;lt;br&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
Install FreeNX (*)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get install expect openssh-server tcl8.4 libxcomp2 libxcompext2 libxcompshad nxlibs nxagent nxproxy nxclient freenx openssl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For Ubuntu 8.04 :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get install expect openssh-server tcl8.4 libxcomp3 libxcompext3 libxcompshad nxlibs nxagent nxproxy nxclient freenx-server openssl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally install XFCE&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get install xfce4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
=== Configuring X ===&lt;br /&gt;
In /etc/X11/xdm/xdm-config, comment out the line where it says '''DisplayManager.requestPort: 0'''&lt;br /&gt;
&lt;br /&gt;
In /etc/X11/xdm/Xservers, comment out the line ''':0 local /usr/bin/X :0 vt7''' (this starts a local X server, which will fail)&lt;br /&gt;
&lt;br /&gt;
In /etc/X11/xdm/Xaccess, uncomment the line with '''* #any host can get a login window''' (Please keep in mind the security implications by the above line. Read the comments found in the file and set it appropriately)&lt;br /&gt;
&lt;br /&gt;
=== Configure NX Server ===&lt;br /&gt;
&lt;br /&gt;
Edit /etc/X11/xorg.conf. Ensure that the files section looks similar to this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;Files&amp;quot;&lt;br /&gt;
&lt;br /&gt;
        # path to defoma fonts&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/misc&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/100dpi/:unscaled&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/75dpi/:unscaled&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/Type1&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/100dpi&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/75dpi&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now create a local user account:&lt;br /&gt;
&amp;lt;pre&amp;gt;useradd -m &amp;lt;username&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now add this user to nxserver:&lt;br /&gt;
&amp;lt;pre&amp;gt;nxserver --adduser &amp;lt;username&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure NX client ===&lt;br /&gt;
&lt;br /&gt;
Setup the Host/Port. &lt;br /&gt;
In the desktop section select Unix and Custom. In Settings, select &amp;quot;Run the default X client script on server&amp;quot; and select &amp;quot;New virtual Desktop&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Now try to connect. You should get the XFCE desktop.&lt;br /&gt;
&lt;br /&gt;
Thanks to dantalizing for the feedback.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
(*)&lt;br /&gt;
If you get any errors like:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dpkg: error processing /var/cache/apt/archives/libxcomp3_3.1.0-6-2_i386.deb (--unpack):&lt;br /&gt;
trying to overwrite `/usr/lib/libXcomp.so.3.1.0', which is also in package libxcomp2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
while installing the libxcomp package, just force-install the libxcomp package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cd /var/cache/apt/archives&lt;br /&gt;
# dpkg --force-all -i libxcomp3_3.1.0-6-2_i386.deb&lt;br /&gt;
# apt-get -f install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You '''can't print from VE''' to client PC easily because printing in NX is realized via samba-mount of shared client's printer and CIFS isn't virtualized yet.&lt;br /&gt;
&lt;br /&gt;
[[Category: HOWTO]]&lt;br /&gt;
[[Category: X]]&lt;/div&gt;</summary>
		<author><name>Wikihippy</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=NX_inside_VE&amp;diff=10111</id>
		<title>NX inside VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=NX_inside_VE&amp;diff=10111"/>
		<updated>2011-04-09T10:13:00Z</updated>

		<summary type="html">&lt;p&gt;Wikihippy: /* Installation */ repository is dead&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You can run full graphical remote desktop inside container using [http://en.wikipedia.org/wiki/NX_technology NX technology]. This is handy for when you work from home and you wish to run a web browser on your work's internal network to access local resources. You can use NX client to connect to remote NX server.&lt;br /&gt;
&lt;br /&gt;
= Fedora =&lt;br /&gt;
&lt;br /&gt;
[[File:NX server on Fedora 12.png|thumb|300px|Connecting remotely with NX Client to Fedora inside OpenVZ container.]]&lt;br /&gt;
&lt;br /&gt;
* Use fedora template to create new container and install desktop of your choice:&lt;br /&gt;
&lt;br /&gt;
GNOME:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;yum groupinstall &amp;quot;GNOME Desktop Environment&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
KDE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;yum groupinstall &amp;quot;KDE (K Desktop Environment)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
XFce:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;yum groupinstall &amp;quot;XFCE&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* You may need to install additional package audiofile:&lt;br /&gt;
&amp;lt;pre&amp;gt;yum install audiofile&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Download installation RPM packages for server from site [http://www.nomachine.com/select-package.php?os=linux&amp;amp;id=1 www.nomachine.com]. Choose right architecture i386 or x86_64.&lt;br /&gt;
&lt;br /&gt;
Example: &lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://64.34.161.181/download/3.4.0/Linux/nxclient-3.4.0-5.i386.rpm&lt;br /&gt;
wget http://64.34.161.181/download/3.4.0/Linux/nxnode-3.4.0-6.i386.rpm&lt;br /&gt;
wget http://64.34.161.181/download/3.4.0/Linux/FE/nxserver-3.4.0-8.i386.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Do simple manual installation of RPM packages.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rpm -ivh nxclient-3.4.0-5.i386.rpm&lt;br /&gt;
rpm -ivh nxnode-3.4.0-6.i386.rpm&lt;br /&gt;
rpm -ivh nxserver-3.4.0-8.i386.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Done. You can now connect from NX client to your server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Ubuntu =&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Create a new container using the gutsy template. Edit /etc/apt/sources.list and enable the &amp;quot;multiverse&amp;quot; repository.&lt;br /&gt;
Install X and XDM&lt;br /&gt;
&amp;lt;pre&amp;gt;apt-get install xorg xdm&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then add this 3rd party repo to sources.list.  (Warning: the datakeylive.com repository below is obsolete!  No ubuntu repository offers freenx at the moment)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
deb http://www.datakeylive.com/ubuntu gutsy main&lt;br /&gt;
deb-src http://www.datakeylive.com/ubuntu gutsy main&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Install the repo keys and update:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://www.datakeylive.com/ubuntu/dists/gutsy/wjeremy.key -O - | apt-key add -&lt;br /&gt;
wget http://www.datakeylive.com/ubuntu/dists/gutsy/alivesoftware.key -O - | apt-key add -&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Install FreeNX (*)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get install expect openssh-server tcl8.4 libxcomp2 libxcompext2 libxcompshad nxlibs nxagent nxproxy nxclient freenx openssl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For Ubuntu 8.04 :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get install expect openssh-server tcl8.4 libxcomp3 libxcompext3 libxcompshad nxlibs nxagent nxproxy nxclient freenx-server openssl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally install XFCE&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get install xfce4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
=== Configuring X ===&lt;br /&gt;
In /etc/X11/xdm/xdm-config, comment out the line where it says '''DisplayManager.requestPort: 0'''&lt;br /&gt;
&lt;br /&gt;
In /etc/X11/xdm/Xservers, comment out the line ''':0 local /usr/bin/X :0 vt7''' (this starts a local X server, which will fail)&lt;br /&gt;
&lt;br /&gt;
In /etc/X11/xdm/Xaccess, uncomment the line with '''* #any host can get a login window''' (Please keep in mind the security implications by the above line. Read the comments found in the file and set it appropriately)&lt;br /&gt;
&lt;br /&gt;
=== Configure NX Server ===&lt;br /&gt;
&lt;br /&gt;
Edit /etc/X11/xorg.conf. Ensure that the files section looks similar to this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;Files&amp;quot;&lt;br /&gt;
&lt;br /&gt;
        # path to defoma fonts&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/misc&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/100dpi/:unscaled&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/75dpi/:unscaled&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/Type1&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/100dpi&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/75dpi&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now create a local user account:&lt;br /&gt;
&amp;lt;pre&amp;gt;useradd -m &amp;lt;username&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now add this user to nxserver:&lt;br /&gt;
&amp;lt;pre&amp;gt;nxserver --adduser &amp;lt;username&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure NX client ===&lt;br /&gt;
&lt;br /&gt;
Setup the Host/Port. &lt;br /&gt;
In the desktop section select Unix and Custom. In Settings, select &amp;quot;Run the default X client script on server&amp;quot; and select &amp;quot;New virtual Desktop&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Now try to connect. You should get the XFCE desktop.&lt;br /&gt;
&lt;br /&gt;
Thanks to dantalizing for the feedback.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
(*)&lt;br /&gt;
If you get any errors like:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dpkg: error processing /var/cache/apt/archives/libxcomp3_3.1.0-6-2_i386.deb (--unpack):&lt;br /&gt;
trying to overwrite `/usr/lib/libXcomp.so.3.1.0', which is also in package libxcomp2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
while installing the libxcomp package, just force-install the libxcomp package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cd /var/cache/apt/archives&lt;br /&gt;
# dpkg --force-all -i libxcomp3_3.1.0-6-2_i386.deb&lt;br /&gt;
# apt-get -f install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You '''can't print from VE''' to client PC easily because printing in NX is realized via samba-mount of shared client's printer and CIFS isn't virtualized yet.&lt;br /&gt;
&lt;br /&gt;
[[Category: HOWTO]]&lt;br /&gt;
[[Category: X]]&lt;/div&gt;</summary>
		<author><name>Wikihippy</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=FUSE&amp;diff=10110</id>
		<title>FUSE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=FUSE&amp;diff=10110"/>
		<updated>2011-04-09T09:54:42Z</updated>

		<summary type="html">&lt;p&gt;Wikihippy: /* Debian 5.0 (lenny) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page describes how to setup FUSE (filesystem in userspace) inside a container.&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;
* Debian/Ubuntu: You can alternatively add the line &amp;quot;modprobe&amp;quot; into /etc/modules , and apply immediately with the command &amp;quot;modprobe --first-time fuse&amp;quot;&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;
===== Debian 5.0 (lenny) =====&lt;br /&gt;
FUSE cannot be installed due to udev/hotplug dependency (explained in [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503953 bug report 503953])&lt;br /&gt;
&lt;br /&gt;
===== Ubuntu, Debian 4.0 (etch) and older =====&lt;br /&gt;
 # apt-get install sshfs&lt;br /&gt;
&lt;br /&gt;
(Debian 4.0 note: see [[Installing udev in VE based on Debian-4.0]])&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 container 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;
=== Container 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 container 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 container.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# vzctl enter 100&lt;br /&gt;
# sshfs &amp;lt;nowiki&amp;gt;root@foo.org&amp;lt;/nowiki&amp;gt;:/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 mountpoint&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 container 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>Wikihippy</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=FUSE&amp;diff=10109</id>
		<title>FUSE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=FUSE&amp;diff=10109"/>
		<updated>2011-04-09T09:48:13Z</updated>

		<summary type="html">&lt;p&gt;Wikihippy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page describes how to setup FUSE (filesystem in userspace) inside a container.&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;
* Debian/Ubuntu: You can alternatively add the line &amp;quot;modprobe&amp;quot; into /etc/modules , and apply immediately with the command &amp;quot;modprobe --first-time fuse&amp;quot;&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;
===== Debian 5.0 (lenny) =====&lt;br /&gt;
FUSE cannot be installed due to udev dependency (explained in [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503953 bug report 503953])&lt;br /&gt;
&lt;br /&gt;
===== Ubuntu, Debian 4.0 (etch) and older =====&lt;br /&gt;
 # apt-get install sshfs&lt;br /&gt;
&lt;br /&gt;
(Debian 4.0 note: see [[Installing udev in VE based on Debian-4.0]])&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 container 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;
=== Container 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 container 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 container.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# vzctl enter 100&lt;br /&gt;
# sshfs &amp;lt;nowiki&amp;gt;root@foo.org&amp;lt;/nowiki&amp;gt;:/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 mountpoint&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 container 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>Wikihippy</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=FUSE&amp;diff=10108</id>
		<title>FUSE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=FUSE&amp;diff=10108"/>
		<updated>2011-04-09T09:46:40Z</updated>

		<summary type="html">&lt;p&gt;Wikihippy: Elaborate on Debian&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page describes how to setup FUSE (filesystem in userspace) inside a container.&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;
* Debian/Ubuntu: You can alternatively add the line &amp;quot;modprobe&amp;quot; into /etc/modules , and apply immediately with the command &amp;quot;modprobe --first-time fuse&amp;quot;&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;
===== Debian 5.0 (lenny) =====&lt;br /&gt;
FUSE cannot be installed due to udev dependency (explained in [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503953 bug report 503953])&lt;br /&gt;
===== Debian 4.0 (etch) =====&lt;br /&gt;
Follow the procedure for older versions (below), and see [[Installing udev in VE based on Debian-4.0]]&lt;br /&gt;
===== Ubuntu, Debian 4.0 and older =====&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 container 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;
=== Container 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 container 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 container.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# vzctl enter 100&lt;br /&gt;
# sshfs &amp;lt;nowiki&amp;gt;root@foo.org&amp;lt;/nowiki&amp;gt;:/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 mountpoint&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 container 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>Wikihippy</name></author>
		
	</entry>
</feed>