VMware ESXi 5 (vCenter) 自訂 MAC address

先前由 VMware Workstation 轉移到 vCenter. 有用到特定的 MAC address 會出現下列問題.

Invalid MAC address specified.
00:50:56:xx:xx:xx is not a valid static Ethernet address. It conflicts with VMware reserved MACs for other usage.

Impermissible static Ethernet address: ‘xx:xx:xx:xx:xx:xx’. It conflicts with VMware reserved MACs.

後來找到
Powering on a virtual machine after migrating to vCenter 5.1 fails with the error: Invalid MAC address specified (2035707)
文章就解決了這個問題.

我沒有完全按照該文件的步驟, 下列是我的方式.
1. 將虛擬機關機
2. 用 ssh 以 root 身分登入 ESXi 主機, 然後進入虛擬機的家目錄

# cd /vmfs/volumes/DatastoreName/VMFolderName

3. 用 vi 編輯虛擬機的 vmname.vmx 檔案

ethernetN.checkMACAddress = “false”
ethernetN.addressType = “static”
ethernetN.Address = “XX:XX:XX:XX:XX:XX″

XX:XX:XX:XX:XX:XX 改成任何你想要的 MAC address , 存檔離開

4. 開啟虛擬機即可