Created
November 26, 2024 15:38
-
-
Save celeron633/837dc57783523f84a3982cad0fb64be9 to your computer and use it in GitHub Desktop.
qemu x86_64 emulator for kernel development
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mount -t 9p -o trans=virtio,version=9p2000.L host_share /mnt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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