Is something like this possible for VirtualBox and/or VMware Workstation? And if so, which processes should be assigned to the cgroup to ensure the entire virtual machine is limited to the resources specified by the cgroup, regardless of its allocation settings.
I could see this being useful so that the idea of "cpushares" in cgroups can be abstracted to be comparable to % cpu, as defined in virtual machine configuration settings.