Thursday, March 26, 2015

How to compile qemu for RHEL 6

1) Download, compile, and install SDL-1.2.15

2) Download qemu-2.2.1.  Configure like this:
./configure --enable-cdl

3) /path/to/bin/qemu-system-x86_64 -m 4096 /path/to/HardDriveImage.qcow2

4096 is the amount of memory you want to use, in MB.

If your hard drive image is from VirtualBox, http://cheznick.net/main/content/converting-a-virtual-machine-from-virtualbox-to-kvm explains how to convert the hard drive image to either a raw .img file or a qcow2 file:

1) VboxManage clonehd /path/to/hardDriveImage.vdi hardDriveImage.img --format raw
2) qemu-img convert -f raw hardDriveImage.img -O qcow2 hardDriveImage.qcow2

No comments: