final IVcTaskCallback callback) throws Exception {
VcTask task = VcContext.getTaskMgr().execute(new IVcTaskBody() {
public VcTask body() throws Exception {
VirtualMachine vm = getManagedObject();
return new VcTask(TaskType.Snapshot,
vm.createSnapshot(name, description, false, false),
VcVirtualMachineImpl.this, callback);
}
});
logger.debug("snap_vm task on " + this + ":" + name + " created");
return task;