Linux containers are lightweight virtualization (no virtualization, only compartmentalization). I was trying to bring plain containers using lxc, not using other frameworks like docker, or many others.
There is a blog entry from canonical developer, here. But when I tried it was giving some problems. So I had to solve some issues.
First we need to create a Ubuntu 14.04 server/desktop VM, for server un-install juju(which may give some port binding issues).
Follow instructions given in the link.
This is the directory where nova LXC driver will store configuration and lxc images.
Now we should install devstack and ncflex (which is the nova LXC driver)
after this localrc(from devstack directory) will look like
Then we should edit the localrc to contain this
my lan is 192.168.1.xx/24, in that one section is assigned to lxc which will get spawned so FLOATING_RANGE=192.168.1.96/27
Then we need some hacks to bring up the lxc.
we need to have
in devstack/lib/nova. This is required because we are bringing up all the stuff in single VM. nova scheduler filters are there to choose the best host for spawning the lxc. For our case there is only one VM, so take all hosts. For more info see here.
neutron host not reachable.
Comment out this line in /etc/neutron/neutron.conf and restart it. see here.
Then add a python binary /usr/bin/lxc-usernet-manage
This python script is executed by rootwrap of openstack.
From here it is normal process of spawning VM.
When I spawned lxc was coming up, but I was unable to login with key pairs.
Subscribe via RSS