Kicksecure ™ Tuning

Your support makes
all the difference!
We believe security software like Kicksecure needs to remain open source and independent. Would you help sustain and grow the project? Learn more about our 10 year success story and maybe DONATE!
Making Kicksecure ™ Faster. Tuning Kicksecure ™.
Introduction[edit]
Applying steps in this chapter can improve Kicksecure ™ performance, but often at the cost of reduced security or an increased fingerprinting risk. Earlier entries in this chapter are easier to apply, while later tuning entries require a greater skill level.
At present the tuning steps are primarily focused on the VirtualBox virtualizer. However, contributions for other virtualizers will be happily considered.
Tested Tuning Steps[edit]
Hardware-accelerated Graphics[edit]
To enable hardware-accelerated graphics for Kicksecure ™, perform these steps on the host:
- Power off the VM.
VirtualBox
→click a VM
→Settings
→Display
→Graphics Controller
→Acceleration:
checkEnable 3D Acceleration
→OK
- Restart the VM.
Also refer to the VirtualBox manual: Hardware-Accelerated Graphics.
Forum discussion: VirtualBox 3D Acceleration
Increase Virtual Machine RAM[edit]
RAM available to Virtual Machines can be increased via VirtualBox settings.
To check how much RAM is free, use free -m
in a Terminal. Consider the example below:
- Shutdown the VM.
- Assign more RAM:
Virtual machine
→Menu
→Settings
→Adjust
Memory slider to 4096
→Hit: OK
- Restart the VM.
See also: Advice for Systems with Low RAM.
Additional CPU Cores[edit]
On systems with multi-core processors, if minor identifiers are not of any concern [1] then the number of cores available to the Virtual Machine(s) can be increased in VirtualBox settings.
Do not use the maximum since that could lead to system instability! Always leave at least one CPU unassigned; for example, if you have four CPUs then assign a maximum of three CPUs to the VM. [2]
- Power off the VM.
VirtualBox
→click a VM
→Settings
→System
→Processor
→Reduce to 3
→OK
- Restart the VM.
Untested Tuning Steps[edit]
Disable CPU Mitigations[edit]
Consider disabling the Spectre Meltdown mitigations. (Related forum discussion.)
This step should be performed in the VM intended for disabled CPU mitigations and on the host operating system if either Kicksecure or security-misc are in use.
1. Remove the relevant CPU mitigations file.
sudo rm /etc/default/grub.d/40_cpu_mitigations.cfg
2. Update grub.
sudo update-grub
3. Reboot.
4. Done.
Nested Paging and VPIDs[edit]
It is possible to increase performance by using largepages and/or Virtual Processor Identifiers (VPIDs). It is unknown if this decreases security or stability. For further information refer to the VirtualBox manual: Nested Paging and VPIDs.
vboxmanage modifyvm Kicksecure-XFCE --largepages on
vboxmanage modifyvm Kicksecure-XFCE --largepages on
vboxmanage modifyvm Kicksecure-XFCE --vtxvpid on
vboxmanage modifyvm Kicksecure-XFCE --vtxvpid on
Memory Ballooning, Page Fusion and Memory Overcommitment[edit]
Memory ballooning worsens security because it is a vector for side channel attacks on memory; see here for further information. [3]
For other security considerations, refer to the VirtualBox manual: Memory Overcommitment.
Undocumented Tuning Settings[edit]
There are probably more tuning-related settings, but these are currently undocumented at Kicksecure ™. Interested readers can review the VirtualBox manual for relevant settings, which are unlikely to be bundled under a "tuning" chapter.
To view all settings, run.
vboxmanage showvminfo Kicksecure-XFCE
Next, learn about all of these settings by reviewing the VirtualBox manual.
PCI Passthrough[edit]
This setting can improve graphics performance dramatically, but it worsens security because VMs should not have direct access to physical hardware.
In simple terms, this feature allows the direct use of physical PCI devices on the host by the guest even if the host does not have drivers for the particular device. For further information, refer to VirtualBox Manual: PCI Passthrough.
See Also[edit]
Footnotes[edit]
- ↑ Adding CPU cores is considered a minor risk.
- ↑
VirtualBox ticket: VirtualBox should now prohibit assigning all physical CPUs to a VM and/or fix VirtualBox CPU assignment manual
.
- ↑ This entry relates to KVM but the research similarly applies to other virtualizers unless they have implemented and documented specific protections.