Buildbot Setup for Virtual Machines - Fedora 16

Base install

qemu-img create -f qcow2 /kvm/vms/vm-fedora16-i386-serial.qcow2 10G
qemu-img create -f qcow2 /kvm/vms/vm-fedora16-amd64-serial.qcow2 10G

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

kvm -m 1024 -hda /kvm/vms/vm-fedora16-i386-serial.qcow2 -cdrom /kvm/iso/fedora/Fedora-16-i386-DVD.iso -redir tcp:2263::22 -boot d -smp 2 -cpu qemu32,-nx -net nic,model=virtio -net user
kvm -m 1024 -hda /kvm/vms/vm-fedora16-amd64-serial.qcow2 -cdrom /kvm/iso/fedora/Fedora-16-x86_64-DVD.iso -redir tcp:2264::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:

  • The Installer will throw up a "Storage Device Warning", choose "Yes, discard any data"

  • Set the hostname to fedora16-amd64 (or fedora16-i386)

  • Click the "Configure Network" button on the Hostname screen.

    • Edit System eth0 to "connect automatically"

    • Apply and then close the "Network Connections" window

  • When partitioning disks, choose "Use All Space"

    • uncheck the "Use LVM" checkbox

    • do not check the "Encrypt system" checkbox

  • Minimal install

  • Customize Later

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:

Until the extra user is installed you must connect via VNC as before. SSH is preferred, so that's what we'll do first. Login as root.

After logging in as root, install proper ssh and then create a local user:

Enable password-less sudo and serial console:

Still logged in as root, add to /boot/grub/menu.lst:

Editing /boot/grub/menu.lst:

Logout as root, 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:

After updating, shut down the VM:

VMs for building .rpms

Also:

VMs for install testing.

MariaDB.local.repo points at a local directory on the VM. MariaDB.repo points at the real MariaDB YUM repository.

VMs for MySQL upgrade testing

The MariaDB upgrade testing VMs were not built. Once we have MariaDB Fedora 16 RPMs, then I will attempt building this VM. For now, the placeholder text below is copied from the Buildbot Setup for Virtual Machines - CentOS 6.2 page.

VMs for MariaDB upgrade testing

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

Last updated

Was this helpful?