chiark / gitweb /
Merge branch 'buildserver-qemu-kvm' into 'master'
authorCiaran Gultnieks <ciaran@ciarang.com>
Fri, 23 Sep 2016 12:25:12 +0000 (12:25 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Fri, 23 Sep 2016 12:25:12 +0000 (12:25 +0000)
commit5667d16498e803d54c6ba3f386b887b284b04f6d
tree035055b7448e59293d9f7c5bf18c5eeba5b3df7f
parent1216125f6eae4e8520356936caace36d74e62f11
parenta2a630c83c87285ba95ada59810e5aae4a8dcb03
Merge branch 'buildserver-qemu-kvm' into 'master'

buildserver running in qemu/kvm to support KVM on KVM

jenkins.debian.net runs in QEMU/KVM instances, so in order to run the F-Droid buildserver there, it needs to work inside of a KVM guest.  The best way I found to do that is to create QEMU/KVM instances via KVM's "nested" virtualization support.  This collection of commits enables using QEMU/KVM as the buildserver when `./makebuildserver` detects that it is running inside of KVM.  Otherwise, the old behavior is default: running in VirtualBox.

I have run these tests inside of ubuntu/16.04 on bare metal, which uses VirtualBox, and ubuntu/16.04 KVM guest, which uses QEMU/KVM.  It'll also run on the Guardian Project jenkins box, which is Debian/jessie.

@mvdan @CiaranG @krt

See merge request !168
makebuildserver