VMware linux 克隆机的配置

从另一台虚拟机克隆完后的一些配置

  • 编辑eth0的配置文件:

[root@wen data01:4]# vim /etc/sysconfig/network-scripts/ifcfg-eth0
删除 HWADDR=00:0c:29:e9:95:dd 和 UUID

  • 如果有必要再清空如下文件:

> /etc/udev/rules.d/70-persistent-net.rules

最后reboot

  • 同时克隆后的虚拟机默认是关闭ssh服务的,需要打开

[root@wen ~]# chkconfig --list sshd
sshd 0:off 1:off 2:on 3:off 4:on 5:on 6:off
[root@wen ~]# chkconfig sshd on
[root@wen ~]# chkconfig --list sshd
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
然后reboot,或者重启网卡

原文地址:https://www.cnblogs.com/wenyule/p/7739196.html