Thursday, August 28, 2008

Testing Intrepid Ibex with QEMU

In one of the first posts I told about testing the new version of Ubuntu. In that post I had just upgraded muy ubuntu 7.10 to ubuntu 8.04 Heard5, that was, one month before ubuntu 8.04 becomes stable. I didn't have any several problem but to be honest I had lots of lucky.

Now I am going to test the next ubuntu release, this is ubuntu 8.10 or if you prefer Intrepid Ibex.
According to the ubuntu release schedule the last version to test if the Alpha 4. Two months left for the release.

This time I am not going to trush on luck. In one of the last sessions of the Master on Free Software, Berto told us about Virtualization. Among the virtualization systems about Berto told us I liked specially QEMU, so I decided to use it in order to test ubuntu 8.10. These are the steps that I followed:

- First I downloaded the iso image of ubuntu 8.10 Alpha 4 from here.

- Installing QEMU:

$sudo apt-get install qemu

- Then I created a qemu file image, this will be my virtual hard disk, doing:

$qemu-img create -f qcow2 ~/intrepid.img 4G

where 4G is the size of the virtual hard disk.

- Now I could install ubuntu 8.10 in that virtual hard disk from the iso image just doing:

$qemu -hda ~/intrepid.img -cdrom intrepid-desktop-i386.iso -boot d -m 512

where 512 is the size of the RAM.

- Finally to run ubuntu 8.10 after installing it:

$qemu -hda ~/intrepid.img -m 512


Some tips:

- If you are using a 64 bits operative system you should use qemu-system-x86_64 as command instead of qemu.

- If you want the virtual system run faster you can install the qemu accelerator:

$sudo apt-get install kqemu-common

you will need to load the kernel module for the accelerator:

$sudo modprobe kqemu

then you can run qemu with the option --kernel-kqemu to use the accelerator.

No comments: