Can the RouteFlow example be modified with addiitonal virtual machines?

265 views
Skip to first unread message

kishors

unread,
Aug 21, 2012, 5:37:12 AM8/21/12
to routeflo...@googlegroups.com
Hello,

I am new to this forum and this is my first post.

I have worked through the RouteFlow tutorial and have successfully run that in the test. But I have 2 questions as below.

1. Can I possibly add two additional VMs to it? 

2. If yes can you please tell me at what all places and what changes would be required to run the new task successfully ?

Eagerly awaiting for your kind reply

Thanks


Kishor
 

Allan Vidal

unread,
Aug 21, 2012, 1:46:15 PM8/21/12
to routeflo...@googlegroups.com
Hi Kishor,

You can create as many VMs as you need. The "create" script in rftest is what initializes the VMs to run the RF-Client.

This script reads the config sub directory in rftest, and for each directory inside it, creates a corresponding VM.
You can see several examples of the VMs created for rftest1 and rftest2 in there. I recommend that you start modifying one of the VMs (rfvmA-D will probably be the most useful if you want to use Quagga).

Each VM config folder has a config file with the interfaces, parameters for the Quagga daemon, network interfaces configuration and a few other standard configuration files.

You can check the following page:
In section 3 you'll see some explanations about the configuration scheme that used to be manual. The script automates these tasks, so you just have to change the files. You might also want to read the Quagga documentation in order to set it up properly if your setup differs too much from the one in rftest2.

After you add your VMs, if you're using the newest RouteFlow version, you'll also need to inform the new associations (vm_port to dp_port) in the configuration file used by the test scripts. You can see how to do that here: https://github.com/CPqD/RouteFlow#configuration


Allan

kishors

unread,
Aug 21, 2012, 5:06:01 PM8/21/12
to routeflo...@googlegroups.com
Hello Allan,

Thanks for your reply.

I have tried setting up the VM using the script as well as manually (as below) ... but each time I have faced issues with the following step

a) When running the create script under /home/routeflow/CPqD-RouteFlow-aa409f2/RouteFlow/rftest

sudo chroot $LXCDIR/base/rootfs apt-get -y --force-yes install quagga libboost-thread1.42.0 libboost-system1.42.0 libboost-filesystem1.42.0 libboost-program-options1.42.0 rsyslog

OR

b) When running the command manually as given in Tutorial 1

$ sudo chroot /var/lib/lxc/rfvm1/rootfs apt-get install quagga

I get following errors when executing above steps ... and hence can not proceed with the installation of VM's.

Can you pl. guide me regarding what needs to be done?

Note - I am using VMware WorkStation to run the RouteFlow VMX

Errors


Install these packages without verification [y/N]? y
Err http://archive.ubuntu.com/ubuntu/ natty/main cron i386 3.0pl1-116ubuntu1
  Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ natty/main libcap2 i386 1:2.20-1
  Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ natty/main libpopt0 i386 1.16-1
  Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ natty/main logrotate i386 3.7.8-6ubuntu3
  Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ natty/main quagga i386 0.99.17-4ubuntu1
  Temporary failure resolving 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/c/cron/cron_3.0pl1-116ubuntu1_i386.deb  Temporary failure resolving 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libc/libcap2/libcap2_2.20-1_i386.deb  Temporary failure resolving 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/popt/libpopt0_1.16-1_i386.deb  Temporary failure resolving 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/logrotate/logrotate_3.7.8-6ubuntu3_i386.deb  Temporary failure resolving 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/q/quagga/quagga_0.99.17-4ubuntu1_i386.deb  Temporary failure resolving 'archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
routeflow@routeflow:~/CPqD-RouteFlow-aa409f2/RouteFlow/rftest$


Eagerly awaiting for your reply ...

Regards

Kishor

Allan Vidal

unread,
Aug 21, 2012, 5:16:47 PM8/21/12
to routeflo...@googlegroups.com
Hi Kishor,

Are you running inside the VM? I believe it's having connectivity problems. Try doing what's in the last paragraph of the VM README:

Let us know if it works :)
Allan

kishors

unread,
Aug 22, 2012, 5:16:56 AM8/22/12
to routeflo...@googlegroups.com


O
Hello Allan,

Thanks for your reply.

I have tried setting
    $ sudo dhclient eth0
but the error still persists giving failure to download.....
can you pl suggest any other way to get the connectivity and work it  out

Allan Vidal

unread,
Aug 22, 2012, 7:19:26 AM8/22/12
to routeflo...@googlegroups.com
Hi Kishor,

What nameservers are listed in /etc/resolv.conf?
Alternatively, you might need to run apt-get update, as suggested by the apt-get install command.


Allan

kishors

unread,
Aug 22, 2012, 3:04:15 PM8/22/12
to routeflo...@googlegroups.com
Sorry Allan
tried everything, even changing the name servers but no success!!!

no command working!!!!
Thanks,
Kishor

Allan Vidal

unread,
Aug 22, 2012, 3:10:56 PM8/22/12
to routeflo...@googlegroups.com
Hi Kishor,

Is your VMWare setup is properly working? That is, does any other VM successfully connects to the internet?


Allan

Christian Esteve Rothenberg

unread,
Aug 22, 2012, 3:11:15 PM8/22/12
to routeflo...@googlegroups.com
I guess you have also tried to run the VM in both NAT and bridged modes, right?

Some time ago there was the same question on Internet connectivity
with the containers but cannot recall the answer.... :/

On Wed, Aug 22, 2012 at 4:04 PM, kishors <urmila...@gmail.com> wrote:
--
Christian

kishors

unread,
Aug 22, 2012, 3:49:29 PM8/22/12
to routeflo...@googlegroups.com
Hello there,
Thanks for your quick reply,

i guess it is working as i tried to work on Beacon and mininet my communication was there with host IP and everything was working.......
Thanks
Kishor

kishors

unread,
Aug 22, 2012, 3:51:37 PM8/22/12
to routeflo...@googlegroups.com
Hello there,
Thanks for your quick reply,

i guess it is working as i tried to work on Beacon and mininet my communication was there with host IP and everything was working.......
Thanks
Kishor

Christian Esteve Rothenberg

unread,
Aug 22, 2012, 4:00:24 PM8/22/12
to routeflo...@googlegroups.com
Can you ping any Internet domain name?

Try ping archive.ubuntu.com from the RouteFlow VM, and try it also
from the Beacon VM (assuming it also runs as a VMWare VM)
--
Christian Esteve Rothenberg, Ph.D.
Converged Networks Business Unit
CPqD - Center for Research and Development in Telecommunications
Tel. (+55 19) 3705 4479 / Cel. (+55 19) 8193-7087

kishors

unread,
Aug 22, 2012, 4:04:01 PM8/22/12
to routeflo...@googlegroups.com
Hello,

I have used git successfully on routeflow that seems internet is working on it? but apt-get install or repair is refusing to help, and as it is not installed my VMs are created but no quagga and no registration with the server.
I am stuck on this stage for long time and have tried all sorts of efforts .... trying chroot mount and bind etc... but failed there too....I need this completed before weekend as a project and its high time now. Also i have a query about running the rf-slave, it seems we give the config database while creating the and running the script? if we want to  incorporate the new  VMs and start the rf-slave how to pass the parameters as database while starting  and how to find the port  and address on which the rf-server  is running as i couldn't find it even though i stared it and had communication with rf-controller by netstat.
Thanks,
eagerly awaiting for your kind reply,
Kishor

kishors

unread,
Aug 22, 2012, 4:14:59 PM8/22/12
to routeflo...@googlegroups.com
Yes pings are working successfully
Thanks
Kishor

kishors

unread,
Aug 23, 2012, 4:10:41 AM8/23/12
to routeflo...@googlegroups.com
Hello Alan,
Can you pl suggest any solution on this connectivity issue.
Thanks
Kishor

On Tuesday, August 21, 2012 10:37:12 AM UTC+1, kishors wrote:

kishors

unread,
Aug 23, 2012, 5:26:25 AM8/23/12
to routeflo...@googlegroups.com
Hello Alan
Earlier I tried on VMWARE and it worked with 4 routers but was not able to add 2 more routers.
I am trying newly on PC instead of VMWARE, it has OS ubuntu 10.10
can you pl  help me to construct it with 6 routers, also 
The step  3 in Mongodb configuration I dont have file pch.h in my download. how should I proceed.... can i omit step 3 then?
Eagerly waiting for your kind reply,
Thanks
Kishor
 

On Tuesday, August 21, 2012 10:37:12 AM UTC+1, kishors wrote:

Allan Vidal

unread,
Aug 23, 2012, 10:18:43 AM8/23/12
to routeflo...@googlegroups.com
Hi Kishor,

Sorry for the delay in answering...
It might be an issue involving chroot in LXC and internet connectivity... I experienced those sometimes, but I don't know how to solve them yet. Since you're in a hurry, I'll suggest you copy the LXC containers. They're in /var/lib/lxc. You can copy any of the rfvm* folders (rfvmA for instance) and name it as you like. Then you can change the configuration files to fit your setup.

After you get the VMs running, you can change the configuration file in rftest. I recommend that you start from one of the default scripts (rftest2 will probably be a better fit for your scenario). You can change rftest2config following this guide: https://github.com/CPqD/RouteFlow/blob/master/README.md#configuration.

As for the setup outside VMWare, do you have the correct version of the MongoDB sources? It must have the pch.h file... If you skip this step, NOX won't compile, but you can still use POX.


Allan

On Thu, Aug 23, 2012 at 6:26 AM, kishors <urmila...@gmail.com> wrote:les

kishors

unread,
Aug 23, 2012, 1:15:25 PM8/23/12
to routeflo...@googlegroups.com
hello
Alan can I share my screen with you so that the things could be solved in faster and easier ways within time. my skype ID is kishors and would take advantage of your help as soon as possible,
PL inform me if possible any time!!!
Thanks
Kishor

kishors

unread,
Aug 23, 2012, 2:36:57 PM8/23/12
to routeflo...@googlegroups.com
Hello Alan,
Pl reply me so that I can be promisingly progressing, I sincerely need help and be very thankful and grateful if you could kindly share some knowledge with me on practical. I have already created the VMs and the configuration bit and need last minute help, pl do the needful,
Requesting for your kind concern and help in this matter,
Kishor

Marcos Rogerio Salvador

unread,
Aug 23, 2012, 3:03:36 PM8/23/12
to routeflo...@googlegroups.com
Dear Kishor:

Thank you for you interest in RouteFlow.

We are doing everything we can to improve RouteFlow and help the
community, but people in the RouteFlow team have their own duties too
and for that reason may not be available whenever someone needs their
attention. I can see your excitement about RouteFlow -which is
rewarding- and understand this waiting might be frustrating, but
sometimes (like now) there is nothing we can do about it.

That said, I´m sure they will help you as soon as they can. If you can
just hang in there a bit longer... :-)

Best regards,
Marcos



2012/8/23 kishors <kishor_...@yahoo.com>:
--
Marcos Rogério Salvador, Ph.D.
Network Technology Evolution Manager
CPqD - Center for Research and Development in Telecommunications
Tel +55 19 3705-4562
E-mail: marc...@cpqd.com.br
Skype: mr-salvador
URL: www.cpqd.com.br

kishors

unread,
Aug 23, 2012, 6:26:44 PM8/23/12
to routeflo...@googlegroups.com
Hello Sir,
Apologies for the trouble but cant move ahead and have this trouble in the experiment as
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/b/boost1.42/libboost-thread1.42.0_1.42.0-4ubuntu2_i386.deb  Temporary failure resolving 'archive.ubuntu.com'

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
config
b1
sed: can't read /var/lib/lxc/b1/fstab: No such file or directory
chmod: cannot access `/var/lib/lxc/b1/rootfs/var/log/quagga': No such file or directory
chmod: cannot access `/var/lib/lxc/b1/rootfs/var/run/quagga': No such file or directory
b2
chmod: cannot access `/var/lib/lxc/b2/rootfs/var/log/quagga': No such file or directory
chmod: cannot access `/var/lib/lxc/b2/rootfs/var/run/quagga': No such file or directory
rfvm1
chmod: cannot access `/var/lib/lxc/rfvm1/rootfs/var/log/quagga': No such file or directory
chmod: cannot access `/var/lib/lxc/rfvm1/rootfs/var/run/quagga': No such file or directory
rfvmA
chmod: cannot access `/var/lib/lxc/rfvmA/rootfs/var/log/quagga': No such file or directory
chmod: cannot access `/var/lib/lxc/rfvmA/rootfs/var/run/quagga': No such file or directory
rfvmB
chmod: cannot access `/var/lib/lxc/rfvmB/rootfs/var/log/quagga': No such file or directory
chmod: cannot access `/var/lib/lxc/rfvmB/rootfs/var/run/quagga': No such file or directory
rfvmC
chmod: cannot access `/var/lib/lxc/rfvmC/rootfs/var/log/quagga': No such file or directory
chmod: cannot access `/var/lib/lxc/rfvmC/rootfs/var/run/quagga': No such file or directory
rfvmD
chmod: cannot access `/var/lib/lxc/rfvmD/rootfs/var/log/quagga': No such file or directory
chmod: cannot access `/var/lib/lxc/rfvmD/rootfs/var/run/quagga': No such file or directory
Cant proceed without quagga
Pl kindly help to get rid of this error

Thanks
Kishor


On Tuesday, August 21, 2012 10:37:12 AM UTC+1, kishors wrote:

Ailiko

unread,
Nov 1, 2013, 4:48:52 AM11/1/13
to routeflo...@googlegroups.com
Hi Allan,

We are now trying ADD new VMs with routeflow online and find this discussion.
Then we followed the test scripts steps (see the attachment)but it did not work. and have some output code as follow:

1. ./create
2. ./rftest2
3. ./create_addrfvmC
4. ./rftest_addrfvmC

INFO:rfproxy:routemod sent to datapath (dp_id=0x1)
INFO:rfproxy:routemod sent to datapath (dp_id=0x1)
INFO:rfserver:Received RouteMod destined for unknown datapath - Dropping (vm_id=0x2b0b0b0b0b0)
INFO:rfserver:Received RouteMod destined for unknown datapath - Dropping (vm_id=0x2a0a0a0a0a0)
INFO:rfserver:Registering client port as idle (vm_id=0x2c0c0c0c0c0, vm_port=1, eth_addr=02:c1:c1:c1:c1:c1)
INFO:rfserver:Registering client port as idle (vm_id=0x2c0c0c0c0c0, vm_port=2, eth_addr=02:c2:c2:c2:c2:c2)
INFO:rfserver:Registering client port as idle (vm_id=0x2c0c0c0c0c0, vm_port=3, eth_addr=02:c3:c3:c3:c3:c3)
INFO:rfserver:Registering client port as idle (vm_id=0x2c0c0c0c0c0, vm_port=4, eth_addr=02:c4:c4:c4:c4:c4)
INFO:rfserver:Received RouteMod destined for unknown datapath - Dropping (vm_id=0x2a0a0a0a0a0)
INFO:rfserver:Received RouteMod destined for unknown datapath - Dropping (vm_id=0x2b0b0b0b0b0)
INFO:rfserver:Received RouteMod destined for unknown datapath - Dropping (vm_id=0x2a0a0a0a0a0)
INFO:rfserver:Received RouteMod destined for unknown datapath - Dropping (vm_id=0x2b0b0b0b0b0)
INFO:rfserver:Received RouteMod destined for unknown datapath - Dropping (vm_id=0x2a0a0a0a0a0)
INFO:rfserver:Received RouteMod destined for unknown datapath - Dropping (vm_id=0x2a0a0a0a0a0)
INFO:rfserver:Received RouteMod destined for unknown datapath - Dropping (vm_id=0x2a0a0a0a0a0)
INFO:rfserver:Received RouteMod destined for unknown datapath - Dropping (vm_id=0x2b0b0b0b0b0)
INFO:rfserver:Received RouteMod destined for unknown datapath - Dropping (vm_id=0x2a0a0a0a0a0)
INFO:rfserver:Received RouteMod destined for unknown datapath - Dropping (vm_id=0x2b0b0b0b0b0)

And we can login rfvmC, but no rfclient log in there. Could you tell us about the something that should be done.

Thanks for the help.
rftest2vm.csv
create.txt
create_addrfvmC.txt
rftest_addrfvmC.txt
rftest2.txt
rftest2config.csv

Muhammad Rashid

unread,
May 22, 2016, 1:23:19 PM5/22/16
to RouteFlow, all...@cpqd.com.br
Hi Allan,

I am new to quagga software. Please guide me how I can install three instances of quagga(VIM) on my laptop.

Thanks 
Rashid
Reply all
Reply to author
Forward
0 new messages