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.
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.
you can using veeam backup
Dear Sreec,
according to below link, I can't Import/Export OVA/OVF in my VCD:
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
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."
#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",....