I am pretty interested in Linux kernel development, so I try to use the QEMU to debug the kernel.
First thing I did is to create a virtual disk image because I am developing the code on the computer that university provides, I don't have the root access on the computer.
I use the command
qemu-img create -f qcow2 kernel.img 10G
to create an empty virtual disk image.
Then I download the iso file from Debian website, open the qemu using this command:
qemu-system-x86_64 -m 4096 -boot d -cdrom debian.iso -hda kernel.img
After that, the QEMU started, everything went fine, I installed the OS successfully on the emulator.
After the installation was finished, I quit QEMU, restart it using
qemu-system-x86_64 -hda kernel.img
The kernel said that:
/boot/grub/i386-pc/normal.mod didn't found
Can anyone tell me what's going on and how to fix it?