Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Gentoo template creation

32 bytes added, 15:51, 8 December 2008
Making distfiles and portage tree of the host system available in a container
<pre>
mkdir /var/lib/vz/root/777/usr/portagemount -o bind /usr/portage /var/lib/vz/root/777/usr/portage
</pre>
<pre>
mount -n -o bind /usr/portage/distfiles /var/lib/vz/root/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 /var/lib/vz/root/777/usr/portage/distfiles</code> before trying to stop your container.}}
== Create the template cache file ==
10
edits