Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VM seems to shut down randomly #12

Open
carlosonunez opened this issue Dec 13, 2020 · 1 comment
Open

VM seems to shut down randomly #12

carlosonunez opened this issue Dec 13, 2020 · 1 comment

Comments

@carlosonunez
Copy link

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.

@javacom
Copy link

javacom commented Dec 15, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants