ron/miniccc/minimega: improving reconnect #1177
Refactor minimega so that we connect CC when starting a VM. Add test to ensure that we can reconnect after VMs are killed and restarted. Add additional checks in ron to make sure that we aren't trying to listen on the same thing twice and properly cleaning up the listeners that we have closed. Suppress tunnel EOF messages.
Tested with a debian VM. If you shutdown the VM and then
One potentially problematic thing is that the miniccc state is fresh so it doesn't know what the previous command was so it reruns them all.
@mkunz7: is that to prevent miniccc from rerunning commands?
There are some commands that we would want to rerun (e.g. set static IP) and others that we wouldn't (e.g. run setup.bash). It's hard for us to know which those are.
I'm leaning towards letting the user figure this out -- run