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:

and 

OR

and

  • 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
last modified by admin on 2009/10/26 12:17
Collectives
Project


© Sun Microsystems Inc. 2009
XWiki Enterprise 1.8.2.19075 - Documentation
Terms Of Use | Privacy | Trademarks | Copyright Policy | Site Guidelines | Site map | Help
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.