After clone a CentOS VM, there are network & hostname need to be update.
Update hostname:
- /etc/hosts
- /etc/sysconfig/network
- # hostname <name>
Update NIC:
- /etc/udev/rules.d/70-persistent-net.rules: delete old NIC information
- /etc/sysconfig/network-scripts/ifcfg-xxx: delete UUID line and update HWADDR
- # start_udev
- #uuidgen >> /etc/sysconfig/network-scripts/ifcfg-xxx
- /etc/sysconfig/network-scripts/ifcfg-xxx: update UUID by add "UUID="
- # service network restart
Reference:
http://www.ichiayi.com/wiki/tech/linux_hostname
http://linuxtoolkit.blogspot.tw/2012/10/updating-udev-configuration-on-centos.html
全站熱搜