Skip to content

Instantly share code, notes, and snippets.

Created January 26, 2016 13:21
Show Gist options
  • Save anonymous/5acb19edda22e18b6d1a to your computer and use it in GitHub Desktop.
Save anonymous/5acb19edda22e18b6d1a to your computer and use it in GitHub Desktop.
VirtualBox VMs optimisation
1. Set paravirtualization provider KVM for Linux (since 2.6.25) gests and Hyper-V for Windows (since Windows 7) guests.
2. Set ICH9 chipset for guest machine (may have some issues).
3. Enable nested paging.
4. Enable VT-x virtualzation. Notice: Runing both software and hardware virtualization simlutaneously slows own emulation.
5. Enable "Virtual Processor Identifiers" (VPIDs). Has large performance impact but guest's CPU may depend on hosts's CPU:
VBoxManage modifyvm VM_NAME --vtxvpid on
6. Enable large pages - gives up to 5% performance boost:
VBoxManage modifyvm VM_NAME --largepages on
7. Enable SSE 4.1 and 4.2 for guest VM - experemental option:
VBoxManage setextradata VM_NAME VBoxInternal/CPUM/SSE4.1 1
VBoxManage setextradata VM_NAME VBoxInternal/CPUM/SSE4.2 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment