Installing Red Hat Virtualization As a Self- Hosted Engine Using the Cockpit Web Interface
Total Page:16
File Type:pdf, Size:1020Kb
Red Hat Virtualization 4.3 Installing Red Hat Virtualization as a self- hosted engine using the Cockpit web interface How to use Cockpit to install the Red Hat Virtualization Manager as a virtual machine running on the same hosts it manages Last Updated: 2019-05-09 Red Hat Virtualization 4.3 Installing Red Hat Virtualization as a self-hosted engine using the Cockpit web interface How to use Cockpit to install the Red Hat Virtualization Manager as a virtual machine running on the same hosts it manages Red Hat Virtualization Documentation Team Red Hat Customer Content Services [email protected] Legal Notice Copyright © 2019 Red Hat, Inc. The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/ . In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. MySQL ® is a registered trademark of MySQL AB in the United States, the European Union and other countries. Node.js ® is an official trademark of Joyent. Red Hat Software Collections is not formally related to or endorsed by the official Joyent Node.js open source or commercial project. The OpenStack ® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community. All other trademarks are the property of their respective owners. Abstract This document describes how to install a self-hosted engine environment - where the Red Hat Virtualization Manager (or "engine") is installed on a virtual machine that runs on specialized hosts in the same environment it manages - using the Cockpit web interface to configure and run an automated installation. If this is not the configuration you want to use, see the other Installation Options in the Product Guide. Table of Contents Table of Contents .P .R . E. .F . A. .C . E. .4 . SELF-HOSTED ENGINE ARCHITECTURE 4 .C . H. .A . P. .T .E . R. 1.. .I .N . S. .T .A . L. .L .A . .T .I O. N. O. .V . .E .R . V. .I E. .W . 6. .C . H. .A . P. .T .E . R. 2. R. .E . Q. .U . .I R. .E .M . .E . N. .T . S. 8. 2.1. RED HAT VIRTUALIZATION MANAGER REQUIREMENTS 8 2.1.1. Hardware Requirements 8 2.1.2. Browser Requirements 8 2.1.3. Client Requirements 9 2.1.4. Operating System Requirements 10 2.2. HOST REQUIREMENTS 10 2.2.1. CPU Requirements 10 2.2.1.1. Checking if a Processor Supports the Required Flags 11 2.2.2. Memory Requirements 11 2.2.3. Storage Requirements 11 2.2.4. PCI Device Requirements 12 2.2.5. Device Assignment Requirements 12 2.2.6. vGPU Requirements 13 2.3. NETWORKING REQUIREMENTS 13 2.3.1. Firewall Requirements for DNS, NTP, and IPMI Fencing 13 2.3.2. Red Hat Virtualization Manager Firewall Requirements 14 2.3.3. Host Firewall Requirements 17 2.3.4. Database Server Firewall Requirements 20 .C . H. .A . P. .T .E . R. 3. P. .R . E. .P . A. .R . I.N . G. .S .T . O. .R . A. .G . .E . F. .O . .R . R. .E . D. H. .A . T. V. .I R. .T . U. .A . L. I. Z. A. .T . I.O . .N . 2. 2. 3.1. PREPARING NFS STORAGE 22 3.2. PREPARING ISCSI STORAGE 23 3.3. PREPARING FCP STORAGE 24 3.4. PREPARING RED HAT GLUSTER STORAGE 25 .C . H. .A . P. .T .E . R. 4. .I N. .S . T. .A .L . L. .I N. .G . T. H. E. .S . E. .L .F . -. H. .O . .S .T . E. .D . .E . N. .G . I.N . .E . D. E. P. .L . O. .Y . M. E. .N . T. H. .O . S. .T . .2 . 6. 4.1. INSTALLING RED HAT VIRTUALIZATION HOSTS 26 4.1.1. Enabling the Red Hat Virtualization Host Repository 27 4.2. INSTALLING RED HAT ENTERPRISE LINUX HOSTS 28 4.2.1. Enabling the Red Hat Enterprise Linux Host Repositories 28 4.2.2. Installing Cockpit on Red Hat Enterprise Linux Hosts 30 .C . H. .A . P. .T .E . R. 5. I. N. .S . T. A. .L . L. .I N. .G . .T . H. .E . .R . E. .D . .H . A. .T . .V .I .R . T. U. .A . L. .I Z. .A . T. .I O. .N . .M . .A . N. .A . G. E. .R . 3. .1 . 5.1. DEPLOYING THE SELF-HOSTED ENGINE USING COCKPIT 31 5.2. ENABLING THE RED HAT VIRTUALIZATION MANAGER REPOSITORIES 34 5.3. CONNECTING TO THE ADMINISTRATION PORTAL 35 .C . H. .A . P. .T .E . R. 6. .I N. .S . T. A. .L . L. .I N. .G . H. .O . S. .T . S. .F . O. .R . .R . E. .D . .H . A. .T . .V . I.R . T. .U . A. .L .I .Z .A . T. .I O. .N . .3 . 6. 6.1. RED HAT VIRTUALIZATION HOSTS 36 6.1.1. Installing Red Hat Virtualization Hosts 36 6.1.2. Enabling the Red Hat Virtualization Host Repository 38 6.1.3. Advanced Installation 39 6.1.3.1. Custom Partitioning 39 6.1.3.2. Automating Red Hat Virtualization Host Deployment 40 6.1.3.2.1. Preparing the Installation Environment 40 6.1.3.2.2. Configuring the PXE Server and the Boot Loader 41 6.1.3.2.3. Creating and Running a Kickstart File 42 1 Red Hat Virtualization 4.3 Installing Red Hat Virtualization as a self-hosted engine using the Cockpit web interface 6.2. RED HAT ENTERPRISE LINUX HOSTS 44 6.2.1. Installing Red Hat Enterprise Linux Hosts 44 6.2.2. Enabling the Red Hat Enterprise Linux Host Repositories 44 6.2.3. Installing Cockpit on Red Hat Enterprise Linux Hosts 45 6.3. RECOMMENDED PRACTICES FOR CONFIGURING HOST NETWORKS 46 6.4. ADDING SELF-HOSTED ENGINE NODES TO THE RED HAT VIRTUALIZATION MANAGER 47 6.5. ADDING STANDARD HOSTS TO THE RED HAT VIRTUALIZATION MANAGER 48 .C . H. .A . P. .T .E . R. 7. A. .D . .D . I.N . G. .S .T . O. .R . A. .G . .E . F. .O . .R . R. .E . D. H. .A . T. V. .I R. .T . U. .A . L. I. Z. A. .T . I.O . .N . .5 .0 . 7.1. ADDING NFS STORAGE 50 7.2. ADDING ISCSI STORAGE 51 7.3. ADDING FCP STORAGE 53 7.4. ADDING RED HAT GLUSTER STORAGE 54 .A .P . P. .E . N. .D . I. X. A . .T .R . O. U. .B . L. E. .S . H. .O . O. T. .I N. .G . .A . .S . E. .L .F . -. H. .O . .S .T . E. .D . .E . N. .G . I. N. .E . .D . E. P. .L . O. .Y . M. E. .N . T. .5 . 5. A.1. TROUBLESHOOTING THE MANAGER VIRTUAL MACHINE 55 Engine status: "health": "good", "vm": "up" "detail": "up" 55 Engine status: "reason": "failed liveliness check", "health": "bad", "vm": "up", "detail": "up" 55 Engine status: "vm": "down", "health": "bad", "detail": "unknown", "reason": "vm not running on this host" 56 Engine status: "vm": "unknown", "health": "unknown", "detail": "unknown", "reason": "failed to getVmStats" 56 Engine status: The self-hosted engine’s configuration has not been retrieved from shared storage 56 Additional Troubleshooting Commands 57 A.2. CLEANING UP A FAILED SELF-HOSTED ENGINE DEPLOYMENT 57 .A .P . P. .E . N. .D . I. X. B . M. I.G . .R . A. .T .I .N . G. D. .A . T. .A . B. .A . S. .E .S . .A . N. .D . S . E. .R . V. .I C. .E . S. .T . O. .A . .R .E . M. O. .T . E. S. E. .R . V. .E . R. .5 . 9. ..