[Solved] Lost connection to guest

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
PaulaCafeld
Posts: 12
Joined: 10. Sep 2012, 10:37

[Solved] Lost connection to guest

Post by PaulaCafeld »

Hello!
I installed Virtualbox 4.2.18-88780 on a Mac Mini running MacOS X 10.8.4. There is a Ubuntu 12.04 Server as guest.
I can enter the webapplication that is hosted on this guest. After a while it is not possible to access the app anymore. I have to login to the Mac via VNC, click in the guest window and strike a key. And only then I can access the webapp again. It seems that the virtual network interface (bridge mode) enters some kind of sleep mode :shock: What can I do to avoid this?
Last edited by PaulaCafeld on 13. Sep 2013, 10:51, edited 1 time in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Lost connection to guest

Post by Perryg »

Are you sure it isn't the guest that has gone to sleep? What about the guests power management?
PaulaCafeld
Posts: 12
Joined: 10. Sep 2012, 10:37

Re: Lost connection to guest

Post by PaulaCafeld »

Perryg wrote:Are you sure it isn't the guest that has gone to sleep? What about the guests power management?
I can click into the guest's virtualbox-window, press a key and I immediately get the console prompt. So I'm sure that the guest didn't hibernate or supend.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Lost connection to guest

Post by Perryg »

I can click into the guest's virtualbox-window, press a key and I immediately get the console prompt. So I'm sure that the guest didn't hibernate or supend.
Not to be augmentative but doesn't this actually prove the guest was in power save mode (notice I did not say suspend or hibernate). If you had opened it and had the prompt without hitting a key I would have agreed with you.

You can disable all this with a simple command and see if it stops the problem.

Code: Select all

$ setterm -powersave off -blank 0
If it does then add the statement to /etc/rc.local to make it permanent.
PaulaCafeld
Posts: 12
Joined: 10. Sep 2012, 10:37

Re: Lost connection to guest

Post by PaulaCafeld »

Doesn't seem to work :cry:
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Lost connection to guest

Post by Perryg »

The command doesn't work or it does not fix the issue?
PaulaCafeld
Posts: 12
Joined: 10. Sep 2012, 10:37

[Solved] Lost connection to guest

Post by PaulaCafeld »

Perryg wrote:The command doesn't work or it does not fix the issue?
It didn't fix the issue.
But I solved anyway :D I switched off every powersaving parameter on the Mac hostsystem (System settings -> Power). I think, this prevents the virtual network interfaces to fall into a kind of suspend mode.
Thank you for your help.

Paula
Post Reply