Details
-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Fix Version/s: Vz7.0-Update5
-
Component/s: Containers::Userspace
-
Security Level: Public
-
Environment:OpenVZ release 7.0.6
rpm -qa prlctl vzctl
prlctl-7.0.142-1.vz7.x86_64
vzctl-7.0.173-1.vz7.x86_64
Description
Hello!
In OpenVZ 6 we can copy nameservers sfrom host system with /etc/vz/vz.conf
param NAMESERVER with inherit.
In OpenVZ 7 it not work with inherit -
grep NAMESERVER /etc/vz/vz.conf
NAMESERVER="rns1.example.org rns2.example.org"
prlctl restart 111
Restarting the CT...
The CT has been successfully restarted.
prlctl exec 111 cat /etc/resolv.conf
search localhost
nameserver rns1.example.org
nameserver rns2.example.org
(param work, but search looks like incorrect - it not set in config)
With inherit - we see, that this param ignore - and used as name nameserver -
grep NAMESERVER /etc/vz/vz.conf
NAMESERVER="inherit"
prlctl restart 111
Restarting the CT...
The CT has been successfully restarted.
prlctl exec 111 cat /etc/resolv.conf
search localhost
nameserver inherit
In both - in config container not set nameservers and search domain.
And I not see nameserver and search params for vz.conf in documentation -
https://docs.openvz.org/openvz_users_guide.webhelp/_configuring_network_settings.html
https://docs.virtuozzo.com/virtuozzo_7_users_guide/managing-virtual-machines-and-containers/performing-initial-configuration-of-virtual-machines-and-containers.html?highlight=nameserver#configuring-network-settings
Please see to https://bugs.openvz.org/browse/OVZ-6191 too.
In OpenVZ 6 we can copy nameservers sfrom host system with /etc/vz/vz.conf
param NAMESERVER with inherit.
In OpenVZ 7 it not work with inherit -
grep NAMESERVER /etc/vz/vz.conf
NAMESERVER="rns1.example.org rns2.example.org"
prlctl restart 111
Restarting the CT...
The CT has been successfully restarted.
prlctl exec 111 cat /etc/resolv.conf
search localhost
nameserver rns1.example.org
nameserver rns2.example.org
(param work, but search looks like incorrect - it not set in config)
With inherit - we see, that this param ignore - and used as name nameserver -
grep NAMESERVER /etc/vz/vz.conf
NAMESERVER="inherit"
prlctl restart 111
Restarting the CT...
The CT has been successfully restarted.
prlctl exec 111 cat /etc/resolv.conf
search localhost
nameserver inherit
In both - in config container not set nameservers and search domain.
And I not see nameserver and search params for vz.conf in documentation -
https://docs.openvz.org/openvz_users_guide.webhelp/_configuring_network_settings.html
https://docs.virtuozzo.com/virtuozzo_7_users_guide/managing-virtual-machines-and-containers/performing-initial-configuration-of-virtual-machines-and-containers.html?highlight=nameserver#configuring-network-settings
Please see to https://bugs.openvz.org/browse/OVZ-6191 too.