LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do you wake up CentOS7 from suspend mode in Virtual Box? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-you-wake-up-centos7-from-suspend-mode-in-virtual-box-4175578915/)

fanoflq 05-03-2016 12:45 PM

How do you wake up CentOS7 from suspend mode in Virtual Box?
 
To reduce power consumption,
I suspended CentOS7 in virtual box like so:

systemctl suspend

The it turns into a black screen.
But when I click inside the black screen,
there is no response.
I have to shutdown virtual box and re-start.

How do you wake up CentOS7 from suspend mode in Virtual Box?

erik2282 05-03-2016 12:56 PM

Mine does the same so I dont use Suspend on the guest OS. I use the Pause feature on VirtualBox which can be found on the Machine drop-down menu, or by right-clicking the vm on the VirtualBox Manager.

fanoflq 05-03-2016 01:18 PM

Thank.
Not sure if that save power by pausing this way.

How to you un-hide the toolbar in the VM?
That toolbar with menu items like Machine, ...

I also just clicked status bar, and it disappeared.
I did not see any provision to un-hide those bars!

fanoflq 05-03-2016 01:33 PM

Answer to self:

In VM do this:

<Right-Ctrl> + <Home>
View > Menu Bar > Show Menu Bar


<Right-Ctrl> + <Home>
View > Status Bar > Show Status Bar

erik2282 05-03-2016 01:39 PM

Quote:

Originally Posted by fanoflq (Post 5540064)
Thank.
Not sure if that save power by pausing this way.

Not sure either. I don't do it save power though.

Quote:

Originally Posted by fanoflq (Post 5540064)
How to you un-hide the toolbar in the VM?
That toolbar with menu items like Machine, ...

I also just clicked status bar, and it disappeared.
I did not see any provision to un-hide those bars!


HostKey + <HOME>

My host key is the right Ctrl key, which if I remember correctly is default.

This will pop-up menu, go to View and you will see Menu Bar and Status bar. Here you can show/hide.

erik2282 05-03-2016 01:40 PM

ha you beat me.

fanoflq 05-03-2016 01:41 PM

Thank you for your help.

erik2282 05-03-2016 01:43 PM

You're welcome.

fanoflq 05-03-2016 01:45 PM

One more question:
Quote:

I don't do it save power though.
What do you use it for?

erik2282 05-03-2016 02:57 PM

I use it instead of turning off the VM. I guess there's no good reason to use it now after doing some research. I just read this
https://www.virtualbox.org/ticket/8368

Quote:

"Pause" functionality in VirtualBox was intended to temporarily stop VM execution so that VirtualBox process consumed zero host CPU cycles.

Unfortunately it's not the case:

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ P COMMAND
12482 birdie 20 0 688m 619m 586m S 2.0 15.4 0:20.84 2 VirtualBox

I see consistent 2% CPU usage even though supposedly VirtualBox must be 100% idle.
Never gave it much thought.


All times are GMT -5. The time now is 10:35 AM.