Sysadmin/Add virtual machine

From Sugar Labs

Jump to: navigation, search

Authorization

First, ask User:dogi for permission to allocate resources for a new VM. He's the owner of the physical machines which hosts Sugar Labs and other organizations.

Create new VM on Machine/treehouse or Machine/housetree

This procedure creates a clone of the Sysadmin/Template virtual machine.

virsh vol-create-as treehouse FOOBAR-root 10G
virt-clone --prompt -o template-lucid --file=/dev/treehouse/FOOBAR-root -n FOOBAR
virsh start --console FOOBAR
vi /etc/network/interfaces
sed -i -e s/template-lucid/FOOBAR/ /etc/hostname /etc/postfix/main.cf
vim /etc/hosts
/etc/init.d/networking restart

aptitude update
aptitude full-upgrade
ssh-keygen -N "" -f /etc/ssh/ssh_host_rsa_key -t rsa
ssh-keygen -N "" -f /etc/ssh/ssh_host_dsa_key -t dsa
ssh-keygen -N "" -f /root/.ssh/id_rsa -t rsa
vi /etc/system-full-backup.conf
ssh sugarbackup@backup.sugarlabs.org
vi /etc/crontab
vi /etc/motd.tail
reboot
[housetree.sugarlabs.org]
       address housetree.sugarlabs.org

See also: Sysadmin/Delete virtual machine, Sysadmin/Migrate_virtual_machine.

Personal tools
Namespaces
Variants
Actions
Sugar
Projects
Teams
Local Labs
Using the Wiki
Google translations