Benutzer-Werkzeuge

Webseiten-Werkzeuge


doku:rz:vm-creation

vmdoku

Dokumentation, wie im RZ bisher VMs angelegt werden. Stand: 01.11.2017

puppet icinga

ibu (dns) phenyl plattenschwein infra01 (dns2)

icinga_servicestatus

  .instance_id .service_object_id .output . current_state
  where current_state != 0
  service_object_id -> icinga_services.service_id

icinga_hosts

  .display_name .host_id

ro fs fix:

  ssh -X root@VMhost
  virt-manager
  vm shutdown & start

updates:

  icinga.shack...
  cssh root@host
  aptitude update
  aptitude safe-upgrade
  reboot ibu, phenyl, infra01

icinga mails disablen

  ssh icinga
  mv /etc/icinga2/conf.d/notifications.conf notifications.conf_

icinga check:

  ssh root@icinga.shack
  icinga2 daemon -C

neue VM:

      virt-manager wenn möglich vom VMhost verwenden (mit X forwarding)
      check load on ibu & phenyl -> decide
      virt-manager connect to VMhost
      virt-manager -> new
              PXE
              256 MB RAM & 1CPU
              managed or existing storage -> pool0 -> new volume (10GB)
              network: shared device name: br0
      pxe boot -> debian jessie amd64
      mirror ftp-stud.hs-esslingen.de
      proxy -> http://aptcache.shack
      root pass -> keepass
      user "shack" pass -> keepass root pass
      partition: guided lvm; all in one
      apt: standard utilities & ssh server
      aptitude install curl
      curl http://shack.shack/install/puppet | sh (| = Shift #)
      puppet agent --test
      IP configen:
              ssh git@rzgit.shack
              neue IP in Dokumente/shack/rz/../adressen eintragen
              IP auf root@dns.shack eintragen /etc/bind/pri/db.shack
                      Serial inkrementieren/anpassen (Datum)
                      rndc reload
              IP in /etc/network/interfaces eintragen
                      "iface eth0 inet static
                      "       address $ip
                      "       netmask 255.255.240.0
                      "       gateway 10.42.0.1
              (vim : = Ö)
      reboot
      IPv6 auf dns.shack eintragen (analog IPv4)
      SSH Key von Owner auf root eintragen / shack user anlegen
      Monitoring eintragen:
      ssh icinga.shack
      cd /etc/icinnga2/conf.d/hosts/$VMhost
      cp $item.conf $new.conf
      edit $new.conf
      icinga2 daemon -C && systemctl reload icinga2.service
      Backup einrichten:
      ssh plattenschwein.shack
      cd /etc/rsnapshot/backup-available
      cp 00example.conf $new.shack.conf
      vim $new.shack.conf
              :%s/<host>/$new/gc
              (last line delete / edit)
      ln -s available -> enabled      (cd enabled; ln -s ../backup-available/$new.shack.conf)
      rsnapshot -V -c /etc/rsnapshot/backup-enabled/$new.shack.conf sync (on error mkdir missing)
      rsnapshot -V -c /etc/rsnapshot/backup-enabled/$new.shack.conf hourly (geht auch am ende)
      vim /etc/nagios/nrpe.d/rsnapshot.cfg
              copy: shift + v      y       P / p
      service nagios-nrpe-server reload
      aptitude install resolvconf
              Zusätzliche Daten in /etc/network/interfaces eintragen
                      "iface eth0 inet static
                      "       address $ip
                      "       netmask 255.255.240.0
                      "       gateway 10.42.0.1
                      "       dns-nameservers 10.42.0.100 10.42.0.200
                      "       dns-search shack
      VM in startup
              virt-manager -> vm-settings -> boot options -> boot on startup
doku/rz/vm-creation.txt · Zuletzt geändert: 2017-11-09 01:49 von makefu