Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I reduce input latency in a VirtualBox VM?

I've installed a Ubuntu VM using VirtualBox, but when I start it up the input lag is really noticeable. For example, when I type something there is a noticeable delay before the words show up on the screen. What can I do to reduce this lag?

like image 840
Adam Avatar asked Apr 03 '16 05:04

Adam


People also ask

How do I stop virtual machine lagging?

If you don't provide enough CPU resources for a VM, software inside the VM might run slowly with lags. To fix this, set a VM to use more CPU cores or add more virtual processors. Also, consider upgrading the hardware of your host machine if you have an old processor with a low number of cores, cache, and low frequency.

Why does VirtualBox lag so much?

VirtualBox slows down the host pc as when running, Virtual Box and the guest OS will consume the host PC's memory and cpu time. If you want to ask how to limit resources, then you have to modify the size of memory and disk assigned for the specific virtual box.


Video Answer


1 Answers

Here are some things to try (all of these changes must be done when the VM is powered down):

•Give the VM more memory (RAM) to work with. I bumped mine up from ~1gb to 4gb.

Right click the VM icon, Settings -> System -> Motherboard tab, move the Base Memory slider bar to give the VM access to more of the host machine's memory.

• Give the VM more CPU cores to work with. I went from 1 to 4.

Right click the VM icon, Settings -> System -> Processor tab, move the Processors slider bar to allow the VM access to more cores on the host machine's CPU. You can also adjust how much of the host CPU the VM is allowed to use (i.e. what percentage) by moving the Execution Gap slider.

• Enable 3D graphics acceleration to the VM. Right click the VM, Settings -> Display -> check the Enable 3D Acceleration tick box.

Update: I switched to VMWare Player because it's much faster (even with a single core I didn't notice any lag). It's free for non-commercial use: http://www.vmware.com/products/player/playerpro-evaluation.html.

like image 99
Adam Avatar answered Oct 19 '22 17:10

Adam