1

I installed Ubuntu with a VirtualBox on my mac. But the more I use Ubuntu, the more I install package, the more it becomes very slow to launch on my VirtualBox. By the way, it makes slow all the apps running on my mac. Is there any other virtual environment more efficient than VirtualBox ?

5
  • 6
    Any performance issues with virtualization are generally caused by either having insufficient host hardware, or having a very hardware-intensive host. The virtual environment is rarely an issue.
    – nanofarad
    Sep 12, 2012 at 22:46
  • could you precise what you mean by insufficient host hardware ? Do you mean I must increase the disk space allowed to Ubuntu ? Sep 12, 2012 at 22:48
  • 1
    No. I mean that the physical machine you are running Ubuntu on(your mac) does not have enough resources for a fast boot. You may want to upgrade that machine.
    – nanofarad
    Sep 12, 2012 at 22:49
  • Adding as answer...
    – nanofarad
    Sep 13, 2012 at 19:11
  • I hate to be a nitpicker, but this is more of a mac-related question, since the host machine is mac. Anyway, you could try to install ubuntu as dual boot? I'm not aware of the process, but see here: lifehacker.com/5531037/… -- omgubuntu.co.uk/2011/10/dual-boot-os-ubuntu Sep 13, 2012 at 19:49

2 Answers 2

7

Before going into detail about Virtualbox, VMware or any other virtualization technology there are a couple of things that need to be checked. When starting to use virtualization one must have the correct hardware or better yet, a more capable and optimized hardware to help with virtualization:

  1. CPU and Motherboard technologies like AMD's AMD-V and Intel's VT-X provide a huge leap in performance over hardware that does not have it, specially in the Input/Output.

  2. Assuming that we have the CPU/Mobo cover, we then look into the amount of memory available. Virtualization requires in most cases that we assign real amounts of memory to a virtualized guest. The more memory assign to the guest, the less memory we have available for the host. So this memory sharing game can improve performance for the guest while lowering for the host or it can be enough to have both running perfectly.

  3. After this, we then have hard disk performance. Is not the same to use a 5400RPM HDD than a 7200RPM HDD than a SSD. The amount of reads and writes the virtualization will do, plus the amount the host will be doing can make the HDD the bottleneck of the problem if the HDD is very slow.

  4. Lastly in the hardware part we have the video and sound card. If the host has an Intel card that can only deliver OpenGL 1.x, we can't expect that the guest will offer OpenGL 4.x. The guest will work with whatever is available from the real graphics card (assuming the virtualization technology and OS allow direct access to the video card). Same goes for the sound.

So taking into consideration the CPU, Motherboard, RAM, HDD and Video/Audio we can play with it and have a virtualized hardware ready host.

If all requirements are met, then we can proceed to see what host OS to use. Some OSes are better at working with virtualization technology than others. Some are even better on specific hardware. The mileage depends on the hardware and OS involved.

With that in mind, in the software department, the guest OS also changes the game. Depending on the OS used in the guest, and the type of OS used in the host, it can have a positive or negative effect on overall performance.

So as you can see there are a lot of variables. Along with everything mentioned above, we also end with the question of:

  • How will you use the virtualized environment? For what purpose or need?

  • What virtualization technology is better for me? Virtualbox, VMWare, Parallels (since you mention a MAC), KVM, QEMU, etc...

  • What version to use and what does each version offer?

  • Does it repair a bug that affected me?, does it increase or decrease performance?

  • Will I be using it with a network interface, creating a virtual LAN, accessing a remote PC or offering a remote connection?

  • What Host is better with a specific virtualization software and what Guest is better for it?

So here are many questions that one must ask before going into the virtualization world.

My suggestions and also to add to your question would be to add the type of hardware you have and what type of use you will be doing with Virtualbox.

5

Any performance issues with virtualization are generally caused by either having insufficient host hardware, or having a very hardware-intensive host. The virtual environment is rarely an issue. This means that that the physical machine you are running Ubuntu on(your mac) does not have enough resources for a fast boot. You may want to upgrade that machine.

However, certain settings can improve performance. Make sure that under the VM's options, AMD-V/VT-x is enabled, as well as nested paging. If they cause issues, disable nested paging first, then the AMD-V if the problem is not resolved. Also, make sure you have at least 768MB dedicated to Ubuntu. At least 1.5GB is recommended i you have enough RAM in your system. of course, a faster CPU will make booting and running faster.

Another note: Running memory tests in VirtualBox is useless. If there is indeed an issue with your memory, the host would probably crash, not the guest.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .