Buildbot Setup for Virtual Machines - Fedora 19
Base install
qemu-img create -f qcow2 /kvm/vms/vm-fedora19-i386-serial.qcow2 20G
qemu-img create -f qcow2 /kvm/vms/vm-fedora19-amd64-serial.qcow2 20GStart 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-fedora19-i386-serial.qcow2 -cdrom /ds413/iso/fedora/Fedora-19-i386-DVD.iso -redir tcp:2289::22 -boot d -smp 2 -cpu qemu64 -net nic,model=virtio -net user
kvm -m 2048 -hda /kvm/vms/vm-fedora19-amd64-serial.qcow2 -cdrom /ds413/iso/fedora/Fedora-19-x86_64-DVD.iso -redir tcp:2290::22 -boot d -smp 2 -cpu qemu64 -net nic,model=virtio -net userOnce running you can connect to the VNC server from your local host with:
vncviewer -via ${remote-host} localhostReplace ${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:
Under "Network Configuration" set the hostnames to fedora19-amd64 and fedora19-i386
Change "Software Selection" to "Minimal Install" (default is "Gnome Desktop")
For "Installation Destination" select the disk then click continue.
do not check the encryption checkbox
On "Installation Options" screen, expand the "Partition scheme configuration" box and select a "Partition type" of "Standard Partition"
While installing, set the root password and an initial user
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:
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 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:
Change selinux policy to permissive:
After updating, shut down the VM:
VMs for building .rpms
VMs for install testing.
VMs for MySQL upgrade testing
VMs for MariaDB upgrade testing
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?

