Link to home
Start Free TrialLog in
Avatar of Bernard Savonet
Bernard SavonetFlag for France

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/etc/resolv.conf and /var/lib/vz/root/100/etc/resolv.conf (BTW, is there a difference?)
ASKER CERTIFIED SOLUTION
Avatar of compdigit44
compdigit44

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bernard Savonet

ASKER

Excellent page.
Not exactly what I am looking for though: I want to link to a given file, not a complete directory.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Excellent and fast answer, although not completely matchjng my question