在Windows 7 64位上尝试启动VM(Ubuntu 32位)。尽管modify vm
在Vagrantfile中添加了命令,但我无法使我的VM显示两个内核。我的Vagrant版本是1.2.2。
# -*- 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
使用这个Vagrantfile,我发出vagrant up
命令。然后我发出vagrant ssh
以下lscpu
收益:
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
我认为CPU应该显示2,因此我的VM现在只有一个CPU。运行时如何显示2个CPU lscpu
?