Machine/bender/Buildslave-fedora-11-64bit

From Sugar Labs
Jump to: navigation, search

Description

buildslave-fedora-11-64bit is a 64bit VM running Fedora 11 for the BuildBot network.

Installation

Base system

sudo virt-install --ram=512 --name=buildslave-fedora-11-64bit --arch=x86_64 \
  --vcpus=1 --hvm --accelerate --disk pool=qcow-images,size=10 \
  --network=network:default --vnc \
  --location=http://fedora.mirror.garr.it/mirrors/fedora/linux/releases/11/Fedora/x86_64/os

This will create a new VM and run the Fedora installer inside it, with the "console" attached via virt-view. 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, US keyboard
  • buildslave-fedora-10-64bit.sugarlabs.org
  • Etc/UTC
  • manual layout, swap 512M, / ext3 max size
  • no tasks
  • F11 and F11 updates repo, customize now
  • only Base system / {Base,Fonts,X11}

Start again after installation:

sudo virsh start buildslave-fedora-10-64bit

Reconnect VNC client:

vncviewer :30
  • Auth: MD5, no fingerprint reader
  • disable firewall
  • services: no {cups,netfs,nfslock,pcscd,portreserve,rpc*,sendmail}
  • log in as root
  • install packages for next steps:
yum install openssh-server git rpm-build
  • log in via ssh
  • install etckeeper:
wget -nd https://www.develer.com/~bernie/pub/fedora/source/etckeeper-0.37-1.fc11.src.rpm
rpm -ivh etckeeper-0.37-1.fc11.src.rpm
cd rpmbuild/SPECS
rpmbuild -ba etckeeper.spec
rpm -i /root/rpmbuild/RPMS/x86_64/etckeeper-0.37-1.fc11.x86_64.rpm
  • change /boot/grub/menu.lst to add console=ttyS0,115200 to kernel options