[kaanalnet-discuss] Re: What does it mean that KaanalNet uses the Linux Containers (LXC)

  • From: brian mullan <bmullan.mail@xxxxxxxxx>
  • To: kaanalnet-discuss@xxxxxxxxxxxxx
  • Date: Wed, 23 Sep 2015 13:53:31 -0400

surresh...

Sorry I haven't had time yet. my wife is the head of a non-profit that
helps poor children learn to read and they have a major fund raiser
tomorrow nite.

As usual I was asked to donate my time to put together the powerpoint
slides, the projector etc <g>

I'll try sometime next week.

I did though send info about KaanalNet to a researcher at UC Berkley and to
a friend of mine at Canonical that is working on SDN.

They both seemed interested and planned on taking a look also. The wiki
will help alot of people get started as it fills in with info over time.


Brian

On Wed, Sep 23, 2015 at 1:03 PM, suresh kumar <dmarc-noreply@xxxxxxxxxxxxx>
wrote:

Hi Brian,

Did you have chance to test with some topology?

Thanks
suresh


On Thursday, 17 September 2015 5:40 PM, brian mullan <
bmullan.mail@xxxxxxxxx> wrote:


hat missing pkg in the template seems to have been the problem as it now
installs without error...

Thanks

FYI... I'm trying to get some visibility for your project on the LXC
sub-reddit:


https://www.reddit.com/r/LXC/comments/3l77xg/kaanalnet_network_emulator_for_traditional_sdn/

The LXC sub-reddit is fairly new so not alot of traffic/awareness yet but
it will grow in numbers.

Brian



On Wed, Sep 16, 2015 at 9:40 PM, suresh kumar <dmarc-noreply@xxxxxxxxxxxxx
wrote:

Hi Brian,

I acknowledge the issue. The issue was "tcpdump" optional package
installation failed in the lxc template, that was the reason.
I just fixed and updated the kaanalnet package(version - 0.1.0).

Now installation works without error. I just tried, and attached the logs
for your reference.

you need to install the kaanalnet again.
https://github.com/sureshkvl/kaanalnet/wiki/Troubleshooting



Thanks
suresh.




On Thursday, 17 September 2015 6:18 AM, suresh kumar <sureshkvl@xxxxxxxxx>
wrote:


Hi Brian,

1. Are you running the installation as Root User?
2. Also can you paste the output of "lxc-ls --fancy" command.

Thanks
suresh



On Thursday, 17 September 2015 4:22 AM, brian mullan <
bmullan.mail@xxxxxxxxx> wrote:


Suresh
Ok... I've tried this now on 3 machines. All are ubuntu 14.04 servers
and I followed the instructions
I used the instructions found here:
https://github.com/sureshkvl/kaanalnet/wiki/Installation
On all three the install errors out (see partial text below)
Extracting templates from packages: 100%
Current default time zone: 'Etc/UTC'
Local time is now: Wed Sep 16 21:54:47 UTC 2015.
Universal Time is now: Wed Sep 16 21:54:47 UTC 2015.
Run 'dpkg-reconfigure tzdata' if you wish to change it.
invoke-rc.d: policy-rc.d denied execution of stop.
invoke-rc.d: policy-rc.d denied execution of stop.
invoke-rc.d: policy-rc.d denied execution of start.
invoke-rc.d: policy-rc.d denied execution of restart.
invoke-rc.d: policy-rc.d denied execution of start.
invoke-rc.d: policy-rc.d denied execution of restart.
invoke-rc.d: policy-rc.d denied execution of restart.
initctl: Unknown job: ssh
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
Creating SSH2 ED25519 key; this may take some time ...
update-rc.d: warning: default stop runlevel arguments (0 1 6) do not match
ssh Default-Stop values (none)
invoke-rc.d: policy-rc.d denied execution of start.
Extracting templates from packages: 100%
invoke-rc.d: policy-rc.d denied execution of start.
mktemp: failed to create file via template
‘/home/bmullan/node_modules/kaanalnet/tmp.XXXXXXXXXX’: No such file or
directory
dpkg: error processing package tcpdump (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
tcpdump
E: Sub-process /usr/bin/dpkg returned an error code (1)
lxc_container: lxccontainer.c: create_run_template: 1125 container
creation template for nodeimg failed
lxc_container: lxc_create.c: main: 271 Error creating container nodeimg
InstallLXCBaseContainer completed - result false
= = = = = = = =
any clues what I might look at to get this to install okay?
thanks
Brian

Hi Brian,
I dont have immediate plan. But definitely i will bring in, once all the
planned features are completed,
Also i do have plan to bring Docker as well.

Please raise the questions, i am happy to answer.

Thanks
suresh




On Wednesday, 16 September 2015 11:26 PM, brian mullan <
bmullan.mail@xxxxxxxxx> wrote:


Suresh

Are there any plans to take advantage of LXD
<https://github.com/lxc/lxd/blob/master/specs/rest-api.md> in KaanalNet
in the future also?
Unprivileged & Privilieged LXC container use ?

Sorry for all the questions.

Brian


On Wed, Sep 16, 2015 at 1:10 PM, suresh kumar <dmarc-noreply@xxxxxxxxxxxxx
wrote:

Hi Brian,

Yes. I agree with you. Thats the main reason to develop this.
KaanalNet also supports the traditional networking topology with self
configured router(Quagga stack runs).

I am started revamping the Wiki Page with more SDN use cases ,
traditional network topology use cases, mixed networks etc.

Please keep a eye on this.
https://github.com/sureshkvl/kaanalnet/wiki
kaanalnet.org

The only limitation is ,
KaanalNet supports only UBUNTU 14.04 + OS.. (Note: I havent tested on
other Linux variants, it may or may not work).

thanks
suresh



On Wednesday, 16 September 2015 10:33 PM, brian mullan <
bmullan.mail@xxxxxxxxx> wrote:


Suresh

That will be awesome thanks.

Besides myself I'd seen a lot of people request full LXC containers in
mininet over the past couple years. Not being
a programmer there wasn't much I could do until someone who is a coder
added the full LXC capability though.

It would have been great for that to happen and then be able to utilize
that with Maxinet <https://github.com/MaxiNet/MaxiNet>, ODL etc

I'll get KaanalNet installed and start playing with it to see what all is
different from mininet.

brian


On Wed, Sep 16, 2015 at 12:57 PM, suresh kumar <
dmarc-noreply@xxxxxxxxxxxxx> wrote:

Hi Brian,

Mininet uses the network namespaces. KaanalNet uses the LXC.
Yes, kaanalNet utilizes the lxc-create,start,stop,clone etc to create a
nodes.
When you create a topology, the node is created a UBUNTU LXC container,
which can be accessible via SSH.

Yes. you can install any application as you want.

Thanks
suresh.



On Wednesday, 16 September 2015 5:51 PM, brian mullan <
bmullan.mail@xxxxxxxxx> wrote:


On the KaanalNet wiki page it says:
*KaanalNet uses the Linux Containers (LXC), openvswitch, linux bridge and
ping,iperf(traffic utilities). KaanalNet is tested with OpenDayLight and
POX SDN controller.*
I'm just trying to clarify what "*uses the Linux Containers (LXC)*"
means. Mininet uses the LXC terminology also but does NOT use the
linuxcontainers.org
API for LXC <https://linuxcontainers.org/lxc/introduction/>.

Mininet uses only a "lightweight" linux container and not an LXC container
where you have a full OS running in the LXC container & sharing the kernel
of the host machine.

It would be great if KaanalNet really used the lxc-create, lxc-start,
lxc-stop, lxc-clone etc command set/API so it would be possible to install
an actual application into the KaanalNet network host/nodes.

Thanks for any clarification.

Brian

















Other related posts: