oVirt VM (CentOS) template & clone

Using Templates

Now that you know how to create a virtual machine, you can save its settings into 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.

Create a Fedora Template

To make a Fedora virtual machine template, use the virtual machine you created in Section 4.1.1, “Create a Fedora Virtual Machine” as a basis. Before it can be used, it has to be sealed. This ensures that machine-specific settings are not propagated through the template.

To prepare a Fedora virtual machine for use as a template

连接到一个已经存在的虚拟机, 需要配置一下, 然后关机才能作为模板使用. 例如touch一个重新配置文件, 删除ssh host key.

1. Connect to the Fedora virtual machine to be used as a template. 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

4. The virtual machine has now been sealed, and is ready to be used as a template for Linux virtual machines.

关闭虚拟机后, 创建模板

To create a template from a Fedora virtual machine

1. In the administration portal, click the Virtual Machines tab. Select the sealed Red Hat Enterprise Linux 6 virtual machine. Ensure that it has a status of Down.

2. Click Make Template. The New Virtual Machine Template displays.


 

Figure 15. Make new virtual machine template

Enter information into the following fields:
  • Name: Name of the new template
  • Description: Description of the new template
  • Host Cluster: The Host Cluster for the virtual machines using this template.
  • Make Private: If you tick this checkbox, the template will only be available to the template's creator and the administrative user. Nobody else can use this template unless they are given permissions by the existing permitted users.

3. Click OK. The virtual machine displays a status of "Image Locked" while the template is being created. The template is created and added to the Templates tab. During this time, the action buttons for the template remain disabled. Once created, the action buttons are enabled and the template is ready for use.

Clone a Red Hat Enterprise Linux Virtual Machine

In the previous section, you created a Fedora template complete with pre-configured storage, networking and operating system settings. Now, you will use this template to deploy a pre-installed virtual machine.

To clone a Fedora virtual machine from a template

新建虚拟机, 选择基于模板.

1. Navigate to the Tree pane and click Expand All. Click the VMs icon under the Default cluster. On the Virtual Machines tab, click New Server.


 

Figure 16. Create virtual machine based on Linux template

  • On the General tab, select the existing Linux template from the Based on Template list.
  • Enter a suitable Name and appropriate Description, then accept the default values inherited from the template in the rest of the fields. You can change them if needed.
  • Click the Resource Allocation tab. On the Provisioning field, click the drop down menu and select the Clone option.
  • 注意使用Clone选项.


 

Figure 17. Set the provisioning to Clone

2. Retain all other default settings and click OK to create the virtual machine. The virtual machine displays in the Virtual Machines list.

[参考]

1. https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.4/html/Administration_Guide/chap-Templates.html

时间: 2024-09-19 09:03:07

oVirt VM (CentOS) template & clone的相关文章

oVirt JBAS server start failed, ajp proxy cann't server correct. ovirt-engine URL cann't open

最后发现这个错误的根源是, 没有使用public schema .  所以建议不要自建和用户同名的schema. oVirt的管理web页无法打开, 使用代理到ajp://127.0.0.1:8702.  /etc/httpd/conf.d/z-ovirt-engine-proxy.conf     <LocationMatch ^/(ovirt-engine($|/)|api($|/)|RHEVManagerWeb/|OvirtEngineWeb/|ca.crt$|engine.ssh.key

vCenter 部件关系简介 &amp;amp; 网络原理

目录 目录 主机和集群 vCenter Datacenter Cluster Host Virtual Machine Folder Resource Pool Template 数据存储 Datastore Cluster Datastore 网络 标准交换机 分布式虚拟交换机 参考资料 主机和集群 vCenter vCenter 提供了对 Datacenter 便捷的单点控制平台,运行在 Windows 服务器中,可集中管理 VMware ESX/ESXi Host,并提供基本的 Datac

Mac下部署VirtualBox + Vagrant配置教程

实现从集中化安装 ==> 环境配置 ==> 应用部署 全自动化的auto deployment. 一. 环境部署 Local system: MAC OS X 10.10.5 VirtualBox: VirtualBox-4.3.30 Vagrant: vagrant_1.7.3 Vagrant sample system: CentOS6.7 x64 1.本地安装VirtualBox 下载地址: http://download.virtualbox.org/virtualbox/4.3.30

超级强大的vim配置(vimplus)

From : http://www.cnblogs.com/highway-9/p/5984285.html From : http://www.cnblogs.com/ma6174/archive/2011/12/10/2283393.html From : http://www.cnblogs.com/youxia/p/linux002.html From : http://blog.csdn.net/namecyf/article/details/7787479 最近在重新配置Vim,也在

linux-About CLONE_PARENT_SETTID in Linux

问题描述 About CLONE_PARENT_SETTID in Linux I think it is prcess after the initialize of task_struct which is initialized in copy_process. 解决方案 Create a new VM (clone2) without a disk equipped2. Use the VM tool to clone the disk from the existing VM to t

jquery ajax返回值与无返回值问题

  jquery ajax 返回值有很多类型如有html,text,json,xml类型了,我们这些值都可以在ajaxp处理是直接使用匿名函数来直接获取,下面我整理内个jquery ajax 返回值的例子给各位参考参考. jquery中常用的ajac有 $.ajax() , $.post , $.get() ,$.load()了. 例子  代码如下   $.post("test.jsp",  { name: "cssrain", time: "2008/0

Backbone.js系列教程一 - Backbone.js简介

JavaScript在web应用程序开发前端技术和后端技术的逻辑与运行一块占有越来越大的比重.为了帮助维护和循环访问前期逻辑和模块性,MVC模式在近几年中渐渐普及.其中一种运用广泛的MVC框架就是Backbone.js. Backbone中的Models(模型).Views(视图)和Controller(控制器) Backbone.js包含以下几个主要功能: 创建模型(以及模型集合): 创建视图: 管理绑定,管理事件兼用不同的模型以及视图与框架其他部分的联系: 在模型中使用观察者模式,一旦模型触

Velocity用户手册---中文版

中文 Velocity是什么? Velocity是一个基于java的模板引擎(template engine).它允许任何人仅仅简单的使用模板语言(template language)来引用由java代码定义的对象. 当Velocity应用于web开发时,界面设计人员可以和java程序开发人员同步开发一个遵循MVC架构的web站点,也就是说,页面设计人员可以只关注页面的显示效果,而由java程序开发人员关注业务逻辑编码.Velocity将java代码从web页面中分离出来,这样为web站点的长期

NVelocity介绍

一.NVelocity介绍 1.1  Velocity是什么 nVelocity是一个基于.NET的模板引擎(template engine).它允许任何人仅仅简单的使用模板语言(template language)来引用由.NET代码定义的对象. 当nVelocity 应用于web开发时,界面设计人员可以和.NET程序开发人员同步开发一个遵循MVC架构的web站点,也就是说,页面设计人员可以只关注页面的显示效果,而由.NET程序开发人员关注业务逻辑编码.nVelocity将.NET代码从web