Linux und Ich

Blog über Ubuntu, Linux, Android und IT

Lizenziert unter CC by-sa von Eme Navarro auf Flickr

Compiz inside a virtual machine with VirtualBox 2.2

| 15 Comments

How do you call it to install the beta of a new operating system inside the beta of a virtual machine based on the beta of a new operating system? Yep: Stupid! So, don’t try this at home…

A couple of months ago i wrote (Sorry, German only, I didn’t translate that blog posting yet) that since VirtualBox 2.1 it is possible to run 3D applications within a virtual Microsoft Windows. Now, with VirtualBox 2.2 coming in a couple of weeks, it is possible to use 3D acceleration on Linux hosts, too! Sun publishes the Beta of VirtualBox 2.2. So if you’re interested – and don’t rely on VirtualBox – you can grep a .deb file of the current beta 2 and try the new features.

Anzeige

After you activated the 3D acceleration inside the settings of your virtual machine you can boot the vm. If you set the vboxvideo driver inside the /etc/X11/xorg.conf of the virtual machine, Compiz will start automatically. You can watch a small demo of Compiz running inside VirtualBox 2.2 here… (Perhaps skip the first minute)

[bliptv=Afb2YwA]

<br /> <div id="attachment_879" class="wp-caption aligncenter" style="width: 476px"><a href="http://christoph-langner.de/en/2009/03/compiz-und-3d-beschleunigung-in-virtualbox/"><img src="http://christoph-langner.de/wp-content/uploads/2009/03/video.png" alt="Please click on the image to watch the video." title="Compiz in VirtualBox" width="466" height="352" class="size-full wp-image-879" /></a><p class="wp-caption-text">Please click on the image to watch the video.</p></div><br />

If you don’t have flash, you can watch the ogv-Version as a alternative…

When you’ve got a fast computer with a state of the art graphics card, you will see that 3D acceleration within VirtualBox works pretty good. Compiz runs inside the virtual machine quite smooth. But with my Nvidia GeForce 7600 GS i can “feel” the limits of my hardware. Compiz runs fine, but when i activate the compiz cube it get’s significantly slow.

Author: Christoph

Hallo, ich bin Christoph -- Linux-User, Blogger und pragmatischer Fan freier Software. Wie Ihr ohne Zweifel bemerkt haben solltet schreibe ich hier über Linux im Allgemeinen, Ubuntu im Speziellen, sowie Android und andere Internet-Themen. Wenn du Freude an meinen Artikel gefunden haben solltest, dann kannst du mir über Facebook, Google+ oder Twitter oder natürlich dem Blog folgen.

15 Comments

  1. Interessant, leider kann ich das noch nicht testen, weil VirtualBox bei mir produktiv läuft -,-

    Kleiner Tipp noch: Wenn man die Verzerrung des Würfels deaktiviert, dann wird er wahrscheinlich etwas performanter laufen, so ist das zumindest auf meinem EEE bei knapp 600mhz.

    MFG
    MW

  2. Habe es gestern auch getestet. Leider ists noch nicht wirklich performant: <>2000 fps auf dem Host

  3. Tolle Sache!
    Ich war überrascht wie “flüssig” die Effeckte doch sind.
    Hätte erwartet das es total abgehackt aussieht.
    Kannst Du mal was zu Deiner Hardware schreiben?
    Grafikkarte? RAM? CPU?

    Danke und freundliche Grüße aus Hamburg

  4. sollte stehen kleiner 1000 fps auf dem Guest und größer 2500 fps auf dem Host

  5. > Kannst Du mal was zu Deiner Hardware schreiben?

    Rechner -> Isleofskye :)

  6. Das ging ja flott :-D Vielen Dank!

  7. That’s impressive. Start of better windows on linux gaming? hah

  8. @Vadim
    You’ve got to try it in “real life”. The capture of the video slowed my computer down. I think that you won’t feel a difference without recording :)

  9. Welches Paket funtkioniert unter Jaunty? Das von Intrepid kann das modul nicht bauen.

  10. Ich habe die 64-bit Variante für Intrepid benutzt… virtualbox-2.1_2.2.0_BETA2-45227_Ubuntu_intrepid_amd64.deb

  11. Weiss einer ob die Hardware ausreicht für Compiz?
    Hostsystem = 128 MB ATI X700, 1,5 GB DDR, 3400+ AMD64,
    Komischweise läuft bei mir Compiz unter Kubuntu nicht =(
    Hat einer ne Ahnung warum? Habe soweit ich weiß alles installiert. Auf auf meinem Gast KDE 4.1 drauf.

    Bin noch ein Newbie…. ;)
    Vielen Dank für eure Antworten im Voraus =)

  12. Aso nochwas. Ist es unbedingt notwendig die Version 2.2 zu haben? Gibts da kein Patch oder ähnliches für die Version 2.1.4 ? Habe in der 2.1.4 den Grafikbeschleuniger an und für das Gastsystem 64MB Grafikspeicher zur Verfügung gestellt

  13. > Weiss einer ob die Hardware ausreicht für Compiz?

    Probiers einfach aus.

    > Ist es unbedingt notwendig die Version 2.2 zu haben?

    Ja.

  14. Pingback: Riffers kleine Welt » Virtualbox 3.1 – neues Feature: Teleporting

  15. Pingback: Ubuntu 11.04 Natty mit Unity in einer VirtualBox probieren | Linux und Ich

Leave a Reply

Required fields are marked *.