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 exits immediately after screening into it #32

Open
Steellow opened this issue Mar 16, 2022 · 4 comments
Open

VM exits immediately after screening into it #32

Steellow opened this issue Mar 16, 2022 · 4 comments

Comments

@Steellow
Copy link

Steellow commented Mar 16, 2022

I've been trying to set up Ubuntu VM on my M1 mac with vftool. However the VM seems to quit immediately after I screen into it:

vftool/build/vftool -k kernel -i initrd -d disk.img -m 4096 -a "console=hvc0"

Then, on another tab, I do screen /dev/ttys002. The screen gets terminated immediately:

❯ screen /dev/ttys002
[screen is terminating]

And the VM exits as well:

❯ ./vftool -k vm/vmlinuz -i vm/initrd -d vm/focal-server-cloudimg-arm64.img -m 6144 -a "console=hvc0"

2022-03-16 15:48:35.392 vftool[11218:150291] vftool (v0.3 10/12/2020) starting
2022-03-16 15:48:35.392 vftool[11218:150291] +++ kernel at vm/vmlinuz, initrd at vm/initrd, cmdline 'console=hvc0', 1 cpus, 6144MB memory
2022-03-16 15:48:35.393 vftool[11218:150291] +++ fd 3 connected to /dev/ttys002
2022-03-16 15:48:35.393 vftool[11218:150291] +++ Waiting for connection to:  /dev/ttys002
2022-03-16 15:48:44.302 vftool[11218:150291] +++ Attaching disc vm/focal-server-cloudimg-arm64.img
2022-03-16 15:48:44.303 vftool[11218:150291] +++ Configuration validated.
2022-03-16 15:48:44.303 vftool[11218:150291] +++ canStart = 1, vm state 0
2022-03-16 15:48:44.449 vftool[11218:150341] +++ VM started
2022-03-16 15:48:45.309 vftool[11218:150291] +++ Done, state = 3

Any ideas what causes this? I tried to follow this tutorial

@Steellow Steellow changed the title VM exists immediately after starting VM exits immediately after starting Mar 16, 2022
@Steellow Steellow changed the title VM exits immediately after starting VM exits immediately after screening into it Mar 16, 2022
@arturnasennik
Copy link

I have the same problem on m1

@eladitzhakian
Copy link

I'm also experiencing this exact issue on M1

@guytish
Copy link

guytish commented Mar 23, 2022

I’m dealing with the same problem, will appreciate your help here

@hilaweinstok
Copy link

I get the same problem on M1. can you please assist?

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

5 participants