본문 바로가기

Linux

Sealing a Linux Template

반응형

Sealing a Linux Template

Templates that have been created for Linux virtual machines must be generalized (sealed) before use. This section describes how to seal a template before use. This ensures that machine-specific settings are not propagated through the template.
  1. Login to the virtual machine to be used as a template and flag the system for re-configuration by running the following command as root:
    # touch /.unconfigured
  2. Remove ssh host keys. Run:
    # rm -rf /etc/ssh/ssh_host_*
  3. Shut down the virtual machine. Run:
    # poweroff
The Linux virtual machine has now been sealed, and can be used as a template for Linux virtual machines.


위의 방법대로 템플릿을 만들면 새로 VM구성시 네트웍등의 구성을 새로 할 수 있음


출처는 레드햇 홈페이지.

반응형