[lxc-users] lxc-users Digest, Vol 55, Issue 1

Thouraya TH thouraya87 at gmail.com
Mon Dec 29 15:43:51 UTC 2014


Installation JDK in the LXC container - Host behind       Proxy
Hello,
Resolved :) Thanks a lot. i can do :
sudo apt-get install openjdk-7-jre-headless
sudo apt-get update

inside the container :)

Thanks a lot.
Best Regards.


2014-12-29 13:00 GMT+01:00 <lxc-users-request at lists.linuxcontainers.org>:

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


More information about the lxc-users mailing list