Buildbot Setup for Virtual Machines - Fedora 20

Base install

qemu-img create -f qcow2 /kvm/vms/vm-fedora20-i386-serial.qcow2 20G
qemu-img create -f qcow2 /kvm/vms/vm-fedora20-amd64-serial.qcow2 20G

Start each VM booting from the server install iso one at a time and perform the following install steps:

kvm -m 2048 -hda /kvm/vms/vm-fedora20-i386-serial.qcow2 -cdrom /ds413/iso/fedora/Fedora-20-i386-DVD.iso -redir tcp:2291::22 -boot d -smp 2 -cpu qemu64 -net nic,model=virtio -net user
kvm -m 2048 -hda /kvm/vms/vm-fedora20-amd64-serial.qcow2 -cdrom /ds413/iso/fedora/Fedora-20-x86_64-DVD.iso -redir tcp:2292::22 -boot d -smp 2 -cpu qemu64 -net nic,model=virtio -net user

Once running you can connect to the VNC server from your local host with:

vncviewer -via ${remote-host} localhost

Replace ${remote-host} with the host the vm is running on.

Note: When you activate the install, vncviewer may disconnect with a complaint about the rect being too large. This is fine. The Fedora installer has just resized the vnc screen. Simply reconnect.

Install, picking default options mostly, with the following notes:

  • Set the language to English(US)

  • Set the timezone to Etc/Greenwich Mean Time timezone

  • Change "Software Selection" to "Minimal Install" (default is "Gnome Desktop")

  • Under "Network Configuration" set the hostnames to fedora20-amd64 and fedora20-i386

  • For "Installation Destination" select the disk then click continue.

    • On "Installation Options" screen, select the "Partition scheme" drop-down menu and select "Standard Partition". We do not want LVM.

    • do not check the encryption checkbox

  • Select the "Begin installation" button to start the install

  • While installing, set the root password and an initial user.

    • Be sure the initial user is an administrator

When the install is finished, you will be prompted to reboot. Go ahead and do so, but it will fail. Kill the VM after the reboot fails and start it up again with:

Log in using the initial user created during the install:

After logging in, add the initial user to the "wheel" group.

Enable password-less sudo for the "wheel" group and serial console sudo:

Edit /boot/grub/menu.lst:

Logout and then, from the VM host server:

Create a .ssh folder:

Copy over the authorized keys file:

Set permissions on the .ssh folder correctly:

Create the buildbot user:

su to the local buildbot user and ssh to the vm to put the key in known_hosts:

For i386:

For amd64:

Upload the ttyS0 file and put it where it goes:

Update the VM:

Once logged in:

Change selinux policy to permissive:

After updating, exit, then shut down the VM:

VMs for building .rpms

VMs for install testing.

VMs for MariaDB upgrade testing (Fedora repo)

VMs for MariaDB upgrade testing (MariaDB repo)

This page is licensed: CC BY-SA / Gnu FDL

Last updated

Was this helpful?