Testing a kernel and initrd with qemu

In my previous post I wrote how to add a module to the initrd.img file. Although, some testing might be nice.

This testing can be done using qemu.

So for example:

# qemu-system-x86_64 -kernel /scratch/blah/isolinux/vmlinuz -initrd /tmp/initrd.img-modded