Page 1 of 1
[Solved] VM hangs if I leave it alone
Posted: 24. Jul 2009, 19:09
by ReyJavikVI
I have a Xubuntu guest that has to run a particularly long task. Trouble is, if it doesn't receive input of any kind (keyboard, mouse) for 10 or so minutes, it will hang. First it will cover its entire screen with the Xubuntu light blue background, like a screensaver, but it doesn't respond to anything. A couple of minutes later, it will turn entirely black, and I have to reset it. How can I avoid this?
The machine is running Xubuntu 9.04. The task is the compilation of GCC 4.3.2 (just running make).
Re: VM hangs if I leave it alone
Posted: 24. Jul 2009, 19:28
by Perryg
Turn off the screen saver and any power settings in the guest.
Re: VM hangs if I leave it alone
Posted: 24. Jul 2009, 22:00
by ReyJavikVI
It's still happening. I'll try using one of the text-only terminals (Ctrl+Alt+F1-6).
Re: VM hangs if I leave it alone
Posted: 24. Jul 2009, 22:04
by Perryg
Could you share with us the amount of memory the host has and the amount that you have given the guest?
Re: VM hangs if I leave it alone
Posted: 24. Jul 2009, 22:28
by ReyJavikVI
Host has 2 GB, guest 512 MB.
Re: VM hangs if I leave it alone
Posted: 24. Jul 2009, 22:33
by Perryg
Funny thing about compiling. It takes a lot of resources, and VBox will use the memory to its fullest .
Can you try to bump up the memory to 768 Meg and see if it (a) helps or (b) takes longer to stall out.
Re: VM hangs if I leave it alone
Posted: 25. Jul 2009, 04:33
by ReyJavikVI
It hangs at the same spot. The command it's running is "rm -fr .libs/libgmp.lax". It's weird, since I halted the compilation and checked, and that directory is empty.
Re: VM hangs if I leave it alone
Posted: 26. Jul 2009, 17:24
by ReyJavikVI
Well, that's great. I can't even untar the gcc source package without it hanging. I even gave it 800 MB, but nothing helped. Do you think it could be Xubuntu's fault?
Re: VM hangs if I leave it alone
Posted: 26. Jul 2009, 17:34
by Perryg
A lot of the time is is traced to the guest and sometime just settings.
You need to look at the VBox log file when this happens and see if it gives you any indication as to why it fails.
I do have Xubuntu and it appears to run fine on my system, but as you know all systems are not created equally.
If you like you can post your log file here and we can take a look (PLEASE remember to put the file in a code block, it get really long). You can copy the last log entry from the VBox program GUI by clicking Machine -> show logs. We just need the newest one (1)
Re: VM hangs if I leave it alone
Posted: 26. Jul 2009, 21:33
by ReyJavikVI
I managed to extract the thing, but it still hanged during compilation. Here's the log:
Re: VM hangs if I leave it alone
Posted: 26. Jul 2009, 21:47
by vbox4me2
Are you using anything exotic like shared folders or usb?
Re: VM hangs if I leave it alone
Posted: 26. Jul 2009, 22:42
by Perryg
I looked over you log file and nothing just jumps out and hits me in the face.
I do see that you are (or at least it is on) using USB, and it appears that you have about 8 to 10 snapshots.
I would suggest first that you try to turn off USB and see if that is the problem.
Also you are using NAT with the PCnet driver and there has been a problem with that for some users. Switching to the IntelPro/1000 T server may help with that.
Then try to see if you can do something with the snapshots. I don't know for sure that it will cause a problem or not but something to look into.
Oh and do you really have a tftp server running? It shows in the log file? Something else to turn off and see if it helps.
Just do one thing at a time so you can see what it is/was that caused you to have this issue.
Re: VM hangs if I leave it alone
Posted: 26. Jul 2009, 23:46
by ReyJavikVI
I am indeed using shared folders, but I can move its contents to the guest's filesystem if it can help.
I'll try disabling USB and chaning the NAT thing. And I have no idea about the tftp server, it must have been installed by Xubuntu or something. I don't even know what TFTP is.
Thanks for your tips.
Re: VM hangs if I leave it alone
Posted: 27. Jul 2009, 03:19
by ReyJavikVI
I disabled shared folders and USB, and changed the network thing, and it worked. Thank you so much.
Re: VM hangs if I leave it alone
Posted: 27. Jul 2009, 03:23
by Perryg
Great!
Now you should try to turn them back on one at a time and see if continues to operate. When you find the one that makes it fail you will know, and then not use it.
I think it may have been the Virtual Network Adapter, but USB has been a thorn in my back side for a long time.