views:

31

answers:

1

Say I developed a small kernel and I wanted to try it out in a VM.

If I have the kernel image, how would I get it into a VM in VirtualBox, for example? More importantly, how do I get a bootloader like Grub installed into the VM?

+2  A: 

I think the easiest way might be to install some version of Linux, and then edit your grub config files to add in your own kernel, Add it as another boot option.

Kibbee
Is there a small easy-to-install distro that would be good for this?
George Edison
Damn Small Linux is probably about the smallest mainstream distro out there. I don't think it would be that difficult to install.
Kibbee
You could actually just boot your VM from an image of a Linux live cd (any one that has grub would do) and use that to install grub onto the VM's hard disk.
caf