解決複製 centos虛擬機器後修改複製後的機器的ip、mac、uuid失敗的問題

來源:互聯網
上載者:User

標籤:strong   檔案   os   art   問題   for   

解決辦法:

 

So here’s how we fix it:

  1. Remove the kernel’s networking interface rules file so that it can be regenerated

     

    # rm -f /etc/udev/rules.d/70-persistent-net.rules

     

  2. Restart the VM

     

    # reboot

     

  3. UPDATE your interface configuration file

     

    # vi /etc/sysconfig/network-scripts/ifcfg-eth0 

    Remove the MACADDR entry or update it to the new MACADDR for the interface (listed in this file: /etc/udev/rules.d/70-persistent-net.rules).

    Remove the UUID entry

    Save and exit the file

  4. Restart the networking service

     

    # service network restart

     

Happy cloning!

 

二.另一種方法造成這樣的原因,是因為在虛擬機器(Vmware)中移動了Centos系統對應的檔案,導致重新設定時,網卡的MAC地址變了,輸入ifconfig -a,找不到eth0······· 安裝完一個centos虛擬機器,又拷貝一份,開機後網卡無法正常啟動,報錯:Device eth0 does not seem to be present,  delaying initialization 解決:# mv /etc/sysconfig/network-scripts/ifcfg-eth0  sysconfig/network-scripts/ifcfg-eth1 vim  sysconfig/network-scripts/ifcfg-eth1 修改DEVICE="eth0"  為DEVICE="eth1" 修改IP地址,刪除mac地址(HWADDR),刪除UUID項。 然後重啟啟動網卡嘗試下
相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.