Automatically assigned MAC adresses
When creating a VM in vCloud Director (vCD), vCD automatically assigns a MAC address. To ensure that the MAC address is unique within the environment the vCD uses the instance ID of the vCD installation to define the MAC address range. If you have multiple vCD instances you might use different IDs for your installations to avoid duplicate MAC addresses.
You can customize the instance ID as follows:
- At Administration/General you will find your installation ID
- When you create a new VM in a vApp the MAC address will be automatically assigned. You can see and reset the Mac address in the hardware properties of a VM.
- When you reset the MAC a new will be generated and assigned.
Manual assign a MAC address
You can either use the new HTML5 tenant client and put in a valid MAC address manually and save the changes.
When you change the Mac address in the backend, directly on vSphere, then vCloud Director will change back the MAC to the address stored ins vCloud Director databaseYou could also use a PowerCLI script to change the MAC address:
Connect-CiServer vCloudDirector.fqdn $vm = get-civm "win" $vm.ExtensionData.Section.NetworkConnection.MACAddress = "00:56:37:0E:05:22" $vm.ExtensionData.Section.UpdateServerData() $vm.ExtensionData.Section.NetworkConnection.MACAddress = "00:50:56:02:eb:60" $vm.ExtensionData.Section.UpdateServerData()
You can follow the process in vCD:
The order of the PowerCLI Array is not always the same as shown in the GUI
To verify the configuration, you can double check this with the NIC array returned by the PowerCLI Array.