Buildbot Setup for Virtual Machines - Red Hat
This section documents the exact steps used to set up each virtual machine used in the MariaDB Buildbot for building packages and testing. There are lots of boring details, but the information here should be useful for reference, and as a help when installing new virtual images for additional distros and versions.
The articles here document how the virtual machine images were actually set up, not the most efficient way to recreate all of them. Thus, some historical artifacts remain, reflecting the order they were initially added and lessons learned along the way.
For example, the steps for the earliest VMs are somewhat overly enthusiastic about using the `qemu-img create -b` option to make one vm a copy-on-write copy on top of another image. This makes it harder to modify the images afterwards, since if the base image is modified, any copy-on-write vm on top of it needs to be re-created.
The descriptions do not go into painful detail about the installation procedure. Generally the .iso for the distro was downloaded, and the default, non-graphical installer started. Installing Linux these days is quite easy, and generally just defaults were picked. With respect to harddisk partitioning, generally an 8Gb image was configured, of which 1/2 Gb was reserved for swap and the rest for a single root partition "/".
For details on setting up a host server to run these VMs, see Buildbot Setup for VM host.
-
Buildbot Setup for Virtual Machines - Fedora 20
Base install qemu-img create -f qcow2 /kvm/vms/vm-fedora20-i386-ser -
Buildbot Setup for Virtual Machines - Fedora 19
Base install qemu-img create -f qcow2 /kvm/vms/vm-fedora19-i386-ser -
Buildbot Setup for Virtual Machines - Fedora 18
Base install qemu-img create -f qcow2 /kvm/vms/vm-fedora18-i386-ser -
Buildbot Setup for Virtual Machines - Fedora 17
Base install qemu-img create -f qcow2 /kvm/vms/vm-fedora17-i386-ser -
Buildbot Setup for Virtual Machines - Fedora 16
Base install qemu-img create -f qcow2 /kvm/vms/vm-fedora16-i386-ser -
Buildbot Setup for Virtual Machines - CentOS 6.2
Base install qemu-img create -f qcow2 /kvm/vms/vm-centos6-amd64-ser -
Buildbot Setup for Virtual Machines - Red Hat 6 x86
The following steps were used to create a Red Hat 6 x86 buildslave. Initial Setup cd vms q -
Buildbot Setup for Virtual Machines - CentOS 5 i386
Base install cd /kvm qemu-img create -f qcow2 vms/vm-centos5-i386-ba -
Buildbot Setup for Virtual Machines - Centos 5 amd64
Base install cd /kvm wget http://ftp.klid.dk/ftp/centos/5.3/isos/x86