Infrastructure Team/Template virtual machine lucid: Difference between revisions

Dogi (talk | contribs)
Created page with 'This procedure documents how our template Karmic image was created and configured == VM Creation == virt-install --prompt -v --accelerate --nographics -x console=ttyS0,115200 …'
 
Dogi (talk | contribs)
No edit summary
Line 4: Line 4:


  virt-install --prompt -v --accelerate --nographics -x console=ttyS0,115200 \
  virt-install --prompt -v --accelerate --nographics -x console=ttyS0,115200 \
   --name template-karmic --vcpus=4 --ram $((1*1024)) \
   --name template-lucid --vcpus=4 --ram $((1*1024)) \
   --os-type=linux --os-variant=ubuntujaunty --network bridge:br0 \
   --os-type=linux --os-variant=ubuntujaunty --network bridge:br0 \
   --disk path=/srv/vm/template-karmic.qcow2,bus=virtio,sparse=true,size=10 \
   --disk path=/srv/vm/template-lucid.qcow2,bus=virtio,sparse=true,size=10 \
   --location http://ubuntu.media.mit.edu/ubuntu/dists/karmic/main/installer-amd64/
   --location http://ubuntu.media.mit.edu/ubuntu/dists/lucid/main/installer-amd64/
 
ip adresse: 140.186.70.109
 
We install with the minimun of needed package setup:
* ubuntu basic server -> since we use ubuntu server, we want ubuntu basic
* openssh server -> for remote access


After installation:
After installation:


  virsh start --console template-karmic
  virsh start --console template-lucid




Line 19: Line 25:


  sudo -i
  sudo -i
  aptitude install etckeeper bash-completion git-core strace munin-node duplicity postfix vim devtodo
  aptitude install etckeeper bash-completion git-core strace munin-node duplicity postfix vim devtodo
  aptitude purge memtest86+
  aptitude purge memtest86+
  update-alternatives --set editor /usr/bin/vim.basic
  update-alternatives --set editor /usr/bin/vim.basic
<- template-lucid changes


* Remove restricted repositories from /etc/apt/sources.list (fsf asks us to avoid using non-free software).
* Remove restricted repositories from /etc/apt/sources.list (fsf asks us to avoid using non-free software).
Line 43: Line 52:
     netmask 16
     netmask 16
     gateway ::192.88.99.1
     gateway ::192.88.99.1
     local 140.186.70.108
     local 140.186.70.109
     endpoint any
     endpoint any