ManivelR
Enthusiast
Enthusiast

Migrate a VM from vCloud director v10 to standalone ESXi

Hi Team,

I have one non-critical VM and like to migrate to another standalone ESXi which has local storage.

How to do that?

 

Source location

Windows VM 2019

Backed by vCloud director v10

Its located on shared storage.

 

Destination location.

Standalone ESXi

Local datastore.

 

 

 

0 Kudos
6 Replies
Sreec
VMware Employee
VMware Employee

Export&Import OVF is one option since the destination is standalone ESXi. If not add ESXi temporarily to source VC and do an SVmotion ( ensure we do proper VCD cleanup ) and remove the host after the migration. 

Cheers,
Sree | VCIX-4X| VCAP-4X| VExpert 6x|Cisco Certified Specialist
Please KUDO helpful posts and mark the thread as solved if answered
0 Kudos
anhphan8861
Contributor
Contributor

you can using veeam backup

0 Kudos
Omid_Heravi
Enthusiast
Enthusiast

Dear Sreec,

according to below link, I can't Import/Export OVA/OVF in my VCD:

https://communities.vmware.com/t5/VMware-vCloud-Director/Get-error-when-deployed-OVA-from-vCloud-Dir...

 

0 Kudos
moellerjot
Enthusiast
Enthusiast

If you want to download the virtual machine there is a way to do this via powershell: (poweredOff)

Get-VM -Name MyTest-VM | Export-VApp -Destination ‘/data/export‘ -Format OVA
https://developer.vmware.com/docs/powercli/latest/vmware.vimautomation.core/commands/export-vapp/#Ex...

Is this what you are looking for? Is this a possible solution for you ? 

Best Regards 

moellerj

0 Kudos
baszek
Enthusiast
Enthusiast

Hi @moellerjot 

How can I export it with your command? Get-VM is used only with Connect-VIServer. 
To connect to VDC you have to use Connect-CIServer -Server https://xxxxxx.com/ -org 2XXX

After connecting to VDC using Connect-CIServer you can't use GET-VM "Get-VM You are not currently connected to any servers. Please connect first using a Connect cmdlet."

If am trying to use "Get-CIVM -Name VMname | Export-VApp -Destination 'D:\VM' -Format OVA" it says that "command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input."

 

0 Kudos
moellerjot
Enthusiast
Enthusiast

#Yes this is a vCenter commandled, you are right. 

This is the way I connect to my vCenter via a secret Store: 

 

 

$vCenter = "myhost@vcenter.net"
$username = "administrator@vsphere.local"
$password = ( Get-Secret -Name vCenter@vsphere.local )
$cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $username, $password
$vConnection = Connect-VIServer -Server $vCenter -Credential $cred

 

 

 

Get-VM -Name MyTest-VM | Export-VApp -Destination ‘/data/export‘ -Format OVA

 


If no success, look into this Post from  @LucD -> Cannot-connect-to-vcenter-server-via-PowerCLI/td-p/529964 

 

Reimport your vCenter vm into vCD vAPP by doing this: 

In vAPP -> add VM -> "Import from vCenter",....

 

 

 

 

0 Kudos