machine-controller icon indicating copy to clipboard operation
machine-controller copied to clipboard

New Ubuntu based VMs gets same IP

Open ranjujohn opened this issue 3 years ago • 1 comments

We came across an issue that all new Ubuntu based VMs gets the same IP in a vSphere environment. This would have happened due to the fact that someone would have started the template VM and the machine-id would have generated.

Will it be possible to achieve one of the below options to overcome this issue?

  • Machine-controller checks if machine-id is set in the template VM and remove it as part of cloning.
  • Convert the VM to a template and use that? So that we can avoid accidental starting of the template VM?
  • Configure netplan to use mac as the dhcp-identifier

ranjujohn avatar Oct 05 '22 11:10 ranjujohn

IMO, this is not machine-controller's job, but something that should be taken care of when creating the base image, i.e. clear the machine-id and optionally change netplan config as you mentioned.

Alternatively, I think you should be able to take care of clearing the machine-id using operating-system-manager.

sphr2k avatar Oct 25 '22 12:10 sphr2k