Create/clone a VM (configuration) and clone a VM
I am a lazy new to linux, so that I can easily organize my articles.1. Create a VMModify the Host Name (as you can remember)Run the following command: vi/etc/sysconfig/network: | -- I (modify) | -- esc (exit modification) | --: wq (save modification)**************************************** ************************************************************************** **********************************View Gateway**************************************** **************************************** *********************************************** **************************************** *********************************************** **************************************** *********************************************** ************************************Add Network **************************************** **************************************** ****** **************************************** **************************************** *********************************************** **************************************** ********
**************************************** **************************************** *********
**************************************** **************************************** ****
Modify the hosts fileModify command: vi/etc/hosts: | -- I (modify) | -- esc (exit modification) | --: wq (save modification)
**************************************** **************************************** *****
**************************************** **************************************** ********
RestartService network restart network initi 6 VM restart
**************************************** **************************************** *********If you want to operate on windows, modify windows/system32/drives/etc/host on drive C.
**************************************** **************************************** ********
**************************************** **************************************** *****
Input cmd in Windows for win + R
**************************************** **************************************** *****
**************************************** **************************************** ***
You can ping the host name or the IP address through the command line.
**************************************** **************************************** *****
2. configurations to be modified for cloned virtual machines
Configuration operationsModify command: vi/etc/udev/rules. d/70-persistent-net.rules
**************************************** **************************************** ********
**************************************** **************************************** ******Modify command: vi/etc/sysconfig/network-scripts/ifcfg-eth0
**************************************** **************************************** ******
Network restartCommand: service network restart
Delete
**************************************** ***********************************