How to install kqemu in ubuntu feisty
Tuesday, September 25th, 2007QEMU is an open source emulator. I use it regularly to test Camarabuntu installers. Out of the box, emulators do not run as fast as the computer you’re running them on. They run several orders of magnitude slower. However QEMU has kQEMU, which speeds the QEMU up to near native speeds and makes it very usable. This script will install it if it’s not there, and if it’s already install, it’ll set it up on Ubuntu Feisty.
#! /bin/bash
sudo modprobe kqemu
if [ $? -eq 1 ] ; then
echo "kQEMU was not installed. Press enter to install it now, or Control-C to quit. This might take a few minutes and might require internet access. It might ask if you want to install some source files, press enter if that happens"
read
sudo apt-get install qemu kernel-package linux-source kqemu-source build-essential
sudo module-assistant prepare
sudo module-assistant build kqemu
sudo module-assistant install kqemu
fi
sudo mknod /dev/kqemu c 250 0
sudo chmod 666 /dev/kqemu
You don’t have to change how you’re using qemu. Before you start using qemu, just run this script. Run qemu as normal.
If you start qemu and you get an error message like “Could not open ‘/dev/kqemu’ - QEMU acceleration layer not activated”, then you have not properly installed kqemu and the emulator will be very slow. If you do not see that message then the emulator will be fast.