Posted: Mon Mar 31, 2008 9:28 am
They best way I've found is to get a premade version of grub from http://www.osdever.net/downloads.php. They've got two images, but you're going to want the one that loads your kernel at 0x100000.
Once you've got the image file, you can use VFD [someone mentioned it in an earlier post] to load the image; copy your bin to the A:\ drive [VFD gives you a chance to designate device0 to a letter, I'm assuming you'll pick a] and once that's done you just have to the save the image to a file. You would then use the image you just made for VMware.
Just as an example, what I do is:
I'll run my build.bat to get the kernel out, then
copy kernel.bin to A:\kernel.bin
vfd save C:\Users\<yourname>\Projects\os.img
then I just run VMware and it's all good.
And as a side note, if you open and edit the grub.img that you download instead of making a copy of it, make sure you load it as just a ram disk or you won't be able to make changes to the disk while VMware is running a copy of the os, you'll get a file in use error.
Once you've got the image file, you can use VFD [someone mentioned it in an earlier post] to load the image; copy your bin to the A:\ drive [VFD gives you a chance to designate device0 to a letter, I'm assuming you'll pick a] and once that's done you just have to the save the image to a file. You would then use the image you just made for VMware.
Just as an example, what I do is:
I'll run my build.bat to get the kernel out, then
copy kernel.bin to A:\kernel.bin
vfd save C:\Users\<yourname>\Projects\os.img
then I just run VMware and it's all good.
And as a side note, if you open and edit the grub.img that you download instead of making a copy of it, make sure you load it as just a ram disk or you won't be able to make changes to the disk while VMware is running a copy of the os, you'll get a file in use error.