Update Mac identifier during clone process

This commit is contained in:
dp221125
2025-04-24 08:49:43 +09:00
parent 768e50a19f
commit 03a819ef2e

View File

@@ -93,6 +93,9 @@ final class LumeController {
// Update MAC address in the cloned VM to ensure uniqueness
let clonedVM = try get(name: normalizedNewName, storage: destLocation)
try clonedVM.setMacAddress(VZMACAddress.randomLocallyAdministered().string)
// Update MAC Identifier in the cloned VM to ensure uniqueness
try clonedVM.setMachineIdentifier(DarwinVirtualizationService.generateMachineIdentifier())
Logger.info(
"VM cloned successfully",