Open samyama-digital opened 10 months ago
@prziborowski - Can you please help?
Hi @samyama-digital. Unfortunately I don't have much experience with the Customize API. I believe there is a lot of interaction with the guest, so could be lots of potential fail points. I don't know if the task status is tracking the whole operation, or just its attempt to run the automated scripts.
Second question I have is, can I do this as part of VM migration itself? by providing all these information, Can I use Relocate function to take care of it all at one go?
Would you also be moving the VM from 1 host to another, and changing the backing of the network? I think that is the only way for relocate's workflow to run the network migration part.
Describe the bug
We are trying to change the IP address of Guest OS post migration. We are collecting the IP Address,DNS, Gateway and Subnet Mask information and passing it to the function to change the IP Address. For the moment, due to the lack of clarity, we are scoping it for only Linux and Windows VMs. Below is the code. This code works both for Windows and Linux and I am getting "success" returned from task object, but for WIndows, it does not change the IP Address and still shows the earlier IP address. What am I doing wrong?
Second question I have is, can I do this as part of VM migration itself? by providing all these information, Can I use Relocate function to take care of it all at one go?
Reproduction steps
Code is below
Expected behavior
Apart from returning "success" New IP should also reflect in VM.
Additional context
No response