Bernard Savonet
asked on
How can I share files between an OpenVZ container and its hosts?
I am running OpenVZ containers on a Proxmox/ Debian host.
There are some files (eg, /etc/resolv.conf) I'd like the container to use directly from the host.
So, is there some smart way to have /etc/resolv.conf on the container linked to /etc/resolv.conf on the host?
File /etc/resolv.conf on container 100 is also visible on the host as /var/lib/vz/private/100/et c/resolv.c onf and /var/lib/vz/root/100/etc/r esolv.conf (BTW, is there a difference?)
There are some files (eg, /etc/resolv.conf) I'd like the container to use directly from the host.
So, is there some smart way to have /etc/resolv.conf on the container linked to /etc/resolv.conf on the host?
File /etc/resolv.conf on container 100 is also visible on the host as /var/lib/vz/private/100/et
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Excellent and fast answer, although not completely matchjng my question
ASKER
Not exactly what I am looking for though: I want to link to a given file, not a complete directory.