首页 / 虚拟机 / 制作KVM虚拟机模板-实现集群快速部署
制作KVM虚拟机模板-实现集群快速部署
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了制作KVM虚拟机模板-实现集群快速部署,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含3359字,纯文字阅读大概需要5分钟。
内容图文
<span style="font-family:宋体;mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:"Times New Roman";">参照:
";">http://www.it165.net/os/html/201309/6186.html' ref='nofollow'>";">http://www.it165.net/os/html/201309/6186.html<span style="font-family:"Times New Roman";">kvm<span style="font-family:宋体;mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:"Times New Roman";">虚拟机的克隆分为两种情况。
<span lang="EN-US" style="font-family:"Arial",sans-serif;mso-bidi-font-size:10.5pt;mso-font-kerning:0pt;">(1) KVM 主机本机虚拟机直接克隆。
<span lang="EN-US" style="font-family:"Arial",sans-serif;mso-bidi-font-size:10.5pt;mso-font-kerning:0pt;">(2) 通过复制配置文件与磁盘文件的虚拟机复制克隆 <span lang="EN-US" style="font-family:"Arial",sans-serif;mso-bidi-font-size:10.5pt;mso-font-kerning:0pt;">( 适用于异机的静态迁移 <span lang="EN-US" style="font-family:"Arial",sans-serif;mso-bidi-font-size:10.5pt;mso-font-kerning:0pt;">) 。
本人在实际中使用(1)的方法,具体过程如下,记录下备用
*********************************************************************************************************************
---------------------------------------------------------------------------------------------------------------------
<span style="font-family:"Times New Roman";">
<span style="font-family:"Times New Roman";">1<span style="font-family:宋体;mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:"Times New Roman";">)查看虚拟机配置文件:
<span style="font-family:"Times New Roman";">storm@ubuntu1204x8664:/etc/libvirt/qemu$ sudo vim nimbus.xml
虚拟机磁盘文件 <span lang="EN-US" style="font-family:"Arial",sans-serif;mso-bidi-font-size:10.5pt;mso-font-kerning:0pt;">: /var/lib/libvirt/images/nimbus.img
虚拟机名称: <span lang="EN-US" style="background:yellow;color:red;font-family:"Arial",sans-serif;mso-highlight:yellow;mso-bidi-font-size:10.5pt;mso-font-kerning:0pt;">nimbus
<span style="font-family:"Times New Roman";">2<span style="font-family:宋体;mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:"Times New Roman";">)<span style="font-family:"Times New Roman";">virt-clone -o nimbus -n supervisor2 -f /var/lib/libvirt/supervisor2.img
<span style="font-family:宋体;mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:"Times New Roman";">说明:以<span style="font-family:"Times New Roman";">nimbus<span style="font-family:宋体;mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:"Times New Roman";">做为源,克隆<span style="font-family:"Times New Roman";">nimbus<span style="font-family:宋体;mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:"Times New Roman";">虚拟机,并创建名称为<span style="font-family:"Times New Roman";">supervisor2<span style="font-family:宋体;mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:"Times New Roman";">虚拟机,使用磁盘文件<span style="font-family:"Times New Roman";">/var/lib/libvirt/supervisor2.img
<span style="font-family:"Times New Roman";">3) <span style="font-family:宋体;mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:"Times New Roman";">启动虚拟机并配置主机名,<span style="font-family:"Times New Roman";">IP<span style="font-family:宋体;mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:"Times New Roman";">地址等
原文:http://blog.chinaunix.net/uid-27177626-id-4596512.html
内容总结
以上是互联网集市为您收集整理的制作KVM虚拟机模板-实现集群快速部署全部内容,希望文章能够帮你解决制作KVM虚拟机模板-实现集群快速部署所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。