I am new to LXC. I tried to create ubuntu container using the command
lxc-create -n onos -t ubuntu
The installation ran for some time and got stuck with below message
Installing Update
Connecting to archive.ubuntu.com
I am behind corporate proxy. Apt-get update works fine in host. But when I try to create a ubuntu container I am having the above issue.
Did anyone faced similar issue. Please help.
You should use proxy before lxc-create:
Also you can setup the proxy for apt:
PS:
bug lxc-create doesn't take advantage of the apt proxy
Here: lxc-create not working behind proxy a solution was: