I am new to Virtual Box. To complete one of the project I choose VirtualBox. I am running Kubuntu 64 bit OS on Virtual Box and Mac OS High Sierra as Host OS. I am running a Perl Script in guest OS which will take more than 24 hours to finish. Everything looks fine until I observed this fact. Whenever host OS logs off or Screens locks or idle for some time, the script running in guest OS pauses and resumes only when the Host OS active again. I cannot turn on Host OS display for every 5 or 10 minutes. Please suggest me a way to keep running VirtualBox guest OS even host OS is idle or log off state.

Thank you

  • 1
    Does the script stop when the host logs off, or when it goes into sleep mode? – user234461 Nov 5 '17 at 8:17
  • Script pauses when host OS becomes idle and resumes when host system active – Thulasi R Nov 5 '17 at 8:23
  • Script is not dieing just stops execution – Thulasi R Nov 5 '17 at 8:24
  • OK, does it stop execution immediately when the host logs off? I'm wondering whether the host is going to sleep. – user234461 Nov 6 '17 at 20:19
  • Also, you might find this answer useful – user234461 Nov 6 '17 at 20:20

Sorry for asking this Question

I found the answer..It lies in Guest OS. In power management, there is an option like after 5 minutes of inactivity system will go to either Screen lock or log off or Suspend. By default it was Suspend. Earlier I din't find check the option. Now I choose screen lock and it is working fine.

Thank you


I've experienced the same thing and have found using the Amphetamine application will allow me to prevent the MacOS from sleeping whenever the VM is running. Just have to set a trigger for the VM.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.