Archive

Qemu And Free BSD


Qemu and FreeBSD

When I was trying to get FreeBSD to work under Qemu, I kept having a problem with the disk partitioning. The disk would always be 0Mb and of course FreeBSD didn’t like this.

The reason for this was because I was using qemu-img to create the virtual hard drive for FreeBSD. The solution was to use dd’ to create a file full of zeros (/dev/zero`) that was the size that I wanted the virtual hard drive (for example 5Gb).

After doing this and pointing qemu to the 5Gb file I’d created (in ~/vm/FreeBSD6.img), FreeBSD installed without a problem.

Leave a Reply