Hey Ram,
Might be worth looking into a "setup" script that will add the -name or -sname. Doing something where you pull the IP Address (similar to the `make cookie` rule in the Makefile):
For example, if you add this to Makefile:
name:
echo -name myapp@`ip -4 addr show eth0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}'` >> etc/vm.args
That will add, on my machine on my local network, that adds:
...to the vm.args file
If you must use -sname, then you could generate a random name using the same process with something like:
sname:
echo -sname myapp_`openssl rand -base64 10 | head -n1 | sed -e 's/[^a-zA-Z0-9]//g'` >> etc/vm.args
That would just add something like this to the vm.args file:
-sname myapp_34n9m873yvn938
Personally, I'd lean toward the -name and IP approach, but that's just me.
If that points you in the right direction, let me know what you come up with,
-Jesse