Kompiling in a virtual machine made fast

    tstaerk's picture
    2010
    27
    Mar

    As you may have followed, I compiled my KDE in a virtual machine, described an example how it goes and even compared compile times in a mini-benchmark. I stopped using a virtual machine later because VirtualBox only gives you one virtual CPU, QEmu as well, and VMware Server only two. The good thing is I found KVM virtualization and learned how to set it up. It is a bit tedious and you will have to create a network bridge after every reboot, but the result is astonishing - I could compile Qt 4.6 in 20 minutes instead of 80.

    Comments

    Comment viewing options

    Select your preferred way to display the comments and click "Save settings" to activate your changes.
    pascal_a's picture

    KVM has very good performance - try virt-manager

    KVM has a very good performance. I did the following benchmark with Geekbench
    Tested with Ubuntu 10.04
    Native: 2870
    Kvm: 2560
    The number is a score in Geekbench. The virtualized machine has a benchmark result of 89% of the native benchmark result.
    To compare with an older benchmark I ran:
    Ubuntu 9.10
    native: 2350
    Virtualbox: 1512

    You can get around the tedious work of using KVM by using Virt-manager which is a manager for virtual machines created by Red hat. It can control both Kvm/qemu and Xen - locally or remote - however it needs libvirt installed on the remote machine. I'm using virt-manager 0.8.2 which works quite well. I've experienced that earlier releases were a bit buggy, at least under Ubuntu.

    tstaerk's picture

    seems I found a soul-mate :)

    yes, I have stopped using VirtualBox and yes, I am using virt-manager as described in one of the links above. GeekBench is something that interests me a lot, so I need to stop commenting here.

    Comment viewing options

    Select your preferred way to display the comments and click "Save settings" to activate your changes.