QEMU

From CBLFS
Revision as of 17:54, 5 July 2008 by Jciccone (talk | contribs)
Jump to navigationJump to search
Download Source: http://www.qemu.com/qemu-0.9.1.tar.gz

Introduction to QEMU

QEMU is a generic and open source machine emulator and virtualizer.

Project Homepage: http://fabrice.bellard.free.fr/qemu/

Dependencies

Required

Caution.png

Note

Some users have reported that QEMU-0.9.1 in system mode segmentation faults on startup for when compiled with GCC-4.2.2. GCC-3.3.6 is reported to work fine. Ensure that you have GCC-3.3.6 installed and that you pass the following to configure: --cc=/opt/gcc-3.3.6/bin/gcc

Non-Multilib

Compile the package:

./configure --prefix=/usr &&
make

Install the package

make install

Multilib

This package does not provide any libraries so only one installation is needed.

32Bit

Compile the package:

USE_ARCH=32 ./configure --prefix=/usr \
    --cc="gcc ${BUILD32}" &&
make

Install the package

make install

N32

Compile the package:

USE_ARCH=n32 ./configure --prefix=/usr \
    --cc="gcc ${BUILDN32}" &&
make

Install the package

make install

64Bit

Compile the package:

USE_ARCH=64 ./configure --prefix=/usr \
    --cc="gcc ${BUILD64}" &&
make

Install the package

make install

Configuring QEMU

When starting QEMU you may recieve the following error:

Could not configure '/dev/rtc' to have a 1024 Hz timer. This is not a fatal
error, but for better emulation accuracy either use a 2.6 host Linux kernel or
type 'echo 1024 > /proc/sys/dev/rtc/max-user-freq' as root.

The easiest way to fix this to run the command it suggests, then run the following to add an entry into sysctl.conf so that this happens at every boot:

echo "dev.rtc.max-user-freq = 1024" >> /etc/sysctl.conf
Retrieved from "?title=QEMU&oldid=14658"