Red Hat Satellite 6.6 Provisioning Guide
Total Page:16
File Type:pdf, Size:1020Kb
Red Hat Satellite 6.6 Provisioning Guide A guide to provisioning physical and virtual hosts on Red Hat Satellite Servers. Last Updated: 2020-04-28 Red Hat Satellite 6.6 Provisioning Guide A guide to provisioning physical and virtual hosts on Red Hat Satellite Servers. Red Hat Satellite Documentation Team [email protected] Legal Notice Copyright © 2020 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 The Red Hat Satellite Provisioning Guide has instructions on provisioning physical and virtual hosts. This includes setting up the required network topology, configuring the necessary services, and providing all of the other configuration information to provision hosts on your network. Table of Contents Table of Contents .C . H. .A . P. .T .E . R. 1.. .I .N . T. .R .O . .D . U. .C . T. .I O. N. 5. 1.1. PROVISIONING TYPES OVERVIEW 5 1.2. PROVISIONING WORKFLOW OVERVIEW 5 .C . H. .A . P. .T .E . R. 2. C. .O . .N . F. .I G. .U . .R .I .N . G. P. .R . O. .V . I. S. I.O . .N . I.N . .G . .C . O. .N . .T .E . X. .T . S. 7. 2.1. PROVISIONING CONTEXT OVERVIEW 7 2.2. SETTING THE PROVISIONING CONTEXT 7 .C . H. .A . P. .T .E . R. 3. C. O. .N . F. .I G. U. .R . I.N . G. P. .R . O. V. .I S. I. O. .N . I.N . .G . .R . E. .S .O . .U . R. .C . E. .S . 8. 3.1. CREATING OPERATING SYSTEMS 8 3.2. UPDATING MULTIPLE OPERATING SYSTEMS 9 3.3. CREATING ARCHITECTURES 10 3.4. CREATING HARDWARE MODELS 10 3.5. USING A SYNCED KICKSTART REPOSITORY FOR A HOST’S OPERATING SYSTEM 11 3.6. CREATING PARTITION TABLES 11 3.7. CREATING PROVISIONING TEMPLATES 12 3.7.1. Types of Provisioning Templates 12 3.7.2. Template Syntax and Management 13 3.7.3. Procedure 14 3.8. CREATING COMPUTE PROFILES 15 3.9. SETTING A DEFAULT ENCRYPTED ROOT PASSWORD FOR HOSTS 15 3.10. USING THIRD PARTY INSTALLATION MEDIA 16 3.11. USING NOVNC TO ACCESS VIRTUAL MACHINES 17 .C . H. .A . P. .T .E . R. 4. .C . O. .N . F. .I G. U. .R . I.N . G. .N . E. .T .W . .O . .R . K. I. N. .G . 1.9 . 4.1. SATELLITE AND DHCP OPTIONS 19 4.2. PREREQUISITES FOR IMAGE BASED PROVISIONING 21 4.3. CONFIGURING NETWORK SERVICES 22 4.3.1. DHCP, DNS, and TFTP Options for Network Configuration 22 4.3.2. Using TFTP Services through NAT 24 4.4. ADDING A DOMAIN TO SATELLITE SERVER 24 4.5. ADDING A SUBNET TO SATELLITE SERVER 25 4.6. CONFIGURING IPXE TO REDUCE PROVISIONING TIMES 26 4.6.1. Chainbooting virtual machines 27 4.6.2. Chainbooting iPXE directly 29 .C . H. .A . P. .T .E . R. 5. U. .S . I.N . .G . .I N. .F . O. B. .L .O . .X . .A . S. .D . H. C. .P . .A . N. .D . .D . N. .S . .P . R. .O . V. .I D. E. R. .S . .3 . 2. 5.1. LIMITATIONS 32 5.2. PREREQUISITES 32 5.3. INSTALLING THE INFOBLOX CA CERTIFICATE ON CAPSULE SERVER 32 5.4. INSTALLING THE DHCP INFOBLOX MODULE 33 5.5. INSTALLING THE DNS INFOBLOX MODULE 34 .C . H. .A . P. .T .E . R. 6. .P .R . O. V. .I S. .I O. .N . .I N. .G . .B . A. .R . E. M. E. T. .A . L. H. .O . S. .T . S. .3 . 5. 6.1. PREREQUISITES FOR BARE METAL PROVISIONING 35 6.2. CONFIGURING THE SECURITY TOKEN VALIDITY DURATION 36 6.3. CREATING HOSTS WITH UNATTENDED PROVISIONING 36 6.4. CONFIGURING RED HAT SATELLITE’S DISCOVERY SERVICE 37 6.4.1. Enabling Discovery service on a Capsule Server 38 6.4.2. Provisioning Template PXELinux Discovery Snippet 39 6.4.3. Changing Templates and Snippets 39 6.4.4. Automatic Contexts for Discovered Hosts 40 1 Red Hat Satellite 6.6 Provisioning Guide 6.5. CREATING HOSTS FROM DISCOVERED HOSTS 41 6.6. CREATING DISCOVERY RULES 42 6.7. CREATING HOSTS WITH PXE-LESS PROVISIONING 44 6.8. IMPLEMENTING PXE-LESS DISCOVERY 46 6.9. DEPLOYING SSH KEYS DURING PROVISIONING 48 6.10. BUILDING A SATELLITE DISCOVERY IMAGE 49 .C . H. .A . P. .T .E . R. 7. P. .R . O. V. .I S. I. O. .N . I. N. .G . .V . I.R . T. .U . A. .L . .M . A. .C . H. I.N . E. .S . O. N. A. K. .V . M. .S .E . R. .V . E. .R . .( L. .I B. .V . I.R . T. .) . .5 . 2. 7.1. PREREQUISITES FOR KVM PROVISIONING 52 7.2. CONFIGURING SATELLITE SERVER FOR KVM CONNECTIONS 53 7.3. ADDING A KVM CONNECTION TO SATELLITE SERVER 53 7.4. ADDING KVM IMAGES TO SATELLITE SERVER 54 7.5. ADDING KVM DETAILS TO A COMPUTE PROFILE 55 7.6. CREATING HOSTS ON A KVM SERVER 56 .C . H. .A . P. .T .E . R. 8. .P .R . O. V. .I S. .I O. .N . .I N. .G . .V . I.R . T. .U . A. .L . .M . .A . C. .H . I.N . E. .S . .I N. R. .E . D. H. .A . T. V. .I R. .T .U . A. .L . I.Z . A. .T . I.O . N. .5 . 9. 8.1. PREREQUISITES FOR RED HAT VIRTUALIZATION PROVISIONING 59 8.2. CREATING A RED HAT VIRTUALIZATION USER 59 8.3. ADDING A RED HAT VIRTUALIZATION CONNECTION TO SATELLITE SERVER 60 8.4. ADDING RED HAT VIRTUALIZATION IMAGES TO SATELLITE SERVER 62 8.5. ADDING RED HAT VIRTUALIZATION DETAILS TO A COMPUTE PROFILE 62 8.6. CREATING NETWORK-BASED HOSTS ON A RED HAT VIRTUALIZATION SERVER 63 .C . H. .A . P. .T .E . R. 9. .P .R . O. V. .I S. .I O. .N . .I N. .G . .V . I.R . T. .U . A. .L . .M . .A . C. .H . I.N . E. .S . .I N. V. .M . .W . .A . R. .E . V. .S . P. .H . E. .R . E. .6 .6 . 9.1. PREREQUISITES FOR VMWARE VSPHERE PROVISIONING 66 9.2. CREATING A VMWARE VSPHERE USER 66 9.3. ADDING A VMWARE VSPHERE CONNECTION TO SATELLITE SERVER 67 9.4. ADDING VMWARE VSPHERE IMAGES TO SATELLITE SERVER 68 9.5. ADDING VMWARE VSPHERE DETAILS TO A COMPUTE PROFILE 69 9.6. CREATING HOSTS ON A VMWARE VSPHERE SERVER 70 9.7. USING THE VMWARE VSPHERE CLOUD-INIT AND USERDATA TEMPLATES FOR PROVISIONING 72 9.8. CACHING OF VMWARE COMPUTE RESOURCES 74 9.8.1. Enabling Caching of VMware Compute Resources 75 9.8.2. Refreshing the VMware Compute Resources Cache 75 .C . H. .A . P. .T .E . R. 1.0 . .. P. .R . O. .V . I. S. I.O . .N . I.N . .G . .V . I.R . T. .U . A. .L . M. A. .C . H. .I .N . E. .S . W. I.T . H. C. .O . .N . T. .A . I.N . E. .R . -. N. .A . T. .I V. .E . .V . I.R . T. U. .A . L. .I Z. .A . T. .I O. .N . .7 . 6. ..