Configurare Buildbot per le macchine virtuali - CentOS 5 i386
Installazione di base
cd /kvm qemu-img create -f qcow2 vms/vm-centos5-i386-base.qcow2 8G # ISO (dvd) install: kvm -m 2047 -hda /kvm/vms/vm-centos5-i386-base.qcow2 -cdrom CentOS-5.3-i386-bin-DVD.iso -redir 'tcp:2225::22' -boot d -smp 2 -cpu qemu32,-nx -net nic,model=virtio -net user
Configurare la console seriale
(cd vms && qemu-img create -b vm-centos5-i386-base.qcow2 -f qcow2 vm-centos5-i386-serial.qcow2) kvm -m 2047 -hda /kvm/vms/vm-centos5-i386-serial.qcow2 -cdrom CentOS-5.3-i386-bin-DVD.iso -redir 'tcp:2225::22' -boot c -smp 2 -cpu qemu32,-nx -net nic,model=virtio -net user -nographic
Aggiungere a /boot/grub/menu.lst:
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 terminal --timeout=3 serial console
Aggiungere in menu.lst alla riga del kernel (dopo aver cancellato `quiet splash'):
console=tty0 console=ttyS0,115200n8
Aggiungere il prompt del login alla console seriale:
cat >>/etc/inittab <<END # Console seriale S0:2345:respawn:/sbin/agetty -h -L ttyS0 19200 vt100 END
Creare un account.
useradd buildbot # Password is disabled by default in Centos5. usermod -a -G wheel buildbot visudo # Decommentare la riga "%wheel ALL=(ALL) NOPASSWD: ALL" # Commentare questa riga: # Defaults requiretty # Mettere in public la chiave ssh per il proprio account e l'account di buildbot # Notare che Centos5 richiede .ssh/authorized_keys chmod go-rwx. su - buildbot mkdir .ssh chmod go-rwx .ssh cat >.ssh/authorized_keys # Paste the id_dsa.pub key, see above. chmod go-rwx .ssh/authorized_keys
Immagine per la build rpm
qemu-img create -b vm-centos5-i386-serial.qcow2 -f qcow2 vm-centos5-i386-build.qcow2 kvm -m 2047 -hda /kvm/vms/vm-centos5-i386-build.qcow2 -cdrom /kvm/CentOS-5.3-i386-bin-DVD.iso -redir 'tcp:2225::22' -boot c -smp 2 -cpu qemu32,-nx -net nic,model=virtio -net user -nographic
Installare i compilatori, etc:
sudo yum groupinstall "Development Tools" sudo yum install gperf readline-devel ncurses-devel zlib-devel libaio-devel openssl-devel perl perl\(DBI\)
Scaricare l'rpm 5.0 per shared-compat:
sudo mkdir -p /srv/shared/yum/CentOS/5/i386/RPMS/
cd /srv/shared/yum/CentOS/5/i386/RPMS/
sudo wget http://mirror.ourdelta.org/yum/CentOS/5/i386/RPMS/MySQL-OurDelta-shared-5.0.87.d10-65.el5.i386.rpm
Immagine per installare e testare
qemu-img create -b vm-centos5-i386-serial.qcow2 -f qcow2 vm-centos5-i386-install.qcow2 kvm -m 2047 -hda /kvm/vms/vm-centos5-i386-install.qcow2 -cdrom /kvm/CentOS-5.3-i386-bin-DVD.iso -redir 'tcp:2225::22' -boot c -smp 2 -cpu qemu32,-nx -net nic,model=virtio -net user -nographic
Installare le dipendenze aggiuntive:
sudo yum install perl perl\(DBI\)
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.