Ubuntu unresponsive / UI Breaks

Discussions related to using VirtualBox on Windows hosts.
Post Reply
decisive
Posts: 2
Joined: 20. Feb 2022, 23:01

Ubuntu unresponsive / UI Breaks

Post by decisive »

Hello, I use the ubuntu guest to run vscode and google chrome. Most of the time everything is ok, but sometimes ubuntu gets unresponsive and I can't close any windows, then I have to hard reset.

Also when my monitor turns off due to inactivity, as I turn it on again, the following happens in ubuntu: resolution gets doubled, windows turn black and can't be closed, fonts disappear sometimes completely, sometimes partially. Then I also have to hard reset.

Any help is appreciated, thanks.

edit: changed title
Attachments
VBox.log.zip
(42.63 KiB) Downloaded 2 times
Last edited by decisive on 23. Feb 2022, 22:24, edited 2 times in total.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Ubuntu unresponsive

Post by mpack »

You could try giving the VM more RAM. As I recall, VScode is notoriously resource hungry. You have 26GB available, you only give 4GB to the VM. I would make that at least 8GB (8192MB).

I would also reduce vCPU cores to two. Your host CPU has 6 cores total. You can't assign all of them to guest code and expect the host to carry on happily. Note that VirtualBox is a host app, it does not benefit from cores given to guest apps. 2 cores is usually the sweet spot for VMs, assuming that leaves the host with at least 2 cores for its own use.

Also, I see that the VM is located on drive D. This is fine if D is another local drive. Not fine if it's a USB thumb drive.
decisive
Posts: 2
Joined: 20. Feb 2022, 23:01

Re: Ubuntu unresponsive

Post by decisive »

Thank you so much for your Tipps. Adding RAM actually made Ubuntu more stable overall. Reducing the cores from 6 to 2 though, made it a bit slower. As I understood it, I gave it 6 of 12 available CPU Threads and I had never performance issues on the host machine.

The second problem I mentioned, is still driving me crazy, though. It happens when the monitor turns off due to inactivity and I come back to continue working. In this case, the guest machine is still responsive, but the taskbar gets messed up, same as the top bar and Chrome and the only solution I found, is to blindly click my way to the power off button. You can see how it looks in the attachments.

Also the D: Drive is a SSD

Thanks for your help :)


Edit: I fixed the the breaking UI by disabling auto-resize
Attachments
Screenshot 2022-02-23 201120.png
Screenshot 2022-02-23 201120.png (6.62 KiB) Viewed 720 times
Last edited by decisive on 5. Mar 2022, 15:03, edited 1 time in total.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Ubuntu unresponsive

Post by mpack »

decisive wrote:As I understood it, I gave it 6 of 12 available CPU Threads
That would be an incorrect understanding. Threads are not cores. You have six cores total, so you should not assign more than 4 to the guest OS. Even that is an unfair division, which usually leads to problems - though not as bad as assigning all six cores.

FAQ: Cores vs Threads.
Post Reply