mitchellh / virtualbox

[ABANDONED] Create and modify virtual machines in VirtualBox using pure ruby.
http://mitchellh.github.com/virtualbox/
MIT License
245 stars 45 forks source link

Add configurable limit on host CPU time that a virtual CPU will use #54

Closed hedgehog closed 13 years ago

hedgehog commented 13 years ago

In order to exercise apps and system resources that use multiple CPU's, and in order to run several multiple CPU VM's on one host, it is useful to cap the % (1-100) of cpu time a virtual CPU can use.

config.vm.cpu.execution_cap = 100 # default
config.vm.cpu.execution_cap = 1    # only use 1% of host CPU time.
mitchellh commented 13 years ago

Done. This will be out in virtualbox 0.9.0 (which will coincide with a Vagrant 0.8.0)

Will push in a moment.