Copyright Hé - License GPL

Speed ​​up and optimize a VirtualBox VM

virtual machine   2020-10-05 15:50:33

You have just created and installed a new VM on Virtualbox . It works well you want to optimize the parameters and settings of your VM. This in order to make your VM as fast as possible. What are the parameters to speed up your VirtualBox VM? What must be changed and configured for your VM to gain speed? In this article, you will find all the explanations to make your VirtualBox virtual machine faster. noshowmobile "> Table of contents 1 Speed ​​up and optimize a VirtualBox VM 1.1 Add RAM and install SSD 1.2 Create VM with disk hard fixed 1.3 InstaCheck the VirtualBox Guest Additions 1.4 Allocate more memory to the VM 1.5 Add cores to virtualized processor 1.6 Activate VT-x / AMD-V paravirtualization 1.7 Speed ​​up "Virtualbox display 1.8 Configure a faster network card 1.9 Optimize Windows 10 power options 1.10 Speed ​​up Windows 10 2 Links 3 Speed ​​up and optimize a VirtualBox VM Add RAM and install an SSD The speed of your VM depends on the power of your PC . So on an old PC with little RAM memory, the VM will be slower compared to a newer PC. So, if your PC is relatively old, it is recommended: run the VM on an SSD , the performance will be better than with an HDD: What is an HDD hard drive and an SSD and their differences Have at least 8 GB of RAM but especially 16 GB of RAM. In this case, additional memory may be necessary If unfortunately the PC is too old, for example with only 4 GB of RAM, you will quickly be limited. You then have no other choice but to change your PC for a more efficient one. Then there are some settings to make to speed up a VirtualBox VM . Create a VM with a fixed hard disk When you create a VM, it is rather recommended to create a fixed hard drive and not dynamically allocated. This is because when using space on a dynamically allocated virtual hard drive, VirtualBox must support and adjust the "storage space of the virtual machine, which leads to a decrease in performance. Of course, in this case, you must indicate a sufficiently large size at the start so as not to end up with a full disk . Install VirtualBox Guest Additions VirtualBox Guest Additions is a add-on that we install on the virtual machine. It offers a better integration between the VM and the host. Finally it canalso improve the performance and speed of the VM. To install them: Start the VM and the guest operating system Then click on the Peripherals menu then Insert the CD image of the guest additions Open the DVD-Rom drive then run the setup This should give a performance boost on the display. More details in this full article: How to start and use VirtualBox Allocate more memory to the VM Then you can add more RAM to the VM. The more memory it has, the faster it will be. Of course the amount depends on the amount of memory available on the host and therefore on its hardware configuration. To do this: Click on System then on the left tab Motherboard Then add RAM There are three extended featuresues and the first is Enable I / O APIC. This slows down the virtual machine very slightly, but is essential for running 64-bit guest operating systems like Windows and Linux. This means that a 32-bit operating system can run a bit faster because this setting can be disabled. Add Cores to Virtualized Processor A PC "s processor has multiple cores (each core is like a separate processor) and has also hyperthreading, which makes each core work as if it were two cores. This allows calculations to be run in parallel. I talk about it in the "article: Characteristics and operation of a computer"s processors VMware allows youto define the number of processor and the resources allocated. Again it depends on the type of processor: In the parameters of the VM, click on System Then tab Processor Increase the number of processors Activate paravirtualisation VT-x / AMD-V Oracle VM VirtualBox provides paravirtualization interfaces to improve time accuracy and performance of guest operating systems . To benefit, enable VT-x / AMD-V virtualization technology by following this guide: How to activate virtualization technology (VT-x and AMD-V) on my PC Then: Open VM settings Then System on the left Then click on the Acceleration Make sure that paravirtualization interface is default and that hardware virtualization is enabled. Depending on the OS, you can test the following settings for speed and performance gain: If you are on Windows, you can set to Hyper-V For Linux, set to KVM The Virtualbox document regarding this virtualization technology is available here . The paravirtualization interface offers the following options: Default : The default option will choose an appropriate interface based on the type of guest operating system when starting the virtual machine. This is the default option chosen when creating new virtual machines. Inheritance (Legacy) : The legacy option is chosen for VMs that were created with earlier versions of VirtualBox and will choose a paravirtualization interface when startingthe VM with VirtualBox 5.0 and newer. Minimum : announces the presence of a virtualized environment. Additionally, reports TSC and APIC frequency to the guest operating system. This provider is required to run all Mac OS X guests. KVM : Presents a Linux KVM hypervisor interface that is recognized by Linux kernels from version 2.6.25. This provider is recommended for Linux guests. Hyper-V : Features a Microsoft Hyper-V hypervisor interface that is recognized by Windows 7 and Windows systems more recent operation. The VirtualBox implementation currently supports paravirtualized clocks, APIC rate reports, guest debugging, guest crash reports, and relaxed timer checks. This provider is recommended for Windows guests. Speed ​​up the display of Virtualbox As for RAM memory, you can also add video memory. This speeds up the display but depends on the type of graphics card your PC has. The more memory the video hardware has, the better the performance. This is partly why fast video cards have so much memory. VirtualBox allows you to set the amount of video memory available for display and setting it to maximum will optimize performance. Click on the Display tab Increase video memory Also make sure that 3D acceleration is enabled with VboxSVGA graphics control Finally for PCs with two graphics cards, make sure VirtualBox is running with the most powerful one. To do this, follow this tutorial: Windows 10: adjust the performancesgraphical ances of an application After that, check if it made your VM faster. Configure a faster network card Then you can set the network interface to Intel PRO / 1000. It works on most operating systems and allows a Gigabit speed. Very useful if your LAN supports it. From the parameters of the VM, open the Network tab on the left Expand Advanced Then select Intel PRO / 1000 Optimize Windows 10 power options If your host machine is Windows, you can also improve the performance and speeds of your VM by adjusting the power options . Indeed, we can gain a little speed by switching them to maximum performance. Plus d "intraining: Optimizing CPU power options on Windows Speed ​​up Windows 10 Finally if your VM is in Windows 10, you can speed up the VM by lightening the guest OS . To do this, follow the advice on this page: Speeding up Windows 10: The Complete Guide Links VirtualB ox: how to create a virtual machine VirtualBox: run Linux Ubuntu, Windows or Debian How to start and use VirtualBox You found this article useful and interesting, do not hesitate to share it ... Speed ​​up and optimize a VirtualBox VM