Software Defined Networking
1827439 Members
6566 Online
109965 Solutions
New Discussion

Install SDK 2.3.5 on Virtualbox VM with proxy

 
SOLVED
Go to solution
Dave-B
Frequent Advisor

Install SDK 2.3.5 on Virtualbox VM with proxy

I'm trying to build a dev enviroment in a Virtualbox VM, using Ubuntu 12.04

$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 12.04.4 LTS
Release:    12.04
Codename:    precise

 

I've installed the HP VAN 2.3.5 controller, JDK 1.6 and maven 3.0.4

$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 12.04.4 LTS
Release:    12.04
Codename:    precise

 

Based on a number of on-line tutorilas, I have set my proxy info in settings, and in /etc/apt/apt.conf.d/80proxy.

$ sudo pico /etc/apt/apt.conf.d/80proxy
Acquire::http::proxy "http://myproxy.xxx.co.uk:8080/";
Acquire::ftp::proxy "ftp:// http://myproxy.xxx.co.uk:8080/";
Acquire::https::proxy "https://http://myproxy.xxx.co.uk:8080/";

 

I also copied the setting.xml to ~.m2/ and edited the proxy settings

    <proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
      <username>proxyuser</username>
      <password>proxypass</password>
      <host>http://myproxy.xxx.co.uk</host>
      <port>8080</port>
      <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
    </proxy>

 

Also

$ chown -R username.username /home/username/.m2/
$ chmod -R 0777 /home/username/.m2/

 

However when I run the install-sdk command from the HP SDK folder it times out.

~/hp-sdn-sdk-2.3.5$ bin/install-sdk
[INFO] Scanning for projects...
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.3/maven-clean-plugin-2.3.pom
31-Oct-2014 11:43:00 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection timed out
31-Oct-2014 11:43:00 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request

 

$ mvn -X
Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.6.0_30, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-openjdk-amd64/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "3.11.0-18-generic", arch: "amd64", family: "unix"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
[DEBUG] Reading user settings from /home/username/.m2/settings.xml
[DEBUG] Using local repository at /home/username/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for /home/username/.m2/repository

 

I also setup socksify using dante-client, this made no difference.

~/hp-sdn-sdk-2.3.5$ socksify bin/install-sdk

 

If I use wget, e.g.

$ wget http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom

 

The proxy is resolved and downloads the .pom file.

 

Does anyone know the fix for this problem?

 

Thanks in advance. Dave.

 

 

2 REPLIES 2
Gerhard Roets
Esteemed Contributor
Solution

Re: Install SDK 2.3.5 on Virtualbox VM with proxy

Hi Dave

 

Two items

1. You are using Java 1.6 and should use 1.7

2. Here is my settings.xml and I know it works you should be able to adept it;)

<settings>
  <proxies>
   <proxy>
      <active>true</active>
      <protocol>http</protocol>
      <host>web-proxy.company.com</host>
      <port>8888</port>
    </proxy>
  </proxies>
</settings>

 

On a side note your wait might for the duration fix might be over in the near future.

 

Kind Regards

Gerhard

HP SDN Team

Dave-B
Frequent Advisor

Re: Install SDK 2.3.5 on Virtualbox VM with proxy

Gerhard,

 

Thansk for the reply.

 

The problem was extreme stupidity on my part.

 

I had edited the proxy host name in .m2/settings.xml, but I had not uncommented the sectionat the start and end of the proxy settings.

 

e.g.

https://developer.atlassian.com/display/DOCS/Explore+the+Installed+SDK+and+the+atlas+Commands

 

My only excuse is that I don't use xml very often.

 

Thanks,

 

Dave.