示例#1
0
        protected hypervisor_vmware_withoutSnapshots(hypSpec_vmware spec, clientExecutionMethod newExecMethod = clientExecutionMethod.vmwaretools)
        {
            _spec = spec;

            VClient = new cachedVIMClientConnection(_spec);

            _executionMethod = newExecMethod;
            switch (newExecMethod)
            {
            case clientExecutionMethod.vmwaretools:
                executor = new vmwareRemoteExecutor(spec, VClient);
                break;

            case clientExecutionMethod.smbWithPSExec:
                executor = new SMBExecutorWithPSExec(spec.kernelDebugIPOrHostname, spec.kernelVMUsername, spec.kernelVMPassword);
                break;

            case clientExecutionMethod.smbWithWMI:
                executor = new SMBExecutor(spec.kernelDebugIPOrHostname, spec.kernelVMUsername, spec.kernelVMPassword);
                break;

            case clientExecutionMethod.SSHToBASH:
                executor = new SSHExecutor(spec.kernelDebugIPOrHostname, spec.kernelVMUsername, spec.kernelVMPassword);
                break;

            default:
                throw new ArgumentOutOfRangeException("newExecMethod", newExecMethod, null);
            }
        }
示例#2
0
 public vmwareRemoteExecutor(hypSpec_vmware spec, cachedVIMClientConnection VClient)
 {
     _spec = spec;
     conn  = VClient;
 }