Installing and Running ONOS

1,114 views
Skip to first unread message

Myrash

unread,
Jan 29, 2018, 7:07:29 PM1/29/18
to ONOS Discuss

Hello everyone,

I am new to ONOS and I have questions about installing and running ONOS. That would be kind of you to guide me.

I have a VM that I am running different simulators on that and I want to install ONOS on that VM and I only need one instance of ONOS to run.

There are several links about how to install and run ONOS and I am totally confused. 
Could you please guide me? which one is the best to follow?

Also, how should I run ONOS? 
sudo /opt/onos/bin/onos-service start? Is that a correct way or through buck and Ok clean commands?

THANK YOU


Thomas Vachuska

unread,
Jan 29, 2018, 7:37:03 PM1/29/18
to Myrash, ONOS Discuss
Hi,

Yes, there are a number of different ways one can do this and this can seem overwhelming. In short, if you are interested in running ONOS as a developer, on the local machine where you have ONOS sources that you built yourself, you can run ONOS like this:

$ONOS_ROOT/tools/build/onos-buck run onos-local

This will build and run ONOS. You can then access the CLI via $ONOS_ROOT/tools/test/bin/onos localhost and GUI via $ONOS_ROOT/tools/test/bin/onos-gui localhost commands.

If you wish to install ONOS as a single node on a machine using merely a pre-built, downloaded onos-*.tar.gz file, you can do that by copying the file to the machine where you want to install it, uncaring the file and then running bin/onos-service server command. This will run the controller in the shell from which you started it. You can also run it as a service (systemd or upstart), but for that you will have to install the appropriate service definition file (and this varies on the version of Linux you use) and start the service. There is a init/README file in the tar.gz that provides brief description on how to do this. 

Thomas



--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/onos-discuss/b42c2b08-c945-4289-bc52-7133b318d40f%40onosproject.org.

Myrash

unread,
Feb 2, 2018, 10:18:26 AM2/2/18
to ONOS Discuss, shmy...@gmail.com

 
Thank you very much for your help. I installed ONOS and it works perfectly.

I want to start writing a simple forwarding application in ONOS. I have already worked with POX and based on the instructions, it was easy to write a simple application.
Is there any tutorial to help me how to start and which functions are necessary to write first in ONOS?


Thank you


 

Andrea Campanella

unread,
Feb 2, 2018, 10:27:19 AM2/2/18
to Myrash, ONOS Discuss
Hi,

I would start with the one sign application located here

And the tutorial here

Cheers,
Andrea Campanella

Member of Technical Staff at ONF
Member of Ambassador Steering Team, ONOS and CORD Community

--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.

rokiadj...@gmail.com

unread,
Feb 14, 2018, 5:40:08 PM2/14/18
to ONOS Discuss
Hi;
i'm a little bit confused , i'm trying to install ONOS and run it but i couldn't because every time I come across an error that I can not fix it  
so if you don't mind could you give me the steps 
i'm using ubuntu 16.04 TLS
Thanks 

Andrea Campanella

unread,
Feb 15, 2018, 4:03:47 AM2/15/18
to rokiadj...@gmail.com, ONOS Discuss
Hi, 

Can you share the error please ?

Thanks, 

Andrea Campanella

Member of Technical Staff at ONF
Member of Ambassador Steering Team, ONOS and CORD Community

--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.

Myrash

unread,
Feb 15, 2018, 11:35:35 AM2/15/18
to ONOS Discuss, shmy...@gmail.com

Thank you for your help.

I have a question about debugging an application. 

I found the following link:


I cannot start ONOS with debug option because:

 - when I run "onos-karaf clean debug":  onos-karaf: command not found

- also in "bin/onos-service server debug":

error: debug is not a valid command

Remotely administer the ONOS service on a single node or the current ONOS cell.

Usage:     onos-service <TARGET> [COMMAND]
           onos-service [-h | --help]
Options:
    TARGET          The target of the command
    COMMAND         The command to execute. Default value is 'status'
    [-h | --help]   Print this help

TARGET:  <hostname | --cell>
      hostname        Execute on the specified host name
        --cell        Execute on the current ONOS cell

COMMAND: [start|stop|restart|status]



Also, where the location of  the log file in ONOS?

Thanks
Reply all
Reply to author
Forward
0 new messages