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.4 Installing Red Hat Virtualization as a self- hosted engine using the Cockpit web interface Using Cockpit to install the Red Hat Virtualization Manager as a virtual machine running on the same hosts it manages Last Updated: 2021-09-07 Red Hat Virtualization 4.4 Installing Red Hat Virtualization as a self-hosted engine using the Cockpit web interface Using 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 © 2021 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, the Red Hat 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 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 9 2.2. HOST REQUIREMENTS 10 2.2.1. CPU Requirements 10 2.2.1.1. Checking if a Processor Supports the Required Flags 10 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. General requirements 13 2.3.2. Network range for self-hosted engine deployment 13 2.3.3. Firewall Requirements for DNS, NTP, and IPMI Fencing 13 2.3.4. Red Hat Virtualization Manager Firewall Requirements 14 2.3.5. Host Firewall Requirements 18 2.3.6. Database Server Firewall Requirements 22 .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 . 4. 3.1. PREPARING NFS STORAGE 25 3.2. PREPARING ISCSI STORAGE 26 3.3. PREPARING FCP STORAGE 27 3.4. PREPARING RED HAT GLUSTER STORAGE 28 3.5. CUSTOMIZING MULTIPATH CONFIGURATIONS FOR SAN VENDORS 28 3.6. RECOMMENDED SETTINGS FOR MULTIPATH.CONF 29 .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 . 3. .1 . 4.1. INSTALLING RED HAT VIRTUALIZATION HOSTS 31 4.1.1. Enabling the Red Hat Virtualization Host Repository 33 4.2. INSTALLING RED HAT ENTERPRISE LINUX HOSTS 34 4.2.1. Enabling the Red Hat Enterprise Linux host Repositories 34 4.2.2. Installing Cockpit on Red Hat Enterprise Linux hosts 36 .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 . 7. 5.1. MANUALLY INSTALLING THE RHV-M APPLIANCE 37 5.2. ENABLING AND CONFIGURING THE FIREWALL 38 5.3. DEPLOYING THE SELF-HOSTED ENGINE USING COCKPIT 38 5.4. ENABLING THE RED HAT VIRTUALIZATION MANAGER REPOSITORIES 43 5.5. CONNECTING TO THE ADMINISTRATION PORTAL 44 .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 . .4 .6 . 6.1. RED HAT VIRTUALIZATION HOSTS 46 6.1.1. Installing Red Hat Virtualization Hosts 46 6.1.2. Enabling the Red Hat Virtualization Host Repository 48 1 Red Hat Virtualization 4.4 Installing Red Hat Virtualization as a self-hosted engine using the Cockpit web interface 6.1.3. Advanced Installation 49 6.1.3.1. Custom Partitioning 49 6.1.3.2. Installing a DUD driver on a host without installer support 50 6.1.3.3. Automating Red Hat Virtualization Host deployment 53 6.1.3.3.1. Preparing the installation environment 54 6.1.3.3.2. Configuring the PXE server and the boot loader 54 6.1.3.3.3. Creating and running a Kickstart file 55 6.2. RED HAT ENTERPRISE LINUX HOSTS 58 6.2.1. Installing Red Hat Enterprise Linux hosts 58 6.2.2. Enabling the Red Hat Enterprise Linux host Repositories 58 6.2.3. Installing Cockpit on Red Hat Enterprise Linux hosts 59 6.3. RECOMMENDED PRACTICES FOR CONFIGURING HOST NETWORKS 60 6.4. ADDING SELF-HOSTED ENGINE NODES TO THE RED HAT VIRTUALIZATION MANAGER 61 6.5. ADDING STANDARD HOSTS TO THE RED HAT VIRTUALIZATION MANAGER 62 .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 . .6 .4 . 7.1. ADDING NFS STORAGE 64 7.2. ADDING ISCSI STORAGE 65 7.3. ADDING FCP STORAGE 67 7.4. ADDING RED HAT GLUSTER STORAGE 68 .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. .6 .9 . A.1. TROUBLESHOOTING THE MANAGER VIRTUAL MACHINE 69 Engine status: "health": "good", "vm": "up" "detail": "up" 69 Engine status: "reason": "failed liveliness check", "health": "bad", "vm": "up", "detail": "up" 69 Engine status: "vm": "down", "health": "bad", "detail": "unknown", "reason": "vm not running on this host" 70 Engine status: "vm": "unknown", "health": "unknown", "detail": "unknown", "reason": "failed to getVmStats" 70 Engine status: The self-hosted engine’s configuration has not been retrieved from shared storage 71 Additional Troubleshooting Commands 71 A.2. CLEANING UP A FAILED SELF-HOSTED ENGINE DEPLOYMENT 71 APPENDIX B. CUSTOMIZING THE MANAGER VIRTUAL MACHINE USING AUTOMATION DURING .D . E. P. .L . O. .Y . M. E. .N . T. .7 . 3. ..