Skip to content

Guest os not started and the Virtual Machine Service for vfkit keeps using 400% CPU #347

@hgl

Description

@hgl

I use the following command to start my VM:

vfkit \
  --cpus 8 \
  --memory 6144 \
  --bootloader efi,variable-store=/var/lib/virby/efistore.nvram,create \
  --device virtio-blk,path=/var/lib/virby/diff.img \
  --device virtio-fs,sharedDir=/var/lib/virby/vm_sshd_keys,mountTag=sshd-keys \
  --device virtio-net,nat,mac=02:94:26:8b:f0:13 \
  --restful-uri tcp://localhost:31223 \
  --device virtio-rng \
  --device virtio-balloon

And from the Activity Monitor, a Virtual Machine Service for vfkit process will start and keep using 400% CPU. /var/db/dhcpd_leases doesn't get updated.

If I add an additional --device virtio-serial,stdioor --device virtio-serial,logFilePath=/tmp/vm.out, I can see the os correctly boots and /var/db/dhcpd_leases gets updated.

If I use --device virtio-serial,pty, however, the vm hangs again.

vfkit is built from the main branch.

Any idea what could have caused that?

My machine is macOS 15.6, M2 Pro

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions