Linux CentOS 7 virtual machine clone

Linux CentOS 7 Virtual Machine Clone###

1. Back up the original virtual machine####

Select the virtual machine, right-click the snapshot, and then take a snapshot.

  1. png

2. Start cloning

Select the virtual machine, right-click Manage, and then click Clone.

  1. png

  1. png

  1. png

  1. png

  1. png
After cloning is complete, enter the virtual machine and set ip
Execute the command (ifcfg- added according to your own situation):
vim /etc/sysconfig/network-scripts/ifcfg-ethxxx

  1. png
Related introduction (according to your actual situation):
DEVICE=eth0
HWADDR=00:0C:29:EB:72:FA
TYPE=Ethernet
UUID=af9a3043-12d7-4dd3-9948-9d8de30d8d32
ONBOOT=yes (whether to start after boot,yes)
NM_CONTROLLED=yes
BOOTPROTO=static(Is the ip address dynamically obtained or static, static?)
IPADDR=192.168.5.104(ip address, this ip address must not be set to be the same as the gateway IP)
NETMASK=255.255.255.0(Subnet mask)
GATEWAY=192.168.5.2 (default gateway)
Then restart the network card
service network restart
Check if the ip address has changed
ip addr

  1. png
You can see that the ip address has changed and the mac address is different from the one we cloned. At this time, the cloning is complete.
You can ping Baidu to try the network, then ping your previous virtual machine,
ping baidu.com

If the ping fails, you can try the following operations.

Delete the file bound to the Linux physical address (the file will bind the physical address to the IP after the operating system restarts and generate the physical address). If it is not deleted, the operating system will always be bound to the cloned physical address;

rm -rf /etc/udev/rules.d/70-persistent-net.rules

If it still doesn't work, check whether the mac address is the same as the mac of the cloned machine. If it is the same, change it.


If you have any questions, you can leave a message:).
Feeling helpful, you can click like it :).

Recommended Posts

Linux CentOS 7 virtual machine clone
VMwareWorkstation10.0 install CentOS7.0 virtual machine
CentOS 6.8 virtual machine installation details
Virtual machine Linux Ubuntu installation tutorial
Install CentOS7 virtual machine, configure docker suite
Putty remote login VMware virtual machine Linux (Ubuntu12.04)
Download of VM virtual machine and install centos7
CentOS 7 install KVM and create a virtual machine
Linux Network Foundation (CentOS7)
Linux (centos7) build gitlab
003.KVM virtual machine deployment-CentOS6.8
CentOS (linux) install PostgreSQL
Linux notes (1): CentOS-7 installation
Linux CentOS 7 installation tutorial
Centos 7 install JDK (Linux install jdk)
Detailed explanation of Centos 7 system virtual machine bridging mode
Install KVM on CentOS 7 and create a virtual machine
How to create a CentOS virtual machine in VMware
The virtual machine centos and the host ping each other
How to create a CentOS virtual machine in VMware
Detailed installation steps of CentOS6.4 system in virtual machine
Install ubuntu on virtual machine
How to install Centos operating system on VMware virtual machine
Tutorial diagram of installing CentOS 8 (1905) system on VMware virtual machine
Ubuntu14.04 creates Genymotion virtual machine
Linux Centos7 install redis tutorial
Install MySQL 8.0.16 on Linux Centos
3 partitioning tools under CentOS Linux
Install MySQL under Linux (CentOS 7)
Centos configure multiple virtual IP
Virtual machine VirtualBox-5.1 install ubuntu16.0.1
Centos7 deploys python3 virtual environment
CentOS 6.8 under linux install mongodb
CentOS8 Linux 8.0.1905 installation process (illustration)
Linux centos system boot process
Centos configure multiple virtual IP
Build an Ubuntu Linux development environment on a Vmware virtual machine
Common Linux operations (based on centos7)
Kali(Ubuntu) MySQL virtual machine remote connection
Linux CentOS 7 install JDK detailed steps
CentOS7.2 and Nginx configuration virtual host
Install MySQL on Linux CentOS7 (Windows)
Linux: Centos7 upgrade the original kernel
​Install Oracle database on CentOS Linux
Build Nginx environment on Linux (CentOS)
(centos7) linux build nginx load balancing build
Linux CentOS6 compile and install Pyt
Use VMware15 to install Linux (CentOS6.5)
[Tips] [XShell] [Xftp] Transfer files between Windows desktop and Linux virtual machine