Book Image

Getting Started with Red Hat Enterprise Virtualization

By : Pradeep Subramaniaan
Book Image

Getting Started with Red Hat Enterprise Virtualization

By: Pradeep Subramaniaan

Overview of this book

Table of Contents (17 chapters)
Getting Started with Red Hat Enterprise Virtualization
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Virtual machine templates


Now that you know how to create a virtual machine, you can save its settings to a template. This template will retain the original virtual machine's configurations, including virtual disk and network interface settings, operating systems, and applications. You can use this template to rapidly create replicas of the original virtual machine.

Creating a Red Hat Enterprise Linux template

To create a RHEL virtual machine template, you need to seal a virtual machine in order to remove a few important system-related settings so that they do not get propagated across the templates and on to the virtual machines that we are going to create using these templates. To seal a Linux virtual machine, follow these steps:

  1. Log in to the virtual machine as a root, and perform the following configuration:

    # touch /.unconfigured
    
  2. Remove SSH host keys:

    # rm -rf /etc/ssh/ssh_host_*
    
  3. Modify the HOSTNAME parameter setting under the /etc/sysconfig/network file to localhost.localdomain.

  4. Remove...