Skip to content

Instantly share code, notes, and snippets.

@retrage
Created January 20, 2020 11:11
Show Gist options
  • Select an option

  • Save retrage/3808899d6a9d52d83cadd21054f6fd8b to your computer and use it in GitHub Desktop.

Select an option

Save retrage/3808899d6a9d52d83cadd21054f6fd8b to your computer and use it in GitHub Desktop.
Hello from Linux(lkl/musl) on Solo5(spt) on Docker(runnc)
$ docker run -i --runtime=runnc retrage/nabla-lkl-hello:latest /hello.
nabla
nabla-run arg [/opt/runnc/bin/nabla-run --x-exec-heap --mem=512 --block:rootfs=/
var/run/docker/runtime-runnc/moby/aa6f5263a2bd839b2fdc1cb0b4bb66d5c120e3aa4f5cd6
f76318788e8fde102e/rootfs.iso /var/lib/docker/overlay2/b9f7d682cd11b25c81edbb6c2
c1d7c6768a769f3c29db709b70a05f7191716d1/merged/hello.nabla {"env":"PATH=/usr/loc
al/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","env":"HOSTNAME=aa6f5263a2
bd","cmdline":"/var/lib/docker/overlay2/b9f7d682cd11b25c81edbb6c2c1d7c6768a769f3
c29db709b70a05f7191716d1/merged/hello.nabla","net":{"if":"ukvmif0","cloner":"Tru
e","type":"inet","method":"static","addr":"172.17.0.2","mask":"16","gw":"172.17.
0.1"},"blk":{"source":"etfs","path":"/dev/ld0a","fstype":"blk","mountpoint":"/"}
,"cwd":"/"}]
nabla-run: WARNING: The use of --x-exec-heap is dangerous and not recommended as
it makes the heap and stack executable.
| ___|
__| _ \ | _ \ __ \
\__ \ ( | | ( | ) |
____/\___/ _|\___/____/
Solo5: Bindings version v0.6.4-2-gb326416-dirty
Solo5: Memory map: 512 MB addressable:
Solo5: reserved @ (0x0 - 0xfffff)
Solo5: text @ (0x100000 - 0x4cdfff)
Solo5: rodata @ (0x4ce000 - 0x5b4fff)
Solo5: data @ (0x5b5000 - 0x7eafff)
Solo5: heap >= 0x7eb000 < stack < 0x20000000
FDINFO: __RUMP_FDINFO_NET_tap0 is not founed in environno netdev available (null
)
RTNETLINK answers: Network is unreachable
failed to set IPv4 gateway: Network is unreachable
sleeping 50000 usec
I beheld the wretch — the miserable monster whom I had created.
Solo5: solo5_exit(0) called
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment