OpenVZ Forum


Home » General » Support » difference between /vz/private/ and /vz/root/ ? [Solved]
Re: difference between /vz/private/ and /vz/root/ ? [Solved] [message #23688 is a reply to message #23687] Thu, 22 November 2007 09:56 Go to previous messageGo to previous message
piavlo is currently offline  piavlo
Messages: 159
Registered: January 2007
Senior Member
If you want to share gentoo portage tree for you VEs with HN
then you can simply bind mount it
>cat /etc/vz/bin/mount-portage
#!/bin/bash

mount -n --bind /usr/portage /vz/root/${VEID}/usr/portage
exit ${?}
>chmod 700 /etc/vz/bin/mount-portage

now symlink the VE id you want to have portage in
>cd /etc/vz/conf
>ln -snf /etc/vz/bin/mount-portage 105.mount

Next time you start the VE it will auto bind mount /usr/portage from HN
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: I get OpenVZ now, but what about NFS support?
Next Topic: FTP login problem
Goto Forum:
  


Current Time: Mon Jul 21 06:30:34 GMT 2025

Total time taken to generate the page: 0.11214 seconds