This is a little dated but it means someone was taking a swing at this back
with Karaf 3.x. I did see where Onos has moved on to using Karaf 4.x
although I don't know if they are still using OSv. Being able to boot Karaf
into unikernel means start up would be fast, there's little attack surface,
and it won't have the overhead of VMs/Docker on top. Although I gather OSv
could run in that environment as well as could other unikernels. Has anyone
had any experience attempting to use Karaf with any unikernels good, bad or
indifferent. I'm certainly for pursuing this farther but if it's already out
there then there isn't any point in reinventing the wheel. 

One complaint or problem with unikernels  is there is only one allowed
process running. You can't log into it as user. That's also part of its
inherent security as well. That's why Karaf in that environment interests me
so much as I don't need a user login to the operating system if I can log
into Karaf itself. 

Unfortunately my knowledge is somewhat limited here that's why I though I'd
ask if anyone had worked with it. Ideally I'd get a server with Xen running
on it so I could compile this and test it. 

https://github.com/cloudius-systems/osv-apps/blob/master/onos/Capstanfile

base: cloudius/osv-openjdk

cmdline: >
  /java.so
  -Xms128M
  -Xmx512M
  -XX:+UnlockDiagnosticVMOptions
  -XX:+UnsyncloadClass
  -Dcom.sun.management.jmxremote
 
-Djava.endorsed.dirs=/usr/lib/jvm/java/jre/lib/endorsed:/usr/lib/jvm/java/lib/endorsed:/onos/apache-karaf-3.0.3/lib/endorsed
 
-Djava.ext.dirs=/usr/lib/jvm/java/jre/lib/ext:/usr/lib/jvm/java/lib/ext:/onos/apache-karaf-3.0.3/lib/ext
  -Dkaraf.instances=/onos/apache-karaf-3.0.3/instances
  -Dkaraf.home=/onos/apache-karaf-3.0.3
  -Dkaraf.base=/onos/apache-karaf-3.0.3
  -Dkaraf.data=/onos/apache-karaf-3.0.3/data
  -Dkaraf.etc=/onos/apache-karaf-3.0.3/etc
  -Djava.io.tmpdir=/onos/apache-karaf-3.0.3/data/tmp
 
-Djava.util.logging.config.file=/onos/apache-karaf-3.0.3/etc/java.util.logging.properties
  -Dkaraf.startLocalConsole=true
  -Dkaraf.startRemoteShell=true
  -classpath
/onos/apache-karaf-3.0.3/lib/karaf-jaas-boot.jar:/onos/apache-karaf-3.0.3/lib/karaf.jar:/onos/apache-karaf-3.0.3/lib/karaf-jmx-boot.jar:/onos/apache-karaf-3.0.3/lib/karaf-org.osgi.core.jar
  org.apache.karaf.main.Main

build: make



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Reply via email to