Buildbot Setup for Virtual Machines - CentOS 6.2
Base install
qemu-img create -f qcow2 /kvm/vms/vm-centos6-amd64-serial.qcow2 8G
qemu-img create -f qcow2 /kvm/vms/vm-centos6-i386-serial.qcow2 8GStart 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-centos6-amd64-serial.qcow2 -cdrom /kvm/iso/centos/CentOS-6.2-x86_64-bin-DVD1.iso -redir tcp:22255::22 -boot d -smp 2 -cpu qemu64 -net nic,model=virtio -net user
kvm -m 1024 -hda /kvm/vms/vm-centos6-i386-serial.qcow2 -cdrom /kvm/iso/centos/CentOS-6.2-i386-bin-DVD1.iso -redir tcp:22256::22 -boot d -smp 2 -cpu qemu32,-nx -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 CentOS 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 centos6-amd64 (or centos6-i386)
Click the "Configure Network" button on the Hostname screen.
Edit System eth0 to "connect automatically"
Apply and then close the "Network Connections" window
Set Timezone to Europe/Helsinki (keep "System clock uses UTC" checked)
When partitioning disks, choose "Use All Space"
do not check the "Encrypt system" checkbox
do check the "Review and modify partitioning layout" checkbox
Delete the LVM stuff and leaving the sda1 partition alone, repartition the physical volume as follows
sda2
5672
/
ext4
yes
sda3
(max allowable)
(n/a)
swap
yes
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:
You may connect via VNC as before, but ssh is probably preferred. Login as root.
Now that the VM is installed, it's time to configure it.
After logging in as root, create a local user
Enable password-less sudo and serial console:
Still logged in as root, add to /boot/grub/menu.lst:
also add in menu.lst to kernel line (after removing 'quiet'):
Add login prompt on serial console:
Logout as root, and then, from the VM host server:
Install proper ssh:
Create a .ssh folder:
Copy over the authorized keys file:
Set permissions on the .ssh folder correctly:
Create the buildbot user:
Upload the ttyS0.conf 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. There is currently an error with installing MariaDB from the YUM repo.
VMs for MariaDB upgrade testing
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?

