Buildbot Setup for Virtual Machines - Fedora 18
Base install
qemu-img create -f qcow2 /kvm/vms/vm-fedora18-i386-serial.qcow2 10G
qemu-img create -f qcow2 /kvm/vms/vm-fedora18-amd64-serial.qcow2 10GStart 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-fedora18-i386-serial.qcow2 -cdrom /kvm/iso/fedora/Fedora-18-i386-DVD.iso -redir tcp:2277::22 -boot d -smp 2 -cpu qemu64 -net nic,model=virtio -net user
kvm -m 2048 -hda /kvm/vms/vm-fedora18-amd64-serial.qcow2 -cdrom /kvm/iso/fedora/Fedora-18-x86_64-DVD.iso -redir tcp:2278::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 fedora18-amd64 and fedora18-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
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 a non-root user is installed you must connect as root. 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
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?

