Virtual Box copying Virtual machine, virtualbox
We often need to install a lot of virtual machines for testing. We only need to configure a virtual machine and copy the other ones. After copying, we need to change the content as follows:
1, vi/etc/sysconfig/network-scripts/ifcfg-eth0ifcfg-eth0 configuration file to save the previous MAC address, delete this line fell to restart the NIC
2./etc/udev/rules. d/70-persistent-net.rules after deletion, restart the machine because the file is bound to the NIC and mac address, so after the NIC is changed, the MAC address is changed, so it cannot be started normally, you can also directly edit the configuration file to change the NIC and mac address to the corresponding one. However, if you delete and restart the configuration file, it will automatically generate one.
3. Change hostname: vi/etc/sysconfig/network