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

From Sugar Labs
Jump to: navigation, search

Description

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

Installation

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):
    sudo virsh vncdisplay buildslave-debian-squeeze-64bit
  3. Set up ssh port forwarding for the VNC port:
    ssh -L 5930:localhost:<vnc port> -N <user>@bender.sugarlabs.org
  4. Start VNC client:
    vncviewer :30

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)
  • Install packages for next steps:
aptitude install openssh-server git-core etckeeper
  • change /boot/grub/menu.lst (and run update-grub) to add console=ttyS0,115200 to kernel options