Qemu Installation on Fedora Linux

The tutorial shows configuration, compilation and installation Qemu on Fedora Linux. KVM installation is described here.

1.  Install Required Fedora Packages

$ sudo yum install ncurses-libs ncurses-devel zlib-devel SDL-devel libpcap-devel glib2-devel
$ sudo yum install spice-server spice-protocol spice-server-devel

2.  Download and extract Qemu sources

$ wget http://wiki.qemu-project.org/download/qemu-x.y.z.tar.bz2

$ tar  jxvf qemu-x.y.z.tar.bz
$ cd qemu-x.y.z

$ ./configure --target-list=i386-softmmu,sparc-softmmu,x86_64-softmmu,sparc64-softmmu --enable-spice --enable-sdl

i386-softmmu - 32 bit x86 architecture
x86-64-softmmu - 64 bit x86 architecture
sparc-softmmu - 32 bit Sparc architecture
sparc-softmmu - 64bit Sparc architecture

For full list of configuration options, issue the command:

$ ./configure --help

$ make
$ sudo make install


BIOS for virtual machine is located in the directory /usr/local/share/qemu/. The default BIOS for 32 bit Sparc architecture - openbios-sparc32 distributed with Qemu is not working well. We have to use the proprietary BIOS rom that you can download from here or alternatively from the links below:


Download the appropriate Sparc BIOS and put it to the /usr/local/share/qemu directory.


21 thoughts on “Qemu Installation on Fedora Linux

  1. have you tried the iou2net.pl script in sparc qemu? im trying to atleast use the 'much improved' switching feature in "new" iou, use 4 switches, then interface it in gns3 maybe via udp and use the routers there. bunch of missing libraries and net modules in perl..

    • So far I haven't tried it but it is on my TODO list ;-) Sure, that's not easy job to get iou2net.pl ruuning on 2.6. If I have any update I'll post it as How-to. Good luck!

  2. >Unfortunately I managed to install Solaris into SS-5 only so we are restricted to maximum 256 MB RAM

    SS-20 should be no problem either. Then you would have 512 MiB.

      • I guess mostly not for the blog, but rather for the actual contributions to qemu which made it possible ;-) .

        Does SS-20 fail early or late? Using SS-20 is a bit more tricky than SS-5, because you would need to switch off scanning for missing devices and do a reset before booting the OS. Are 256 MiB too few for your use case?

        For my use case it even was too much, so, I had to implement booting with 32 MiB, afair. The SunOS 4.something didn't like too much memory. :)

        • Yes, I did it before booting.
          ok setenv sbus-probe-list f
          ok reset

          I tried to boot in both single and multi user mode but the display freezes here:

          ok boot disk2:d -vs
          Boot device: /iommu/sbus/espdma@f,400000/esp@f,800000/sd@2,0:d File and args: -vs
          Size: 243560+176918+41926 Bytes
          SunOS Release 5.6 Version Generic_105181-05 [UNIX(R) System V Release 4.0]
          Copyright (c) 1983-1997, Sun Microsystems, Inc.
          Using default device instance data

  3. im doing some test with netbsd and -m 2048 of memory but i need some library's from solaris to continue pls if you can share those lib`s i will apreciate.


  4. I am following the steps described in the document, but i am getting the following error.. while Patch Qemu source for UDP tunnels and multicast
    [imran@localhost qemu-0.14.1]$ cp /home/imran/Downloads/0018-qemu-0.14.1-mcast-udp.patch /home/imran/Downloads/GNS3-files/Qemu/qemu-0.14.1
    cp: cannot create regular file `/home/imran/Downloads/GNS3-files/Qemu/qemu-0.14.1': No such file or directory
    [imran@localhost qemu-0.14.1]$

    [imran@localhost qemu-0.14.1]$ patch -p1 -i 0018-qemu-0.14.1-mcast-udp.patch
    bash: patch: command not found...
    Install package 'patch' to provide command 'patch'? [N/y]
    * Waiting in queue..
    * Running..
    * Resolving dependencies..
    * Waiting for authentication..
    * Running..
    * Resolving dependencies..
    * Downloading packages..
    * Testing changes..
    * Installing packages..
    * Scanning applications..
    patch: **** Can't open patch file 0018-qemu-0.14.1-mcast-udp.patch : No such file or directory

    Brezular help me on this..

    • It seems that you are trying to copy patch to non-existing directory.
      Are you sure that all directories in path /home/imran/Downloads/GNS3-files/Qemu/qemu-0.14.1 exist?

  5. am new to Linux world, am trying to configure the operating system and it it asking for Solaris loin and password.Berezul help me out

Leave a comment

Your email address will not be published. Required fields are marked *