Thursday, October 22, 2009

Getting the Bochs image

I basically followed the tutorial Derek made but I did have to apt-get install g++, make, m4, ssh. The interesting thing was that after I chroot, I was not able to run any binary copied from the ale node. But, after recompiling the code from source, it seems to work fine.
After I got everything I needed in the debian folder, I created a disk image following Derek's tutorial. The tricky part was that I had to be root to do that with a bochs tool. So, it can only be done after I installed bochs on my machine. And bochs was supported by apt-get and yum, which made the installation quite easy. With the bochs tool, I was able to create a disk image.
Then, after that need to make bochs without ruby.
I then found that my disk image had some problem setting up grub
so I have to do the following when I boot up the hda disk image in bochs
grub>
root (hd0,1)
setup (hd0)
kernel /boot/vmlinuz-2.6.26-2-amd64 root=/dev/hda2
initrd /boot/initrd.img-2.6.26-2-amd64

boot

No comments: