Esempio n. 1
0
        public void Start(StartMode mode, Dictionary <String, String> env)
        {
            String uuid        = service.IMachine_getId(auth);
            String sessionType = mode.InternalValue();
            String environment = BuildEnvironment(env);

            String progress = service.IMachine_launchVMProcess(auth, Session, sessionType, environment);

            service.IProgress_waitForCompletion(progress, -1);
        }
        public void powerOn()
        {
            string session = service.IWebsessionManager_getSessionObject(vboxRef);

            //service.IMachine_lockMachine( machineRef, session, LockType.Shared );
            service.IMachine_launchVMProcess(machineRef, session, "", "");
            //string console = service.ISession_getConsole( session );
            //service.IConsole_powerUp( console );
            //service.ISession_unlockMachine( session );
        }