原本的虛擬機在建置時,是設定自動產生MAC,所以MAC是00:0C:29開頭。
還原到其他台ESXI之後,要將虛擬機的MAC設定改成手動,然後輸入還本的MAC時,就跳出"無法開啟虛擬機器的電源,乙太網路位址不允許。它與VWMARE保留的MAC衝突 "。
原是因當你把MAC設定調成手動時,MAC的開頭不能是"00:0C:29",因為這段MAC通通都只能讓ESXI自動產生,所以就算你設定好了,開機就會產生錯誤無法啟動。
這時只要用ssh連上ESXI,切換到 "vmfs/volumes/虛擬機所在的datastore/虛擬機名字",然後用vi去編輯裡面有一個.vmx的檔案。
找到你的網卡,通常就叫ethernet0.addressType = "generated",在它上面自己加一行ethernet0.checkMACAddress = “false”,然後在把addressType改成ethernet0.addressType = "static"就行了。
MAC Address的部份可直接在圖形介面上設定即可。
VMWARE virtual machine manual MAC Address configuration: Unable to power on the virtual machine due to MAC conflict with VMWARE's reserved MAC.
Recently, I was testing the backup and restore of virtual machines. I needed to restore a backup of a virtual machine to another ESXi server for testing purposes while keeping the MAC address of the virtual machine the same.
The original virtual machine was set to automatically generate a MAC address, starting with "00:0C:29." After restoring it to another ESXi server, I had to manually configure the MAC address of the virtual machine. However, when I entered the original MAC address, an error message appeared stating, "Cannot power on virtual machine. The Ethernet address is not allowed. It conflicts with the MAC address reserved by VMWARE."
The issue arises when you switch the MAC address configuration to manual, and the MAC address starts with "00:0C:29." This range of MAC addresses is reserved for automatic generation by ESXi, so even if you configure it correctly, an error occurs when trying to power on the virtual machine.
To resolve this, you can SSH into the ESXi server and navigate to "vmfs/volumes/datastore_name/virtual_machine_name." Then, use the vi editor to modify the .vmx file within that directory.
Locate the network adapter section, which is typically named ethernet0.addressType = "generated." Add a new line above it with the following entry: ethernet0.checkMACAddress = "false". Then, change the addressType to ethernet0.addressType = "static".
For configuring the MAC address, you can do that directly in the graphical interface.
沒有留言:
張貼留言