evansm7 / vftool

A simple macOS Virtualisation.framework wrapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VM exits immediately after screening into it

Steellow opened this issue · comments

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

I have the same problem on m1

I'm also experiencing this exact issue on M1

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

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