Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
mvn:org.onlab.onosonosproject/onos-features/1.0.0-SNAPSHOT/xml/features

...

The ONOS build process produces a number of OSGi bundles, which are essentially Java jar files.  These bundles can e deployed in any OSGi container, but this would require that such container be installed, properly configured, and that the bundles be collected and properly staged. The ONOS utility scripts, onos-package and onos-install, simplifies this task into down to two steps:


  • Running onos-package packages the ONOS binaries into a distributable compressed tar. Then,
  • Running onos-install pushes the package created by onos-package onto the remote VM.

...

  • The Oracle Java 8 JRE and Maven are installed
  • A user named sdn with pasword-less sudo privilege

    exists

    , or, on the build machine, the ONOS_USER environment variable is set to the preferred

    username for the VM

    user for the VM.

    Tip

    To enable sudo without a password, edit the sudoers configuration. To do this, run sudo visudo within the VM, and add the following line:

    Code Block
    languagetext
    sdn ALL=(ALL) NOPASSWD:ALL

Additionally, onos-install relies on ssh to deploy the package to the target machine. To make the process easier, password-less (e.g. key-based) login to the VM is recommended. The onos-push-keys  utility can be used to transfer one's public keys to the VM:

...