[lxc-users] lxc-create not working behind proxy

Joris Michaux joris.michaux at france-pari.org
Thu Oct 9 13:30:44 UTC 2014


Hi,

Does your host "apt" work properly with your proxy ?

lxc-create use debootstrap and apt when retrieving system and packages, do
they work out of lxc-create ?

Joris

2014-10-09 15:21 GMT+02:00 sriram patil <spsrirampatil at gmail.com>:

> 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/...` <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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20141009/f673841c/attachment.html>


More information about the lxc-users mailing list