detachVirtualDisk(deviceId, destroyDisk);
}
}
private VirtualController attachVirtualController(DeviceId deviceId) throws Exception {
ScsiControllerType scsiType = VmConfigUtil.ScsiControllerType.findController(deviceId.getTypeClass());
if (scsiType != null) {
logger.info("Adding " + deviceId.controllerType + " SCSI controller to VM " + this.getName()
+ " at bus " + deviceId.busNum);
} else {
logger.error("Unsupported SCSI type creation: " + deviceId.controllerType);