Menü Schließen

oVirt All-in-One Installation auf CentOS 7

CentOS Logo

Nachfolgend eine kurze Anleitung zur Installation von oVirt 3.6 auf CentOS 7 als All-in- One Installation. Dies bedeutet, dass die Host-Engine auf dem selben Host und nicht wie bei der Self-Hosted Installation in einer virtuellen Maschine läuft. Nachteil, kein HA und ab oVirt 4.x wird diese All-in-One Lösung nicht mehr zur Verfügung stehen. D.h. wenn man nicht auf weitere Server für die Engine und Storage setzen kann / möchte, geht es dann nur noch über eine Nested-VM auf dem selben Host.

Voraussetzungen

oVirt Host = ovirt1.myDomain.com
NFS ISO Pfad = /var/ovirt/exports/iso
NFS DATA Pfad = /var/ovirt/exports/data

Hostnamen prüfen

Der Hostname muss auflösbar sein, also der Name des Systems in eine IP-Adresse. Dies kann durch einen DHCP /DNS mit Reservierung passieren oder statisch in die hosts eingetragen werden.

# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.0.10 ovirt1.localdomain # statischer Eintrag for ovirt1

VM Erweiterung prüfen

Prüfen ob die CPU AMD-V oder Intel VT-X kann bzw. ob es im BIOS aktiviert wurde:

# egrep -c ‘(vmx|svm)’ /proc/cpuinfo
4
Wenn die 4 angezeigt wird, bedeutet dies das die CPU virtualisierung unterstützt und im BIOS aktiviert wurde.

Installation oVirt All-In-One

  • System aktualisieren
    • # yum -y update
    • # reboot
  • oVirt 3.6 Repository hinzufügen
    • # yum -y install http://plain.resources.ovirt.org/pub/yumrepo/ovirtrelease36.rpm
  • notwendige Pakete installieren
    • # yum install -y ovirt-engine ovirt-engine-setup-plugin-allinone nfs-utils htop
  • NFS Share für ISO erstellen und berechtigen vdsm user (UID 36) and kvm group (GID 36)
    • # mkdir -p /var/ovirt/exports/iso
    • # chown -R 36:36 /var/ovirt/exports/iso
  • NFS Export für ISO in etc/exports erstellen
    • für jeden /var/ovirt/exports/iso *(rw)
    • oder nur für den Host /var/ovirt/exports/iso IP-Adresse/24(rw,anonuid=36,anongid=36,all_squash)
  • NFS Share für Data erstellen und berechtigen vdsm user (UID 36) and kvm group (GID 36)
    • # mkdir -p /var/ovirt/exports/data
    • # chown -R 36:36 /var/ovirt/exports/data
  • NFS Export für ISO in etc/exports erstellen
    • für jeden /var/ovirt/exports/data *(rw)
    • oder nur für den Host /var/ovirt/exports/data IP-Adresse/24(rw,anonuid=36,anongid=36,all_squash)
  • Boot-Scripts konfigurieren sodass nfs und rpcbind beim Boot starten
    • # systemctl start rpcbind.service
    • # systemctl enable rpcbind.service
    • # systemctl start nfs-server.service
    • # systemctl enable nfs-server.service
    • exportfs -rv
  • Install oVirt All-In-One
    • #engine-setup
      [ INFO  ] Stage: Initializing
      [ INFO  ] Stage: Environment setup
      Configuration files: [‘/etc/ovirt-engine-setup.conf.d/10-packaging-aio.conf’, ‘/etc/ovirt-engine-setup.conf.d/10-packaging-jboss.conf’, ‘/etc/ovirt-engine-setup.conf.d/10-packaging.conf’]
      Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20151208232414-ugaxg3.log
      Version: otopi-1.4.0 (otopi-1.4.0-1.el7.centos)
      [ INFO  ] Hardware supports virtualization
      [ INFO  ] Stage: Environment packages setup
      [ INFO  ] Stage: Programs detection
      [ INFO  ] Stage: Environment setup
      [ INFO  ] Stage: Environment customization
      –== PRODUCT OPTIONS ==
      Configure Engine on this host (Yes, No) [Yes]:

      Configure VM Console Proxy on this host (Yes, No) [Yes]:
      Configure WebSocket Proxy on this host (Yes, No) [Yes]:

      == PACKAGES ==–
      [ INFO  ] Checking for product updates…
      [ INFO  ] No product updates found–== ALL IN ONE CONFIGURATION ==–
      Configure VDSM on this host? (Yes, No) [No]: yes
      Local storage domain path [/var/lib/images]:/var/ovirt/exports/data
      Local storage domain name [local_storage]:

      –== NETWORK CONFIGURATION ==–Host fully qualified DNS name of this server [fqdn]:
      Setup can automatically configure the firewall on this system.
      Note: automatic configuration of the firewall may overwrite current settings.
      Do you want Setup to configure the firewall? (Yes, No) [Yes]:
      [ INFO  ] firewalld will be configured as firewall manager.
      –== DATABASE CONFIGURATION ==–
      Where is the Engine database located? (Local, Remote) [Local]:
      Setup can configure the local postgresql server automatically for the engine to run. This may conflict with existing applications.
      Would you like Setup to automatically configure postgresql and create Engine database, or prefer to perform that manually? (Automatic, Manual) [Automatic]:–== OVIRT ENGINE CONFIGURATION ==–Application mode (Virt, Gluster, Both) [Both]:
      Engine admin password:
      Confirm engine admin password:
      –== STORAGE CONFIGURATION ==–Default SAN wipe after delete (Yes, No) [No]:

      –== PKI CONFIGURATION ==–

      Organization name for certificate [organization]:

      –== APACHE CONFIGURATION ==–

      Setup can configure apache to use SSL using a certificate issued from the internal CA.
      Do you wish Setup to configure that, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
      Setup can configure the default page of the web server to present the application home page. This may conflict with existing applications.
      Do you wish to set the application as the default page of the web server? (Yes, No) [Yes]:

      –== SYSTEM CONFIGURATION ==–

      Configure an NFS share on this server to be used as an ISO Domain? (Yes, No) [Yes]:no
      Local ISO domain path [/var/lib/exports/iso]: /var/ovirt/exports/iso

      Please provide the ACL for the Local ISO domain.
      See the exports(5) manpage for the format.
      Examples:
      – To allow access for host1, host2 and host3, input: host1(rw) host2(rw) host3(rw)
      – To allow access to the entire Internet, input: *(rw)

      For more information, see: http://www.ovirt.org/Troubleshooting_NFS_Storage_Issues

      Local ISO domain ACL: rw,anonuid=36,anongid=36,all_squash
      Local ISO domain name [ISO_DOMAIN]:

      –== MISC CONFIGURATION ==–

      –== END OF CONFIGURATION ==–

      [ INFO  ] Stage: Setup validation

      –== CONFIGURATION PREVIEW ==–

      Application mode                        : both
      Default SAN wipe after delete           : False
      Firewall manager                        : firewalld
      Update Firewall                         : True
      Host FQDN                               : ovirt1.myDomain.com
      Engine database secured connection      : False
      Engine database host                    : localhost
      Engine database user name               : engine
      Engine database name                    : engine
      Engine database port                    : 5432
      Engine database host name validation    : False
      Engine installation                     : True
      PKI organization                        : plab.net
      Configure VDSM on this host             : True
      Local storage domain directory          : /var/ovirt/exports/data
      Configure local Engine database         : True
      Set application as default page         : True
      Configure Apache SSL                    : True
      Configure VMConsole Proxy               : True
      Engine Host FQDN                        : ovirt1.myDomain.com
      Configure WebSocket Proxy               : True

                Please confirm installation settings (OK, Cancel) [OK]:

    • ….[ INFO  ] Execution of setup completed successfully

weiteren Schritte über die WebGUI

  • Login über https://servername und Login im Administrator Portal
  • Data-Center -> Status des Datacenter mit obigem Namen local_datacenter sollte auf UP sein
  • Cluster -> local_cluster sollte 1 Host anzeigen
  • Host -> local_host sollte als UP angezeigt werden
  • Netzwerk -> ovirtmgmt sollte vorhanden und mit Rolle VM gekennzeichnet sein
  • Speicher -> local_storage als Data Domain sollte Active sein
    • ISO Domain anlegen
      • Neue Domain
      • Data-Center = local_datacenter(Lokal)
      • Domainfunktion = ISO
      • Speichertyp = NFS
      • Host verwenden = local_host
      • Exportpfad = fqdn://var/ovirt/exports/iso
      • Status nach ein paar Sekunden  = UP

Damit ist die grundlegende Installation von oVirt als All-In-One Version erledigt.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert