Help needed: Trying to make my VirtualBox only using certain CPU's (cgroup)

Issues related to applications and software problems
DJNightchild
Posts: 4
Joined: 2016/08/12 10:50:26

Help needed: Trying to make my VirtualBox only using certain CPU's (cgroup)

Postby DJNightchild » 2018/04/22 18:16:43

I'm trying to make my VirtualBox only using certain CPU's (Quad-Core with Hyper-threading). I've isolated CPU 4 till 7 (0 till 3 used for the system) and created a group where the isolated CPU's are added.

The problem I'm experiencing is when starting the the application with "sudo cgexec -g cpuset:vbox --sticky sudo -i -u djnightchild virtualbox", VirtualBox only uses cpu 4.

I've tried switching the load balancing "cgset -r cpuset.sched_relax_domain_level=1 vbox" but then I get the error: "cgset: the group can't be modified."

I know I can assign how many CPU's I want to use in VBoxManager, but I want to force VBox using the isolated cores.