Notes on cloning virtual machines

  1. In the virtual machine "Management" -> Clone virtual machine
  2. Change the IP of the virtual machine, the configuration file is /etc/sysconfig/network-scripts/ifcfg-ens32
    • Modify IP
    • delete the UUID line
  3. Change the name of the cloned virtual machine
  • hostnamectl set-hostname hf-02 change name
  1. Then restart the gateway
  • The command systemctl restart network.service may fail to restart because the mac address has not changed, just need ip add to view the mac address of the network card, then change, restart the gateway, and restart the virtual machine.
错误如下
[root@hf-03 ~]# systemctl restart network
Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details.
  • method 1:
    • The ip addr command views the mac address, then changes it in the configuration file, and restarts the virtual machine
  • Method 2:
    • Restart the network card, command ifdown ens33 && ifup ens33 , and then restart the network service.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324977520&siteId=291194637