title: How can I create a VM in Vagrant with VirtualBox with two CPUs?
body: <p>On Windows 7 64 bit trying to start up a VM (Ubuntu 32 bit). I'm having trouble getting my VM to show two cores despite adding the <code>modify vm</code> command in my Vagrantfile. My Vagrant version is 1.2.2.</p>
  
  <pre><code># -*- mode: ruby -*-
  # vi: set ft=ruby :
  
  Vagrant.configure("2") do |config|
    config.vm.box = "precise32"
    config.vm.box_url = "http://files.vagrantup.com/precise32.box"
  
    config.vm.provider :virtualbox do |vb|
      vb.customize ["modifyvm", :id, "--memory", "2048"]
      vb.customize ["modifyvm", :id, "--cpus", "2"]   
    end  
  end
  </code></pre>
  
  <p>With this Vagrantfile I issue the <code>vagrant up</code> command. Then I issue <code>vagrant ssh</code> followed by <code>lscpu</code> which yields:</p>
  
  <pre><code>Architecture:          i686
  CPU op-mode(s):        32-bit, 64-bit
  Byte Order:            Little Endian
  CPU(s):                1
  On-line CPU(s) list:   0
  Thread(s) per core:    1
  Core(s) per socket:    1
  Socket(s):             1
  Vendor ID:             GenuineIntel
  CPU family:            6
  Model:                 58
  Stepping:              9
  CPU MHz:               2565.513
  BogoMIPS:              5131.02
  L1d cache:             32K
  L1d cache:             32K
  L2d cache:             6144K
  </code></pre>
  
  <p>I think CPU(s) should show 2, so my VM only has one CPU right now. How can I get 2 CPUs to show up when I run <code>lscpu</code>?</p>