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

  • 编辑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,或者重启网卡

相关文章:

  • 2022-02-05
  • 2022-01-05
  • 2021-07-21
  • 2021-05-13
  • 2021-11-11
  • 2021-08-28
  • 2021-08-01
  • 2021-07-24
猜你喜欢
  • 2021-08-06
  • 2021-11-11
  • 2021-10-05
  • 2021-06-11
  • 2022-01-15
  • 2022-12-23
相关资源
相似解决方案