Machine/bender/Buildslave-debian-squeeze-64bit

Description
buildslave-debian-squeeze-64bit is a 64bit VM running Debian squeeze for the BuildBot network.

Base system
sudo virt-install --ram=512 --name=buildslave-debian-squeeze-64bit --arch=x86_64 \ --vcpus=1 --hvm --accelerate --disk pool=default,size=16 \ --network=network:default --vnc \ --location=http://ftp.it.debian.org/debian/dists/squeeze/main/installer-amd64/

This will create a new VM and run the Debian installer inside it, with the "console" attached via virt-view (non-graphical installation doesn't work, probably because serial console isn't used by default). If you don't have a US keyboard virt-view won't work properly for you and you have to use VNC directly:


 * 1) Close virt-view
 * 2) Determine the VNC port used for this VM (VNC port = 5900 + number shown by virsh, e.g. 5905 for :5):
 * 3) Set up ssh port forwarding for the VNC port:
 * 4) Start VNC client:

Config options:
 * english, Italy, US keyboard (American English)
 * buildslave-debian-squeeze-64bit.local
 * use entire disk, all in one, noatime + user_xattr
 * user "administrator" (not used) with root password
 * no survey
 * no package sets, not even "Standard system"

Start again after installation: sudo virsh start buildslave-debian-squeeze-64bit

Reconnect VNC client: vncviewer :30


 * Because squeeze is currently testing and the installer defaults to stable we have actually installed lenny and need to upgrade to squeeze:
 * 1) Replace lenny with squeeze in /etc/apt/sources.list, remove the volatile repositories
 * 2) aptitude update
 * 3) aptitude safe-upgrade
 * 4) aptitude dist-upgrade (usually noop)

aptitude install openssh-server git-core etckeeper
 * Install packages for next steps:
 * change /boot/grub/menu.lst (and run update-grub) to add  to kernel options