Buildbot Setup for Virtual Machines - FreeBSD 9.2
Base install
qemu-img create -f qcow2 /kvm/vms/vm-freebsd92-amd64-serial.qcow2 15G
qemu-img create -f qcow2 /kvm/vms/vm-freebsd92-i386-serial.qcow2 15GStart 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-freebsd92-amd64-serial.qcow2 -cdrom /kvm/iso/freebsd/9.2/FreeBSD-9.2-RELEASE-amd64-dvd1.iso -boot d -smp 2 -cpu qemu64 -net nic,model=virtio -net user,hostfwd=tcp:127.0.0.1:2283-:22
kvm -m 2048 -hda /kvm/vms/vm-freebsd92-i386-serial.qcow2 -cdrom /kvm/iso/freebsd/9.2/FreeBSD-9.2-RELEASE-i386-dvd1.iso -boot d -smp 2 -cpu qemu64 -net nic,model=virtio -net user,hostfwd=tcp:127.0.0.1:2284-:22Once 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 will disconnect after a bit with a complaint about the rect being too large. This is fine. The installer has just resized the vnc screen. Simply reconnect.
Install, picking default options mostly, with the following notes:
Keymap Selection: Do not set non-default key mapping
Hostname: to freebsd-92-amd64 or freebsd-92-i386
Distribution Select: deselect "games", leave "ports" selected
Partitioning: Guided and use the entire disk
Accept the default partitioning (Finish then Commit)
Archive Extraction: ...wait while installer installs the OS...
Network Configuration: choose
vtnet0configure ipv4 w/ DHCP
do not configure ipv6
System Configuration: leave sshd selected, don't select the others
Dumpdev Configuration: do not enable crash dumps
add a buildbot user
add user to 'wheel' group
Final Configuration: Apply configuration and exit
Manual Configuration: yes to opening a shell
echo 'console="comconsole"' >> /boot/loader.confEdit /etc/ttys and change off to on and dialup to vt100 for the ttyu0 entry.
shutdown -p now
Now that the VM is installed, it's time to configure it. If you have the memory you can do the following simultaneously:
VMs for building BSD bintars
VMs for install testing.
VMs for MySQL upgrade testing
VMs for MariaDB upgrade testing
Add Key to known_hosts
Do the following on each kvm host server (terrier, terrier2, i7, etc...) to add the VMs to known_hosts.
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?

