diff --git a/README b/README index d78b26bfc50d25d3b4b0fcecde33100b9da1fd70..67866f26db8141ce9fd71a1476e73608dda73a4e 100644 --- a/README +++ b/README @@ -57,9 +57,13 @@ External Networking To start osv with external networking: - $ sudo ./scripts/run.py -n + $ sudo ./scripts/run.py -n -v -Inside OSv, configure netwroking like so: +The -v is for kvm's vhost that provides better performance +and it's setup requires a tap and thus we use sudo. + +By default OSv spawns a dhcpd that auto config the virtual nics. +Static config can be done within OSv, configure netwroking like so: $ ifconfig virtio-net0 192.168.122.100 netmask 255.255.255.0 up $ route add default gw 192.168.122.1 @@ -68,6 +72,15 @@ Test networking: $ test TCPExternalCommunication +Running java or C applications that allready reside within the image: + + #Netserver + $ sudo scripts/run.py -nv -m4G -e "java.so -jar /java/cli.jar run /usr/netserver -D -4 -f" + + #The cli and the internal web server + sudo scripts/run.py -nv -m4G -e "java.so -cp /java/cli.jar -jar /java/web.jar app" + + Debugging =========