// create a snapshot so that we can do linked clone
vm.createSnapshot("snap1", "snap1");
// test finding snapshots
vm.createSnapshot("snap2", "snap2");
VcSnapshot snap1 = vm.getSnapshotByName("snap1");
AuAssert.check(snap1 != null);
VcSnapshot snap2 = vm.getSnapshotByName("snap2");
AuAssert.check(snap2 != null);
System.out.println("snap1: " + snap1 + " snap2: " + snap2);
System.out.println("Mark the VM as template");
vm.markAsTemplate();