clavelstephane
Enthusiast
Enthusiast

remove cloud.uuid parameter without VM downtime?

Jump to solution

Hello

I'm looking for a way to move VMs currently being managed by vCloud Director to vSphere managed without VM downtime.

I've found how to remove cloud.uuid using powercli:

$vmConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec

$vmConfigSpec.extraconfig = New-Object VMware.Vim.optionvalue

$vmConfigSpec.extraconfig[0].Key="cloud.uuid"

$vmConfigSpec.extraconfig[0].Value=""

$vm.ReconfigVM($vmConfigSpec)

But I fail to have this taken into account, I tried to reload the vmx file and to vmotion the VM:

https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=10260...

https://virtuallyjason.blogspot.in/2015/10/powercli-command-to-reload-vmx.html

http://www.virtuallyghetto.com/2014/03/a-kitten-is-also-harmed-every-time-you-edit-a-vmx-file-by-han...

Is there a way to apply this change in vmx file without VM downtime ?

thanks

0 Kudos
1 Solution

Accepted Solutions
clavelstephane
Enthusiast
Enthusiast

because I'm looking at doing this without downtime.

The answer is:

(Get-AdvancedSetting -entity $vm -Name cloud.uuid)|Remove-AdvancedSetting

found in Tomas Fojta's blog post below:

How to Export Running VM from vCloud Director – Tom Fojta's Blog

View solution in original post

0 Kudos
2 Replies
Sreec
VMware Employee
VMware Employee

Why don't you clone the VM from VC and delete the VCD VM once after making all the required changes ?

Cheers,
Sree | VCIX-4X| VCAP-4X| VExpert 5x
Please KUDO helpful posts and mark the thread as solved if answered
0 Kudos
clavelstephane
Enthusiast
Enthusiast

because I'm looking at doing this without downtime.

The answer is:

(Get-AdvancedSetting -entity $vm -Name cloud.uuid)|Remove-AdvancedSetting

found in Tomas Fojta's blog post below:

How to Export Running VM from vCloud Director – Tom Fojta's Blog

View solution in original post

0 Kudos