Skip to content

Instantly share code, notes, and snippets.

@aabdelfattah
Last active March 29, 2023 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aabdelfattah/d6d252d38fb1bb07744ff43f4794affd to your computer and use it in GitHub Desktop.
Save aabdelfattah/d6d252d38fb1bb07744ff43f4794affd to your computer and use it in GitHub Desktop.
Run yocto qemux86-64 image with HVF acceleration and SSH access on MacOS
qemu-system-x86_64 \
-kernel bzImage--5.15.96+git0+509f4b9d68_001e2930e6-r0-qemux86-64-20230327112333.bin \
-enable-kvm \
-machine q35,accel=hvf \
-device virtio-net-pci,netdev=net0 \
-netdev user,id=net0,hostfwd=tcp::5555-:22,net=192.168.7.0/24,host=192.168.7.1,dhcpstart=192.168.7.2 \
-drive file=core-image-minimal-qemux86-64-20230327162556.rootfs.ext4,if=virtio,format=raw \
-append "root=/dev/vda console=ttyS0 ip=dhcp" \
-serial stdio \
-m 2048M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment