To make a virtual machine from the underlying vSphere infrastructure available to your VMware Cloud Director server, you can import it and save it as a vApp.

Prerequisites

  • Verify that you are connected to a VMware Cloud Director server as a provider administrator.

  • Verify that you are connected to a vCenter Server system.

Procedure

  1. Retrieve the vSphere virtual machine that you want to import.
    $myVm = Get-VM -Name 'MyVMToImport'
  2. Retrieve the organization vDC to which you want to import the virtual machine.
    $myOrgVdc = Get-OrgVdc -Name 'MyOrgVdc'
  3. Import the virtual machine and store it as a vApp.
    Import-CIVApp -VM $myVm -OrgVdc $myOrgVdc