[lxc-users] LXC create behind the proxy server
Gandhi, Ibha (HP Software)
ibhag at hp.com
Thu Jan 9 17:30:06 UTC 2014
Thanks Serge. This problem got solved. It was environment setting problem in juju.
-----Original Message-----
From: lxc-users-bounces at lists.linuxcontainers.org [mailto:lxc-users-bounces at lists.linuxcontainers.org] On Behalf Of Serge Hallyn
Sent: Thursday, January 09, 2014 9:49 PM
To: LXC users mailing-list
Subject: Re: [lxc-users] LXC create behind the proxy server
Quoting Gandhi, Ibha (HP Software) (ibhag at hp.com):
> Hi,
>
> I am creating lxc container and have access to the internet through proxy.
>
> When I try to deploy the application using juju I get this error:
> agent-state-info: '(error: error executing "lxc-create": + ''['' amd64 == i686
> '']''; + ''['' amd64 ''!='' i386 -a amd64 ''!='' amd64 -a amd64 ''!='' armhf
> -a amd64 ''!='' armel '']''; + ''['' amd64 ''!='' i386 -a amd64 ''!='' amd64
> -a amd64 ''!='' armhf -a amd64 ''!='' armel '']''; + ''['' amd64 = amd64 -a
> amd64 ''!='' amd64 -a amd64 ''!='' i386 '']''; + ''['' amd64 = i386 -a amd64
> ''!='' i386 '']''; + ''['' amd64 = armhf -o amd64 = armel '']''; + ''['' released
> ''!='' daily -a released ''!='' released '']''; + ''['' -n /var/lib/juju/containers/root-local-machine-1/cloud-init
> '']''; + ''['' ''!'' -f /var/lib/juju/containers/root-local-machine-1/cloud-init
> '']''; ++ readlink -f /var/lib/juju/containers/root-local-machine-1/cloud-init;
> + userdata=/var/lib/juju/containers/root-local-machine-1/cloud-init; + ''[''
> -n '''' '']''; + ''['' -z /var/lib/lxc/root-local-machine-1 '']''; ++ id -u;
> + ''['' 0 ''!='' 0 '']''; + config=/var/lib/lxc/root-local-machine-1/config;
> + grep -q ''^lxc.rootfs'' /var/lib/lxc/root-local-machine-1/config; + rootfs=/var/lib/lxc/root-local-machine-1/rootfs;
> + type ubuntu-cloudimg-query; ubuntu-cloudimg-query is /usr/bin/ubuntu-cloudimg-query;
> + type wget; wget is /usr/bin/wget; + cache=/var/cache/lxc/cloud-precise; +
> mkdir -p /var/cache/lxc/cloud-precise; + ''['' -n '''' '']''; ++ ubuntu-cloudimg-query
> precise released amd64 --format ''%{url}\n''; failed to get https://cloud-images.ubuntu.com/query/precise/server/released-dl.current.txt;
> + url1=; failed to execute template ''ubuntu-cloud''; aborted)'
>
> I tried to directly wget from https://cloud-images.ubuntu.com/query/precise/server/released-dl.current.txt and was successful.
> Please let me know if I have missed some configuration.
Does 'sudo lxc-create -t ubuntu-cloud -n u1' succeed?
_______________________________________________
lxc-users mailing list
lxc-users at lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users
More information about the lxc-users
mailing list