[lxc-users] lxc-create not working behind proxy
sriram patil
spsrirampatil at gmail.com
Thu Oct 9 15:44:08 UTC 2014
Hi,
There was no problem with apt but, I had issue using debootstrap. Had to
set up the proxy settings in /etc/wgetrc. All fine now.
Thanks for the help. :)
On Thu, Oct 9, 2014 at 8:54 PM, Michael H. Warfield <mhw at wittsend.com>
wrote:
> Hey Tamas!
>
> On Thu, 2014-10-09 at 16:59 +0200, Tamas Papp wrote:
> > Try this one:
> > Export http_proxy="http://proxy:port/"
> > If debootstrap uses it, then it should work.
>
> > Also don't forget to apply apt settings in container.
>
> Not having tried this myself, that comment just suddenly raised a
> question in my mind. Does this create an chicken and egg situation? I
> know debootstrap will use it to try and build the container but does the
> template then make any attempts to use the apt settings in the container
> during the creation process before they can be tweaked? Seems like that
> could create a problem where we're chrooting into a container rootfs.
> I'm now wondering if the Fedora and CentOS templates I maintain could
> have a problem there. I may have to set up a proxy to test against,
> myself, for yum.
>
> Regards,
> Mike
>
> > On October 9, 2014 4:47:34 PM sriram patil <spsrirampatil at gmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > >
> > > I am using lxc-create on the latest version of Linux Mint. Following
> > > is the error message
> > >
> > >
> > >
> > > > sudo lxc-create -n ubuntu01 -t ubuntu
> > > Checking cache download in /var/cache/lxc/precise/rootfs-amd64 ...
> > > Installing packages in template: ssh,vim,language-pack-en
> > > Downloading ubuntu precise minimal ...
> > > I: Retrieving Release
> > > E: Failed getting release file
> > > http://archive.ubuntu.com/ubuntu/dists/precise/Release
> > > lxc_container: container creation template for ubuntu01 failed
> > > lxc_container: Error creating container ubuntu01
> > >
> > >
> > >
> > >
> > > I am working behind a proxy server. All my proxy settings are fine.
> > > I have aslo added the proxy details in `/etc/apt/apt.conf` using
> > > `Acquire::http:Proxy="<proxy and port>";` (+https and ftp). But, it
> > > did not work.
> > >
> > >
> > > I tried changing mirror in `/etc/default/lxc` file as well. Changing
> > > the MIRROR field to `http://host-ip:3142/...`. But no success.
> > >
> > >
> > > Where does lxc-create read the proxy settings from? Where should I
> > > do the configuration? Am I missing something here? Port number 22 is
> > > blocked by my proxy server. Does not affect?
> > >
> > >
> > > Thanks,
> > > Sriram
> > > _______________________________________________
> > > 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
>
> --
> Michael H. Warfield (AI4NB) | (770) 978-7061 | mhw at WittsEnd.com
> /\/\|=mhw=|\/\/ | (678) 463-0932 |
> http://www.wittsend.com/mhw/
> NIC whois: MHW9 | An optimist believes we live in the best of
> all
> PGP Key: 0x674627FF | possible worlds. A pessimist is sure of it!
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20141009/487f7b03/attachment.html>
More information about the lxc-users
mailing list