Skip to content

Instantly share code, notes, and snippets.

@celeron633
Created November 26, 2024 15:38
Show Gist options
  • Save celeron633/837dc57783523f84a3982cad0fb64be9 to your computer and use it in GitHub Desktop.
Save celeron633/837dc57783523f84a3982cad0fb64be9 to your computer and use it in GitHub Desktop.
qemu x86_64 emulator for kernel development
mount -t 9p -o trans=virtio,version=9p2000.L host_share /mnt
qemu-system-x86_64 -m 512M \
-kernel ./linux-4.19.324/arch/x86_64/boot/bzImage \
-append "rootwait root=/dev/sda rw console=ttyS0" \
-nographic \
-virtfs local,id=shared_folder,path=./share,security_model=mapped,mount_tag=host_share \
-hda /home/dengxh/alpine/alpine.img
qemu-system-x86_64 -m 512M \
-kernel ./linux-4.19.324/arch/x86_64/boot/bzImage \
-append "rootwait root=/dev/sda rw console=ttyS0" \
-nographic \
-virtfs local,id=shared_folder,path=./share,security_model=mapped,mount_tag=host_share \
-hda ./busybox.img
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment