book
Article ID: 344509
calendar_today
Updated On:
Issue/Introduction
This article provides information about backing up and restoring virtual machine templates via VMware APIs.
Environment
Virtual Disk Development Kit 1.1.1
VMware Virtual Disk Development 1.2
Virtual Disk Development Kit 1.1.0
Virtual Disk Development Kit 1.2
Virtual Disk Development Kit 1.0.1
Resolution
To perform a backup, templates must be converted into virtual machines. To perform a restore, virtual machines must be converted into templates.
To perform a backup:
- Convert the virtual machine template to a virtual machine. For more information, see
- Take snapshot of the virtual machine. For more information, see Taking Snapshots in the vSphere Web Services SDK Programming Guide.
- Back up the virtual machine using vSphere APIs and VDDK APIs. For more information, see:
-
Convert the virtual machine back to a virtual machine template. For more information, see Creating Virtual Machine Templates in the vSphere Web Services SDK Programming Guide.
Note: When the operation completes, the virtual machine no longer exists.
To perform a restore:
- Restore the virtual machine using vSphere APIs and VDDK APIs. For more information, see:
-
Convert the restored virtual machine back to a virtual machine template. For more information, see Creating Virtual Machine Templates in the vSphere Web Services SDK Programming Guide.
Note: When the operation completes, the virtual machine no longer exists.