System.out.println("Attach a new disk");
vm.attachVirtualDisk(new DeviceId("VirtualLsiLogicController", 0, 2),
VmConfigUtil.createVmdkBackingInfo(vm, "data.vmdk", DiskMode.persistent),
true, DiskSize.sizeFromGB(8));
vm.dumpDevices();
/* test setting extra config */
Map<String, String> map = new HashMap<String, String>();
map.put("vmid", "junit-test-vm");
vm.setDbvmConfig(map);