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 CPU hotplug feature #52

Open hedgehog opened 13 years ago

hedgehog commented 13 years ago
config.vm.customize do |vm|
  vm.cpu_count = 6
  vm.cpu.hotplug = true
end

$ vagrant unplugcpu 2
$ vagrant unplugcpu 3
$ vagrant unplugcpu 4
$ vagrant unplugcpu 5
$ vagrant plugcpu 2
$ vagrant cpus
mximum: 6
active: 3

Note that this makes it less likely that VirtualBox OSE is fully supported, since hotplugging requires Guest Additions be installed, and of OSE it seems the only (Ubuntu) package has a X11 dependency....