Building and Installing QEMU on an OpenSolaris (os200805) Host
Updated July 03, 2008
Updated kqemu-1.4.0pre1 (fix file name 1.0.4pre1 -> 1.4.0pre1)
and increase default monitor size from 32MB to 128MB.
Updated kqemu-1.3.0pre11 (fix file name 1.0.3pre11 -> 1.3.0pre11)
and increase default monitor size from 32MB to 128MB.
Intro:
QEMU with the TCG generator and KQEMU-1.4.0pre1 are used together, or
QEMU with the Dyngen generator and KQEMU-1.3.0pre11 are used together.
Do not mix the two code bases.
Prerequisites:
- QEMU TCG (Tiny Code Generator) source SVN version 0.9.1, June 22, 2008
- Use subversion to get the latest trunk - svn co svn://svn.savannah.nongnu.org/qemu/trunk qemu
and
- Optional KQEMU source TCG Enabled QEMU version 1.4.0pre1, July 03, 2008 the i386/x86_64 kernel acceleration module
OR
and
- Optional KQEMU source for Dyngen Enabled QEMU, version 1.3.0pre11, July 03, 2008 the i386/x86_64 kernel acceleration module
- SUNWgcc - gcc3.4.x with the existing Dyngen code on the QEMU OpenSolaris
Project page, gcc-3.4.x is required. with the current SVN TCG code, we may be able to use gcc4 or Studio 12. - SUNWlibsdl - libSDL. Native on OS200805
- SUNWbtool - /usr/bin/ar - the library archiver
- SUNWtexi - texi2html - convert texinfo files to html
- SUNWperl584 - pod2man - convert pod files to manpages
- SUNWgmake - gmake - GNU make
- SUNWgnu-coreutils - ginstall - GNU Install program
- SUNWxwinc - X11 Include headers
- SUNWgnome-common-devel - /usr/bin/pkg-config - to extract include/libraries prom package config files
- SUNWgnutls - GNU Transport Layer Security library - for vnc security
pkg install SUNWgcc SUNWgmake SUNWgnu-coreutils SUNWxwinc SUNWgnome-common-devel SUNWgnutls
- Optional Open Sound System. By default, QEMU can use SunAudio through libSDL, but the Open Sound System produces better results
Consult the dependencies page for more detailed information. Pre-packaged and patched sources are available from the downloads page.
Your path should look something like this if you're using Sun's provided GCC and libSDL (as is available on OS200805):
PATH=/usr/bin:/usr/perl5/bin
If you are compiling QEMU for a 64-bit host on OS200805,
your path should look like:
PATH=/usr/bin/amd64:/usr/bin:/usr/perl5/bin
Building and Installing QEMU
If you're reading this page, you get the hint that you need to disable the gcc check, which assumes that you haven't read any of the documentation yet. Seeing as you're here, you are expected to be using a recommended gcc compiler...
--target-list="the list of qemu virtual machines that are configured"
32-bit:
./configure --prefix=/opt/qemu --target-list=i386-softmmu --disable-gcc-check
pfexec gmake install
64-bit:
./configure --prefix=/opt/qemu --target-list=x86_64-softmmu,i386-softmmu --disable-gcc-check
pfexec gmake install
Building and Installing the KQEMU Module
(duplicating the contents of README.solaris in the kqemu tarball)
32-bit:
./configure
gmake kqemu32
pfexec gmake install32
pfexec chmod 666 /dev/kqemu
64-bit:
./configure
gmake kqemu64
pfexec gmake install64
pfexec chmod 666 /dev/kqemu