sb.append("\nUser: ").append(this.getRepoUser());
sb.append("\nImage: ").append(this.getDiskImage());
logger.debug(sb.toString());
}
final _AsyncCreateRequest req = this.reprFactory._newBackfillRequest();
req.setInstanceType(SIConstants.SI_TYPE_BASIC);
req.setName(name);
req.setRequestedNics(this.getNetwork());
final _ResourceAllocation ra = this.reprFactory._newResourceAllocation();
req.setRequestedRA(ra);
ra.setNodeNumber(numInstances);
ra.setMemory(this.instanceMem);
req.setShutdownType(CreateRequest.SHUTDOWN_TYPE_TRASH);
req.setInitialStateRequest(CreateRequest.INITIAL_STATE_RUNNING);
ra.setArchitecture(this.cpuArch);
ra.setSpotInstance(true);
final _RequiredVMM reqVMM = this.reprFactory._newRequiredVMM();
reqVMM.setType(this.vmmType);
reqVMM.setVersions(new String[]{this.vmmVersion});
req.setRequiredVMM(reqVMM);
final _VMFile file = this.reprFactory._newVMFile();
file.setRootFile(true);
file.setBlankSpaceName(null);
file.setBlankSpaceSize(-1);
file.setURI(imageURI);
file.setMountAs(this.rootFileMountAs);
file.setDiskPerms(VMFile.DISKPERMS_ReadWrite);
req.setVMFiles(new _VMFile[]{file});
return req;
}