<div dir="ltr"><div><div>Installation JDK in the LXC container - Host behind Proxy<br>Hello, <br><span id="result_box" class="" lang="en"><span class="">Resolved</span></span> :) Thanks a lot. i can do :<br>sudo apt-get install openjdk-7-jre-headless<br></div><div>sudo apt-get update <br><br></div><div>inside the container :)<br></div><div><br></div>Thanks a lot.<br></div>Best Regards.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-29 13:00 GMT+01:00 <span dir="ltr"><<a href="mailto:lxc-users-request@lists.linuxcontainers.org" target="_blank">lxc-users-request@lists.linuxcontainers.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send lxc-users mailing list submissions to<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:lxc-users-request@lists.linuxcontainers.org">lxc-users-request@lists.linuxcontainers.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:lxc-users-owner@lists.linuxcontainers.org">lxc-users-owner@lists.linuxcontainers.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of lxc-users digest..."<br>
<br>Today's Topics:<br>
<br>
1. Re: lxc-users Digest, Vol 54, Issue 9 (Thouraya TH)<br>
2. Re: lxc-users Digest, Vol 54, Issue 9 (BB)<br>
3. Installation JDK in the LXC container - Host behind Proxy<br>
(Thouraya TH)<br>
4. Re: Installation JDK in the LXC container - Host behind Proxy (BB)<br>
<br><br>---------- Message transféré ----------<br>From: Thouraya TH <<a href="mailto:thouraya87@gmail.com">thouraya87@gmail.com</a>><br>To: LXC users mailing-list <<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>><br>Cc: <br>Date: Sun, 28 Dec 2014 14:59:47 +0100<br>Subject: Re: [lxc-users] lxc-users Digest, Vol 54, Issue 9<br><div dir="ltr"><div><div>Hello, <br></div>Thanks a lot for answer :)<br></div>i'm testing this:<br><br>2) or you enable "LXC_DHCP_CONFILE=/etc/lxc/<div>dnsmasq.conf" in /etc/default/lxc-net and then assign IP addresses to hostnames statically in /etc/lxc/dnsmasq.conf<br><br></div><div>So, i have modified /etc/default/lxc-net<br></div><div>a- <br>LXC_BRIDGE="lxcbr0"<br>LXC_ADDR="10.0.3.1"<br>LXC_NETMASK="255.255.255.0"<br>LXC_NETWORK="<a href="http://10.0.3.0/24" target="_blank">10.0.3.0/24</a>"<br>LXC_DHCP_RANGE="10.0.3.2,10.0.3.254"<br>LXC_DHCP_MAX="253"<br><b>LXC_DHCP_CONFILE="/etc/lxc/dnsmasq.conf"</b><br><br></div><div>b- i can't find this file /etc/lxc/dnsmasq.conf<br></div><div>i have only these files:<br>:/etc/lxc# ls<br>default.conf lxc-usernet<br><br>?<br><br></div><div>Bests. <br></div></div>
<br><br>---------- Message transféré ----------<br>From: BB <<a href="mailto:eeg5auquaephoo5j@gmail.com">eeg5auquaephoo5j@gmail.com</a>><br>To: LXC users mailing-list <<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>><br>Cc: <br>Date: Sun, 28 Dec 2014 16:35:16 +0100<br>Subject: Re: [lxc-users] lxc-users Digest, Vol 54, Issue 9<br><div dir="ltr">Just create the file. Further information is available here:<div><a href="http://askubuntu.com/questions/446831/how-to-let-built-in-dhcp-assign-a-static-ip-to-lxc-container-based-on-name-not" target="_blank">http://askubuntu.com/questions/446831/how-to-let-built-in-dhcp-assign-a-static-ip-to-lxc-container-based-on-name-not</a><br><div><br><div><br></div><div>Regards,</div><div><br></div><div>BB</div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 28, 2014 at 2:59 PM, Thouraya TH <span dir="ltr"><<a href="mailto:thouraya87@gmail.com" target="_blank">thouraya87@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hello, <br></div>Thanks a lot for answer :)<br></div>i'm testing this:<br><br>2) or you enable "LXC_DHCP_CONFILE=/etc/lxc/<div>dnsmasq.conf" in /etc/default/lxc-net and then assign IP addresses to hostnames statically in /etc/lxc/dnsmasq.conf<br><br></div><div>So, i have modified /etc/default/lxc-net<br></div><div>a- <br>LXC_BRIDGE="lxcbr0"<br>LXC_ADDR="10.0.3.1"<br>LXC_NETMASK="255.255.255.0"<br>LXC_NETWORK="<a href="http://10.0.3.0/24" target="_blank">10.0.3.0/24</a>"<br>LXC_DHCP_RANGE="10.0.3.2,10.0.3.254"<br>LXC_DHCP_MAX="253"<br><b>LXC_DHCP_CONFILE="/etc/lxc/dnsmasq.conf"</b><br><br></div><div>b- i can't find this file /etc/lxc/dnsmasq.conf<br></div><div>i have only these files:<br>:/etc/lxc# ls<br>default.conf lxc-usernet<br><br>?<br><br></div><div>Bests. <br></div></div>
<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div>
<br><br>---------- Message transféré ----------<br>From: Thouraya TH <<a href="mailto:thouraya87@gmail.com">thouraya87@gmail.com</a>><br>To: LXC users mailing-list <<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>><br>Cc: <br>Date: Sun, 28 Dec 2014 16:44:33 +0100<br>Subject: [lxc-users] Installation JDK in the LXC container - Host behind Proxy<br><div dir="ltr">Hello,<br><br>The host on which i work is a remote machine behind a proxy.<br>I have installed the jdk like that and it works well: (I access the remote machine via ssh)<br><br> http_proxy=<a href="http://proxy:3128" target="_blank">http://proxy:3128</a> && https_proxy=<a href="http://proxy:3128" target="_blank">http://proxy:3128</a><br> sudo apt-get install openjdk-7-jre-headless<br> :~# java<br> Usage: java [-options] class [args...]<br> (to execute a class)<br> or java [-options] -jar jarfile [args...]<br> (to execute a jar file)<br> where options include:<br> -d32 use a 32-bit data model if available<br> -d64 use a 64-bit data model if available<br> -server to select the "server" VM<br> <br>I'd like to install the JDK inside the container. I proceeded as follows: <br><br> ubuntu@worker:~$ http_proxy=<a href="http://proxy:3128" target="_blank">http://proxy:3128</a> && <br> https_proxy=<a href="http://proxy:3128" target="_blank">http://proxy:3128</a><br> ubuntu@worker:~$ sudo apt-get install openjdk-7-jre-headless<br> Reading package lists... Done<br> Building dependency tree <br> Reading state information... Done<br> The following extra packages will be installed:<br> ca-certificates ca-certificates-java fontconfig-config fonts-<br> dejavu-core<br> java-common libasyncns0 libavahi-client3 libavahi-common-data<br> libavahi-common3 libcups2 libflac8 libfontconfig1 libfreetype6 <br> libglib2.0-0<br> libglib2.0-data libjpeg-turbo8 libjpeg8 liblcms2-2 libnspr4 <br> libnss3<br> libnss3-nssdb libogg0 libpcsclite1 libpulse0 libsndfile1 <br> libvorbis0a<br> libvorbisenc2 libxau6 libxcb1 libxdmcp6 libxml2 openssl sgml-base<br> shared-mime-info tzdata-java xml-core<br> ............................<br> Err <a href="http://archive.ubuntu.com/ubuntu/" target="_blank">http://archive.ubuntu.com/ubuntu/</a> trusty/main java-common all <br> 0.51<br> Cannot initiate the connection to <a href="http://archive.ubuntu.com:80" target="_blank">archive.ubuntu.com:80</a> <br> (2001:67c:13......). - connect (101: Network is unreachable) <br> [IP: 2001:67c:13....... 80]<br><br><br><br>Have you an idea please ?<br><br>Thanks a lot.<br>Best Regards. <br></div>
<br><br>---------- Message transféré ----------<br>From: BB <<a href="mailto:eeg5auquaephoo5j@gmail.com">eeg5auquaephoo5j@gmail.com</a>><br>To: LXC users mailing-list <<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>><br>Cc: <br>Date: Sun, 28 Dec 2014 19:06:10 +0100<br>Subject: Re: [lxc-users] Installation JDK in the LXC container - Host behind Proxy<br><div dir="ltr">Hi,<div><br></div><div>this is really not an LXC specific question but I will try to give you some hints...</div><div><br></div><div>1) Test if you can actually resolve the proxy's name to an IP address from inside the container</div><div>2) Optionally test if you can reach the proxy on the specified port by using telnet, netcat, or some other "simple" tool</div><div>3) You must use export if you are not calling apt-get in the same line:</div><div> export http_proxy=<a href="http://proxy:3128" target="_blank">http://proxy:3128</a></div><div> export https_proxy=<a href="https://proxy:3128" target="_blank">https://proxy:3128</a></div><div>4) You probably want to make the proxy setting persistent by adding the following to /etc/apt/apt.conf.d/00proxy:</div> Acquire::http::Proxy "http://yourproxyaddress:proxyport";<div>5) For more information have a look here if you are using Ubuntu: </div><div> <a href="https://help.ubuntu.com/community/AptGet/Howto#Setting_up_apt-get_to_use_a_http-proxy" target="_blank">https://help.ubuntu.com/community/AptGet/Howto#Setting_up_apt-get_to_use_a_http-proxy</a></div><div><br></div><div>Kind regards,</div><div><br></div><div>BB</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 28, 2014 at 4:44 PM, Thouraya TH <span dir="ltr"><<a href="mailto:thouraya87@gmail.com" target="_blank">thouraya87@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<br><br>The host on which i work is a remote machine behind a proxy.<br>I have installed the jdk like that and it works well: (I access the remote machine via ssh)<br><br> http_proxy=<a href="http://proxy:3128" target="_blank">http://proxy:3128</a> && https_proxy=<a href="http://proxy:3128" target="_blank">http://proxy:3128</a><br> sudo apt-get install openjdk-7-jre-headless<br> :~# java<br> Usage: java [-options] class [args...]<br> (to execute a class)<br> or java [-options] -jar jarfile [args...]<br> (to execute a jar file)<br> where options include:<br> -d32 use a 32-bit data model if available<br> -d64 use a 64-bit data model if available<br> -server to select the "server" VM<br> <br>I'd like to install the JDK inside the container. I proceeded as follows: <br><br> ubuntu@worker:~$ http_proxy=<a href="http://proxy:3128" target="_blank">http://proxy:3128</a> && <br> https_proxy=<a href="http://proxy:3128" target="_blank">http://proxy:3128</a><br> ubuntu@worker:~$ sudo apt-get install openjdk-7-jre-headless<br> Reading package lists... Done<br> Building dependency tree <br> Reading state information... Done<br> The following extra packages will be installed:<br> ca-certificates ca-certificates-java fontconfig-config fonts-<br> dejavu-core<br> java-common libasyncns0 libavahi-client3 libavahi-common-data<br> libavahi-common3 libcups2 libflac8 libfontconfig1 libfreetype6 <br> libglib2.0-0<br> libglib2.0-data libjpeg-turbo8 libjpeg8 liblcms2-2 libnspr4 <br> libnss3<br> libnss3-nssdb libogg0 libpcsclite1 libpulse0 libsndfile1 <br> libvorbis0a<br> libvorbisenc2 libxau6 libxcb1 libxdmcp6 libxml2 openssl sgml-base<br> shared-mime-info tzdata-java xml-core<br> ............................<br> Err <a href="http://archive.ubuntu.com/ubuntu/" target="_blank">http://archive.ubuntu.com/ubuntu/</a> trusty/main java-common all <br> 0.51<br> Cannot initiate the connection to <a href="http://archive.ubuntu.com:80" target="_blank">archive.ubuntu.com:80</a> <br> (2001:67c:13......). - connect (101: Network is unreachable) <br> [IP: 2001:67c:13....... 80]<br><br><br><br>Have you an idea please ?<br><br>Thanks a lot.<br>Best Regards. <br></div>
<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div>
<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div>