HTTP ProXY configuration

italian01

Member
Feb 23, 2012
57
0
6
Italy
Hello to all readers.

I need help about HTTP ProXY configuration. I found the text-box "HTTP proxy" on web-interface at Home\Datacenter\Options tab, but I don't know how I have to set it, given that my hypervisor ProXmoX is behind a Squid Proxy user/password protected.

I know that exist a variable named "http_proxy" in Linux Enviroment, and that it has to be set "http://user: pass@proxy" in case as mine. Is it the same in ProXmoX Web Interface?

Regards.

HTML:
root@proxmox:/etc# pveversion --v

pve-manager: 2.0-38 (pve-manager/2.0/af81df02)
running kernel: 2.6.32-7-pve
proxmox-ve-2.6.32: 2.0-60
pve-kernel-2.6.32-7-pve: 2.6.32-60
lvm2: 2.02.88-2pve1
clvm: 2.02.88-2pve1
corosync-pve: 1.4.1-1
openais-pve: 1.1.4-2
libqb: 0.10.1-2
redhat-cluster-pve: 3.1.8-3
resource-agents-pve: 3.9.2-3
fence-agents-pve: 3.1.7-1
pve-cluster: 1.0-23
qemu-server: 2.0-25
pve-firmware: 1.0-15
libpve-common-perl: 1.0-17
libpve-access-control: 1.0-17
libpve-storage-perl: 2.0-12
vncterm: 1.0-2
vzctl: 3.0.30-2pve1
vzprocps: 2.0.11-2
vzquota: 3.0.12-3
pve-qemu-kvm: 1.0-5
ksm-control-daemon: 1.1-1
 
And how can I test it?

For instance, I tried to open a ssh console and I issued "wget" command, but it didn't work. So, I checked env variables and I noticed that there was not any "http_proxy" variable setted.

Have I made a bad test or is there an issue?

Regards.
 
And how can I test it?

For instance, I tried to open a ssh console and I issued "wget" command, but it didn't work. So, I checked env variables and I noticed that there was not any "http_proxy" variable setted.

Have I made a bad test or is there an issue?

Regards.
Hi,
download an template should test the proxy-connection.

Udo
 
GUI -> Appliance Templates -> Download -> select red arrow on Debian 6.0 (standard) - or anyone else -> Download

I'm so sorry, but I've ProXmoX v. 2.0-38 and I didn't find "Appliance Templates" on the Web Interface... :(

Regards.
 
And why you don't post in Proxmox-VE-2-0-beta??

Datacenter -> node -> local -- on the right side --> content -> template (select and download)

Udo

Ok, thank you so much. Anyway, this is my "attempt downloading" log


HTML:
starting template download from: http://download.proxmox.com/appliances/www/debian-5.0-joomla_1.5.15-1_i386.tar.gz
target file: /var/lib/vz/template/cache/debian-5.0-joomla_1.5.15-1_i386.tar.gz
--2012-03-28 12:13:00--  http://download.proxmox.com/appliances/www/debian-5.0-joomla_1.5.15-1_i386.tar.gz
Resolving proxy... 192.168.3.5, 192.168.2.14
Connecting to proxy|192.168.3.5|:3128... failed: Connection refused.
Connecting to proxy|192.168.2.14|:3128... connected.
Proxy request sent, awaiting response... 404 Not Found
2012-03-28 12:13:00 ERROR 404: Not Found.


TASK ERROR: download failed - Bad file descriptor

Regards.
 
Ok, thank you so much. Anyway, this is my "attempt downloading" log


HTML:
starting template download from: http://download.proxmox.com/appliances/www/debian-5.0-joomla_1.5.15-1_i386.tar.gz
target file: /var/lib/vz/template/cache/debian-5.0-joomla_1.5.15-1_i386.tar.gz
--2012-03-28 12:13:00--  http://download.proxmox.com/appliances/www/debian-5.0-joomla_1.5.15-1_i386.tar.gz
Resolving proxy... 192.168.3.5, 192.168.2.14
Connecting to proxy|192.168.3.5|:3128... failed: Connection refused.
Connecting to proxy|192.168.2.14|:3128... connected.
Proxy request sent, awaiting response... 404 Not Found
2012-03-28 12:13:00 ERROR 404: Not Found.


TASK ERROR: download failed - Bad file descriptor

Regards.
Hi,
perhaps the template list ist not uptodate?

Work for me with this proxy-config:
Code:
http://proxyuser:password@proxy-ng.xxxx.com:3128
Output
Code:
starting template download from: http://download.proxmox.com/appliances/www/debian-5.0-acquia_1.2.21-1_i386.tar.gz
target file: /var/lib/vz/template/cache/debian-5.0-acquia_1.2.21-1_i386.tar.gz
--2012-03-28 12:25:42-- http://download.proxmox.com/appliances/www/debian-5.0-acquia_1.2.21-1_i386.tar.gz
Resolving proxy-ng.xxxx.com... 172.20.xx.xx
Connecting to proxy-ng.xxxx.com|172.20.xx.xx|:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 214687402 (205M) [application/x-gzip]
Saving to: `/var/lib/vz/template/cache/debian-5.0-acquia_1.2.21-1_i386.tar.gz.tmp.89710'

0K ........ ........ ........ ........ ........ ........ 1% 472K 7m18s
3072K ........ ........ ........ ........ ........ ........ 2% 480K 7m8s
6144K ........ ........ ........ ........ ........ ........ 4% 867K 5m58s
9216K ........ ........ ........ ........ ........ ........ 5% 953K 5m16s
12288K ........ ........ ........ ........ ........ ........ 7% 889K 4m53s
15360K ........ ........ ........ ........ ........ ........ 8% 809K 4m39s
...
Udo
 
# pveam update

I tried, but proxy even is a problem here.

HTML:
root@proxmox:/etc# export | grep -i pro
declare -x http_proxy="http://user:pass@proxy:tcpp"

root@proxmox:/etc# pveam update
update failed - see /var/log/pveam.log for details

root@proxmox:/etc# cat /var/log/pveam.log | tail -20

[GNUPG:] IMPORT_OK 0 9ABD7E02AD243AD3C2FBBCCCB0C1CC225CAC72FE
[GNUPG:] IMPORT_RES 1 0 0 0 1 0 0 0 0 0 0 0 0 0
[GNUPG:] IMPORT_OK 0 694CFF26795A29BAE07B4EB585C25E95A16EB94D
[GNUPG:] IMPORT_RES 1 0 0 0 1 0 0 0 0 0 0 0 0 0
Mar 28 13:33:06 start download http://download.proxmox.com/appliances/aplinfo.dat.asc
Mar 28 13:33:06 download failed: 500 Can't connect to proxy:3128 (connect: Connection refused)
Mar 28 13:33:06 update failed - no signature file '/var/lib/pve-manager/apl-info/pveam-download.proxmox.com.tmp.416502.asc'
Mar 28 13:33:06 start download http://releases.turnkeylinux.org/pve/aplinfo.dat.asc
Mar 28 13:33:06 download finished: 200 OK
Mar 28 13:33:06 start download http://releases.turnkeylinux.org/pve/aplinfo.dat.gz
Mar 28 13:33:06 download failed: 500 Can't connect to proxy:3128 (connect: Connection refused)
Mar 28 13:33:06 update failed - no data file 'http://releases.turnkeylinux.org/pve/aplinfo.dat.gz'

Regards.
 
I tried, but proxy even is a problem here.

HTML:
root@proxmox:/etc# export | grep -i pro
declare -x http_proxy="http://user:pass@proxy:tcpp"

root@proxmox:/etc# pveam update
update failed - see /var/log/pveam.log for details

root@proxmox:/etc# cat /var/log/pveam.log | tail -20

[GNUPG:] IMPORT_OK 0 9ABD7E02AD243AD3C2FBBCCCB0C1CC225CAC72FE
[GNUPG:] IMPORT_RES 1 0 0 0 1 0 0 0 0 0 0 0 0 0
[GNUPG:] IMPORT_OK 0 694CFF26795A29BAE07B4EB585C25E95A16EB94D
[GNUPG:] IMPORT_RES 1 0 0 0 1 0 0 0 0 0 0 0 0 0
Mar 28 13:33:06 start download http://download.proxmox.com/appliances/aplinfo.dat.asc
Mar 28 13:33:06 download failed: 500 Can't connect to proxy:3128 (connect: Connection refused)
Mar 28 13:33:06 update failed - no signature file '/var/lib/pve-manager/apl-info/pveam-download.proxmox.com.tmp.416502.asc'
Mar 28 13:33:06 start download http://releases.turnkeylinux.org/pve/aplinfo.dat.asc
Mar 28 13:33:06 download finished: 200 OK
Mar 28 13:33:06 start download http://releases.turnkeylinux.org/pve/aplinfo.dat.gz
Mar 28 13:33:06 download failed: 500 Can't connect to proxy:3128 (connect: Connection refused)
Mar 28 13:33:06 update failed - no data file 'http://releases.turnkeylinux.org/pve/aplinfo.dat.gz'

Regards.
Hi,
there must be something wrong with your proxy-settings?! For me pveam work also with proxy:
Code:
Mar 28 12:44:04 src@proxy-ng squid[518]: 1332931444.725    126 172.20.xx.xx TCP_MISS/200 582 GET http://download.proxmox.com/appliances/aplinfo.dat.asc proxyuser DIRECT/188.165.151.222 text/plain
Mar 28 12:44:05 src@proxy-ng squid[518]: 1332931445.024     49 172.20.xx.xx TCP_MISS/200 3403 GET http://download.proxmox.com/appliances/aplinfo.dat.gz proxyuser DIRECT/188.165.151.222 application/x-gzip
Mar 28 12:44:05 src@proxy-ng squid[518]: 1332931445.964    627 172.20.xx.xx TCP_MISS/200 855 GET http://releases.turnkeylinux.org/pve/aplinfo.dat.asc proxyuser DIRECT/97.107.134.22 text/plain
Mar 28 12:44:06 src@proxy-ng squid[518]: 1332931446.088    122 172.20.xx.xx TCP_MISS/200 3216 GET http://releases.turnkeylinux.org/pve/aplinfo.dat.gz proxyuser DIRECT/97.107.134.22 text/plain
Udo

EDIT: without http_proxy-variable because pveam reads the pve-config.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!