Software & AppsOperating SystemLinux

How To Fix Ubuntu 18.04 LTS Freezing in Windows VirtualBox

Ubuntu 21

If you’re running Ubuntu 18.04 LTS on a Windows VirtualBox and experiencing freezing issues, you’re not alone. This is a common problem faced by many users. Thankfully, there are several solutions that can help you resolve this issue. In this article, we will walk you through these solutions step-by-step.

Quick Answer

To fix Ubuntu 18.04 LTS freezing in Windows VirtualBox, you can try adjusting VirtualBox settings such as increasing the number of processors, enabling PAE/NX, increasing video memory, and disabling 3D acceleration. Additionally, changing the Paravirtualization Interface, disabling Hyper-V in Windows, switching the graphics controller, and disabling the Solid-state Drive option for the virtual hard disk can also help resolve the freezing issue.

Solution 1: Adjust VirtualBox Settings

One of the most common solutions involves adjusting the settings of your VirtualBox. Here’s how to do it:

  1. Increase the number of processors: In the VirtualBox settings, navigate to System > Processor tab. Increase the number of processors. This can help speed up the virtual machine and prevent freezing.
  2. Enable PAE/NX: Still in the System settings, go to the Processor tab and check the box that says “Enable PAE/NX”. PAE (Physical Address Extension) allows 32-bit CPUs to access more than 4GB of memory, and NX (No-eXecute) provides protection against malicious software.
  3. Increase video memory and disable 3D acceleration: Navigate to Display settings. Increase the video memory to the maximum (128 MB) and uncheck the “Enable 3D Acceleration” box. This can help resolve any screen-related issues that might be causing the freeze.

Solution 2: Change Paravirtualization Interface

Another solution that has worked for some users is changing the Paravirtualization Interface. Here’s how:

  1. In the VirtualBox settings, navigate to System > Acceleration tab.
  2. Change the “Paravirtualization Interface” from “Legacy” to “Default”. This setting helps improve the performance of your virtual machine.

Solution 3: Disable Hyper-V in Windows

Hyper-V is a virtualization feature in Windows that can sometimes conflict with VirtualBox, causing the Ubuntu 18.04 LTS to freeze. To disable Hyper-V:

  1. In Windows, search for “Turn Windows features on or off”.
  2. In the list that appears, uncheck the box next to Hyper-V.
  3. Restart your computer.

Solution 4: Switch Graphics Controller

Switching the graphics controller in the VirtualBox settings can also help. Here’s how:

  1. In the VirtualBox settings, navigate to Display > Screen tab.
  2. Change the “Graphics Controller” from “VMSVGA” to “VBoxSVGA”. This can help resolve any graphics-related issues that might be causing the freeze.

Solution 5: Disable Solid-state Drive Option

If you’re still experiencing freezing during boot, you might want to disable the Solid-state Drive option for the virtual hard disk. Here’s how:

  1. In VirtualBox Manager, select the VM.
  2. Go to Settings > Storage.
  3. Under SATA, select the VDI.
  4. Uncheck the Solid-state Drive box.

By following these steps, you should be able to resolve the freezing issue with Ubuntu 18.04 LTS in Windows VirtualBox. Remember, every system is unique, so you might need to try different solutions or a combination of them to find what works best for you. Good luck!

How can I access the VirtualBox settings?

To access the VirtualBox settings, open the VirtualBox Manager and select the virtual machine you want to modify. Then, click on the "Settings" button in the toolbar or go to the "Machine" menu and select "Settings".

How do I increase the number of processors in VirtualBox?

To increase the number of processors in VirtualBox, go to the settings of your virtual machine and navigate to the "System" tab. Then, click on the "Processor" tab and adjust the "Number of Processors" slider to increase the count.

What is PAE/NX and why should I enable it?

PAE (Physical Address Extension) is a feature that allows 32-bit CPUs to access more than 4GB of memory. NX (No-eXecute) provides protection against malicious software by preventing the execution of certain types of code in memory. Enabling PAE/NX in VirtualBox can improve the performance and security of your virtual machine.

How do I enable PAE/NX in VirtualBox?

To enable PAE/NX in VirtualBox, go to the settings of your virtual machine and navigate to the "System" tab. Then, click on the "Processor" tab and check the box that says "Enable PAE/NX".

How do I change the Paravirtualization Interface in VirtualBox?

To change the Paravirtualization Interface in VirtualBox, go to the settings of your virtual machine and navigate to the "System" tab. Then, click on the "Acceleration" tab and change the "Paravirtualization Interface" from "Legacy" to "Default".

How do I disable Hyper-V in Windows?

To disable Hyper-V in Windows, search for "Turn Windows features on or off" in the Windows search bar. In the list that appears, uncheck the box next to Hyper-V. Then, restart your computer for the changes to take effect.

How do I switch the graphics controller in VirtualBox?

To switch the graphics controller in VirtualBox, go to the settings of your virtual machine and navigate to the "Display" tab. Then, click on the "Screen" tab and change the "Graphics Controller" from "VMSVGA" to "VBoxSVGA".

How do I disable the Solid-state Drive option in VirtualBox?

To disable the Solid-state Drive option in VirtualBox, go to the settings of your virtual machine and navigate to the "Storage" tab. Under the SATA controller, select the virtual hard disk (VDI) and uncheck the "Solid-state Drive" box.

What should I do if none of the solutions mentioned work for me?

If none of the mentioned solutions work for you, you may need to explore further troubleshooting options. You can seek help from online forums and communities dedicated to VirtualBox and Ubuntu, or consider reaching out to the official support channels for VirtualBox or Ubuntu for additional assistance.

Leave a Comment

Your email address will not be published. Required fields are marked *