In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
KVM virtual machine clone
Kvm254
CentOS7.4-Tomcat-192.168.10.20 shut off java environment template
Win2008R2-Template-192.168.10.198 shut off basic template
Win2016-Template-192.168.10.199 shut off basic template
Turn off the virtual machine to be cloned before cloning
Copy virtual disk
Cd / kvm
Cp CentOS7.4-Tomcat.qcow2 CentOS7.4-Clonetest.qcow2
Export xml fil
Cd / etc/libvirt/qemu/
Virsh dumpxml CentOS7.4-Tomcat-192.168.10.20 > CentOS7.4-Clonetest-192.168.10.102.xml
Uuidgen gets disk uuid
67713d71-7a15-4314-a0bc-bdbcb4551831
Modify xml file configuration
Include name / uuid/sourcefile file / mac address mac address note the number of network cards
The sourcefile address is the address of the qcow2 file
Modify mac
Three rules, one in front of one, one at 11:02 represents 102.
Import xml Fil
Virsh define / etc/libvirt/qemu/CentOS7.4-Clonetest-192.168.10.102.xml
Start and view
Virsh start CentOS7.4-Clonetest-192.168.10.102
Virsh list-all
Last (important)
Connect the original template IP address to enter the current cloned virtual machine
Modify the IP address and host name of the network card
Cd / etc/sysconfig/network-scripts/
Modify IP address
Set host name
Hostnamectl set-hostname CentOS7.4-Clonetest
View host name
Hostnamectl status
Finally, reboot can be connected.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
Exchange 2013 (VII) High availability of Mailbox servers
© 2024 shulou.com SLNews company. All rights reserved.