VMware Cloud Community
clavelstephane
Enthusiast
Enthusiast
Jump to solution

remove cloud.uuid parameter without VM downtime?

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
Jump to solution

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
Jump to solution

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

Cheers,
Sree | VCIX-5X| VCAP-5X| VExpert 7x|Cisco Certified Specialist
Please KUDO helpful posts and mark the thread as solved if answered
0 Kudos
clavelstephane
Enthusiast
Enthusiast
Jump to solution

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

0 Kudos