最佳答案
在 Windows764位尝试启动虚拟机(Ubuntu32位)。尽管在我的 Vagrantfile 中添加了 modify vm
命令,我还是无法让 VM 显示两个核。我的流浪者版本是1.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
使用这个流浪汉文件,我发出 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 (s)应该显示2,所以我的 VM 现在只有一个 CPU。当我运行 lscpu
时,如何让2个 CPU 显示出来?