Dell R820 KVM Virtualization Deployment Quad (KVM Virtual machine cloning) in the production environment

Source: Internet
Author: User

V. Cloning a virtual machine


Premise:

1. The UUID and MAC address of the card configuration file of the template machine have been deleted ( [email protected] ~]# Vim /etc/sysconfig/network-scripts/ifcfg-eth0 )

2. The NIC configuration file has been emptied ( [email protected] ~]# >/etc/udev/rules.d/70-persistent-net.rules )

3, the template machine is in the shutdown state

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7F/3E/wKiom1cXR8niQuc1AACoUGB7RXI710.jpg "title=" B9f19792-35ab-4f62-94bf-c994ff8667d6.jpg "alt=" Wkiom1cxr8niquc1aacougb7rxi710.jpg "/>

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7F/3E/wKiom1cXR-PSqbIaAAD0luK6huE437.png "title=" 47b37bad-7bfe-4005-8057-cec39d486ec9.png "alt=" Wkiom1cxr-psqbiaaad0luk6hue437.png "/>

View the details of a clone


650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7F/3B/wKioL1cXSNrDcecGAADBITFpAho346.jpg "title=" Eba596c8-3f9f-4abf-8e94-6d9a20539e2a.jpg "alt=" Wkiol1cxsnrdcecgaadbitfpaho346.jpg "/>

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7F/3E/wKiom1cXSDbBhYIQAABgWz6GTC4994.jpg "title=" 10564c19-aa33-4364-89e9-a30c21f0aa93.jpg "alt=" Wkiom1cxsdbbhyiqaabgwz6gtc4994.jpg "/>

Cloning process

In case of RAID10, 24G size cloning takes about 4 minutes, and time needs to be calculated with the array pattern of your physical host

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7F/3E/wKiom1cXSFDDbjlWAABNVvM0mh4975.jpg "title=" 628060d0-8ded-4971-b05e-777cab7d35bc.jpg "alt=" Wkiom1cxsfddbjlwaabnvvm0mh4975.jpg "/>

Cloning complete

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7F/3B/wKioL1cXSTbQLGOBAACX9WFPE2U023.jpg "title=" E12e427b-0a2f-47c6-9baa-5e4474892f41.jpg "alt=" Wkiol1cxstbqlgobaacx9wfpe2u023.jpg "/>

Start the Modify IP

Physical host View Run results

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7F/3E/wKiom1cXSJHz2BqFAAAQt01vivU524.png "title=" 8760211f-0e7b-43b8-9df8-30ba2ac0b250.png "alt=" Wkiom1cxsjhz2bqfaaaqt01vivu524.png "/>

===============================================================

Six, KVM common commands


Virsh List #列出运行中的虚拟机

Virsh List--all #列出所有虚拟机

Virsh start CentOS #启动centos虚拟机

Virsh shutdown CentOS #关闭centos虚拟机

Virsh Destroy CentOS #强制关闭centos虚拟机

Virsh autostart CentOS #设置centos自动启动

Virsh undefine CentOS #删除centos虚拟机

Virsh suspend CentOS #暂停centos虚拟机

Virsh Resume CentOS #恢复centos虚拟

This article is from the "Linux operations self-cultivation" blog, please be sure to keep this source http://ywliyq.blog.51cto.com/11433965/1765894

Dell R820 KVM Virtualization Deployment Quad (KVM Virtual machine cloning) in the production environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.