vftool icon indicating copy to clipboard operation
vftool copied to clipboard

VM seems to shut down randomly

Open carlosonunez opened this issue 4 years ago • 1 comments

Thank you so much for building this. This has been incredibly helpful.

I'm using this to spin up a Docker VM while I wait for Docker to become compatible with Apple Silicon. My VM seems to panic and shut down after a few minutes of pulling Docker images. The logs from vftool don't indicate any panics from AppleVZ, and screenlog.0 doesn't say anything before it shuts down, but I'm unable to find any instances of vftool in my process list after a few minutes.

Am I doing something wrong?

If it helps, I'm starting it on Ansible but am daemonizing it through nohup and shell redirection. The subshell running vftool forks from PID 1 when I do it this way.

carlosonunez avatar Dec 13 '20 07:12 carlosonunez

You should use screen to start the vm instead of nohup which is not suitable for job with tty output.

e.g. screen -S vm # to start a screen with name vm ./vftool ... ... # to start the vm After starting vm use Ctrl-A D to detach the screen. screen -ls to list the screens screen -r vm # to resume screen named vm

javacom avatar Dec 15 '20 03:12 javacom