Configurare Buildbot per le Macchine Virtuali - Ubuntu 9.04 amd64
Installazione base
qemu-img create -f qcow2 vm-jaunty-amd64-serial.qcow2 8G kvm -m 1024 -hda vm-jaunty-amd64-serial.qcow2 -cdrom /kvm/ubuntu-9.04-server-amd64.iso -redir tcp:2227::22 -boot d -smp 2 -cpu qemu64 -net nic,model=virtio -net user
Porta seriale e login/sudo senza password
kvm -m 1024 -hda vm-jaunty-amd64-serial.qcow2 -cdrom /kvm/ubuntu-9.04-server-amd64.iso -redir tcp:2227::22 -boot c -smp 2 -cpu qemu64 -net nic,model=virtio -net user sudo apt-get install emacs22-nox
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 (cancellando `quiet splash'):
console=tty0 console=ttyS0,115200n8
Creare /etc/event.d/ttyS0:
# ttyS0 - getty # # Questo servizio mantiene un getty su ttyS0 dal punto in cui il sistema # viene avviato fino all'arresto. start on stopped rc2 start on stopped rc3 start on stopped rc4 start on stopped rc5 stop on runlevel 0 stop on runlevel 1 stop on runlevel 6 respawn exec /sbin/getty 115200 ttyS0
Aggiungere un account e permettere sudo senza password:
sudo adduser --disabled-password buildbot sudo adduser buildbot sudo sudo EDITOR=emacs visudo # decommentare `%sudo ALL=NOPASSWD: ALL' line in `visudo`, and move to end. sudo su -s /bin/bash - buildbot mkdir .ssh cat >.ssh/authorized_keys # Paste public key for buildbot user on host system. chmod -R go-rwx .ssh # Do manual login from host to guest once, to make sure .ssh/known_hosts is updated.
Le VM per creare i .deb
qemu-img create -b vm-jaunty-amd64-serial.qcow2 -f qcow2 vm-jaunty-amd64-build.qcow2 kvm -m 1024 -hda vm-jaunty-amd64-build.qcow2 -cdrom /kvm/ubuntu-9.04-server-amd64.iso -redir tcp:2227::22 -boot c -smp 2 -cpu qemu64 -net nic,model=virtio -net user -nographic sudo apt-get build-dep mysql-server-5.1
Le VM per testare l'installazione
qemu-img create -b vm-jaunty-amd64-serial.qcow2 -f qcow2 vm-jaunty-amd64-install.qcow2 kvm -m 1024 -hda vm-jaunty-amd64-install.qcow2 -cdrom /kvm/ubuntu-9.04-server-amd64.iso -redir tcp:2227::22 -boot c -smp 2 -cpu qemu64 -net nic,model=virtio -net user -nographic sudo adduser --system --group mysql
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.