Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Gentoo template creation

11 bytes added, 10:03, 9 October 2010
Making distfiles and portage tree of the host system available in a container
<pre>
mkdir /vz/rootprivate/777/usr/portagemount -o bind /usr/portage /vz/rootprivate/777/usr/portage
</pre>
<pre>
mount -n -o bind /usr/portage/distfiles /vz/rootprivate/777/usr/portage/distfiles
</pre>
For security reasons, you should have these directories mounted only while installing software into a container.
{{Note|you have to <code>umount /vz/rootprivate/777/usr/portage/distfiles</code> before trying to stop your container.}} 
== Dedicated installation of portage ==
Anonymous user