OpenVZ 7 prlctl fails with proxies. [message #52713] |
Fri, 13 January 2017 14:54 |
Romulan01
Messages: 1 Registered: January 2017 Location: Germany
|
Junior Member |
|
|
Hello everyone,
I have installed yesterday OpenVZ 7 with the ISO in a new machine behind a firewall and configured a http_proxy in yum.conf and in the bash env variable.
I was able to install and update OpenVZ 7 and access all possible websites with curl/wget from the machine but I was not able to create a machine with prlctl using the follwing command:
# prlctl create ContCOS7 --vmtype ct --ostemplate centos-7-x86_64
The error was always the same, prctl was trying to fech some template information defined on a "base0-4" repo and not being able to reach http://vzdownload.swsoft.com/download/mirrors/centos-7
I thought all the time that the templates where already there:
# rpm -qa | grep ez
debian-8.0-x86_64-ez-7.0.0-5.vz7.noarch
centos-6-x86_64-ez-7.0.0-4.vz7.noarch
ubuntu-14.04-x86_64-ez-7.0.0-3.vz7.noarch
vzlinux-7-x86_64-ez-7.0.0-11.vz7.noarch
ubuntu-16.04-x86_64-ez-7.0.0-10.vz7.noarch
centos-7-x86_64-ez-7.0.0-19.vz7.noarch
After reading https://www.mail-archive.com/users@openvz.org/msg06005.html I realize that prlctl in fact was failing while fetching the container because it is ignoring the proxy information in the machine.
The only way to fetch a container behind a proxy seems to be using vzpkg:
# vzpkg create appcache --ostemplate centos-6-x86_64 --apptemplate devel
# prlctl create 100 --vmtype ct --ostemplate centos-7-x86_64
None of these is documented on the openvz_installation_guide.pdf or openvz_installation_guide.pdf and it seems to me a wrong behaviour.
All binaries involved in the installation and fetching from machines/templates should behave the same.
Regards,
Daniel
|
|
|