A.2 無法使用 SLES 11 上的 VMware Player 3 設定網路

當您嘗試使用 SLES 11 上的 VMware Player 3 設定網路時,可能會看到下列錯誤:

Jan 12 14:57:34.761: vmx| VNET: MACVNetPortOpenDevice: Ethernet0: can't open vmnet device (No such device or address)
Jan 12 14:57:34.761: vmx| VNET: MACVNetPort_Connect: Ethernet0: can't open data fd
Jan 12 14:57:34.761: vmx| Msg_Post: Error
Jan 12 14:57:34.761: vmx| [msg.vnet.connectvnet] Could not connect Ethernet0 to virtual network "/dev/vmnet0". More information can be found in the vmware.log file.
Jan 12 14:57:34.761: vmx|[msg.device.badconnect] Failed to connect virtual device Ethernet0. 
Jan 12 14:57:34.761: vmx| -- 

該錯誤指示 VMX 檔案可能已由另一個 VM 開啟。若要解決此問題,您必須更新 VMX 檔案中的 MAC 位址,如下所述:

  1. 在文字編輯器中開啟 VMX 檔案。

  2. ethernet0.generatedAddress 欄位複製 MAC 位址。

  3. 從訪客作業系統中開啟 /etc/udev/rules.d/70-persistent-net.rules 檔案。

  4. 註解化原始行,然後輸入 SUBSYSTEM 行,如下所述:

    SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}==<MAC address>, NAME="eth0" 
    
  5. <MAC address> 取代為您在步驟 2 中複製的 MAC 位址步驟 2

  6. 儲存然後關閉該檔案。

  7. 在 VMware Player 中開啟 VM。