windows 无法在 VirtualBox 上启用多个 CPU
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/44562907/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can't enable multiple CPU on VirtualBox
提问by Guillaume.P
I would like to use more than one CPU to run Ubuntu 14.04(Trusty Tahr) 32-bit in VirtualBox, but when I stop the machine and go in Settings→ System→ Processor, the processor(s) slider is grayed out as you can see in the screenshot image. How can I enable this feature?
我想使用多个 CPU在 VirtualBox 中运行Ubuntu 14.04(Trusty Tahr) 32 位,但是当我停止机器并进入Settings→ System→ Processor 时,处理器滑块尽可能灰显在屏幕截图中看到。如何启用此功能?
Host OS: Windows 10 Pro 64-bit
Guest OS: Ubuntu 14.04 32-bit
VirtualBox: Version 5.1.22 r115126
Processor: Intel(R) Core(TM) i7-3770 CPU @ 3.40 GHz (8 CPUs), ~3.4 GHz
主机操作系统:Windows 10 Pro 64 位
来宾操作系统:Ubuntu 14.04 32 位
VirtualBox:版本 5.1.22 r115126
处理器:Intel(R) Core(TM) i7-3770 CPU @ 3.40 GHz(8 个 CPU),~3.4 GHz
PS: My problem in the first instance is that the Ubuntu virtual machine is extremely slow and I would like to improve the performance, so any suggestion for that would also be welcome.
PS:首先我的问题是 Ubuntu 虚拟机非常慢,我想提高性能,因此也欢迎提出任何建议。
采纳答案by guest
To increase performance you need to increase RAM and to use more than one CPU you need to enable "Virtualization technology" in the BIOS. Go to your BIOS options and search for "Virtualization technology" under "System settings" or similar. This is either called Intel-Vi-D or Intel-Vi with AMD processor. That name is then similar to AMD-V.
要提高性能,您需要增加 RAM 并使用多个 CPU,您需要在 BIOS 中启用“虚拟化技术”。转到您的 BIOS 选项并在“系统设置”或类似选项下搜索“虚拟化技术”。这被称为 Intel-Vi-D 或带有 AMD 处理器的 Intel-Vi。该名称与 AMD-V 相似。
If you still have a problem with your VirtualBox not giving you an option to use multiple CPUs then you will most probably have to check if Hyper-V is installed in the "Turn Windows Features on or off". Which you might need to disable in order to use multiple CPU cores.
如果您的 VirtualBox 仍然有问题,没有为您提供使用多个 CPU 的选项,那么您很可能必须在“打开或关闭 Windows 功能”中检查是否安装了 Hyper-V。您可能需要禁用才能使用多个 CPU 内核。
Some computers still might have no function towards virtualization use of multiple cores. That can be old computer models or more specific laptop computers. In some, you might need to check if there is a new BIOS version available for your computer.
有些计算机可能仍然没有实现多核虚拟化使用的功能。那可以是旧电脑型号或更具体的笔记本电脑。在某些情况下,您可能需要检查是否有适用于您的计算机的新 BIOS 版本。
回答by Lee
Please make sure that you disable the Hyper-V. Go to Control Panel→ Turn Windows features on or off→ Uncheck Hyper-V→ Restart your computer.
请确保禁用 Hyper-V。转至控制面板→打开或关闭 Windows 功能→ 取消选中Hyper-V→重新启动计算机。
回答by Alan
For me I just had to forget the saved state with a right click on the virtual device.
对我来说,我只需要通过右键单击虚拟设备来忘记保存的状态。
回答by Claudio
My problem is just a little bit different, but it fits the question. I can not make the guest use more than one processor.
我的问题只是有点不同,但它符合问题。我不能让客人使用多个处理器。
The slider is not grayed, and I can set it to 1..4 (it is a dual core host).
滑块没有变灰,我可以设置为1..4(是双核主机)。
But setting it on 2 and booting the Windows guest, it only sees one.
但是将其设置为 2 并启动 Windows 来宾,它只能看到一个。
I had also tried all possible values for the slider. Windows guest always see one, not more.
我还尝试了滑块的所有可能值。Windows 来宾总是看到一个,而不是更多。
If on Windows guest, I type set
on a console. I always get a line with, no matter the position on the slider:
如果在 Windows 客户机上,我会set
在控制台上输入。无论滑块上的位置如何,我总是得到一条线:
NUMBER_OF_PROCESSORS=1
I can not enable multiple CPUs on VirtualBox that guest.
我无法在那个来宾的 VirtualBox 上启用多个 CPU。
The weird thing is that if I put a live CD Linux distribution ISO on that guest's virtual CD unit, it can see all the processors I set on the slider... it is just the Windows guest the one that ignores the slider... I am getting mad... and am out of ideas.
奇怪的是,如果我将 Live CD Linux 发行版 ISO 放在那个来宾的虚拟 CD 单元上,它可以看到我在滑块上设置的所有处理器……只是 Windows 来宾忽略了滑块……我快疯了……我没主意了。
The problem occurs because when Windows was installed it was configured with only one processor, so it installed in a no multi-processor way and there is no way for it to see more than one, except re-intalling Windows, but this time with two or more on the slider, so it installs in SMP mode.
出现这个问题是因为在安装 Windows 时它只配置了一个处理器,所以它以非多处理器方式安装,除了重新安装 Windows 之外,它无法看到多个处理器,但这次有两个或更多滑块,因此它以 SMP 模式安装。
So, for anyone having the problem:
所以,对于任何有问题的人:
- I can not use more than one processor on windows guest
- I can move the slider
- 我不能在 Windows 客户机上使用多个处理器
- 我可以移动滑块
The answer is not going to the BIOS. The answer is:
答案是不会进入 BIOS。答案是:
- Please install that Windows with the slider in 2 or more, not on just 1.
- 请安装带有 2 个或更多滑块的 Windows,而不仅仅是 1 个。
I remember I had a similar problem with an oldWindows XP guest. At that time I had tried a patch to change Windows to SMP mode and a reboot, but it was so unstable, that I opted to reinstall it directly with 2 on the slider.
我记得我在旧的Windows XP 客户机上遇到了类似的问题。当时我曾尝试通过补丁将 Windows 更改为 SMP 模式并重新启动,但它非常不稳定,我选择直接在滑块上使用 2 重新安装它。
回答by Innovative ideas
Please stop and power off your VM and then drag.
请停止并关闭您的虚拟机,然后拖动。
It will work.
它会起作用。
回答by Vijayendra Shah
Open Virtual Box.
Click the name of the virtual machine that you want to make your CPU available to, then click the "Settings" button at the top of the window.
Click the "System" heading on the left side of the Settings window.
Click the "Processor" tab at the top of the window.
Drag the slider next to "Processor(s)" to the right until the value matches the number of processors or processor cores installed in your computer.
Drag the slider next to "Execution Cap" to the right until the value reads "100." This allows VirtualBox to use all of your processor's resources.
Click "OK," then double-click the virtual machine to turn it on.
打开虚拟盒子。
单击要使 CPU 可用的虚拟机的名称,然后单击窗口顶部的“设置”按钮。
单击“设置”窗口左侧的“系统”标题。
单击窗口顶部的“处理器”选项卡。
将“处理器”旁边的滑块向右拖动,直到该值与计算机中安装的处理器或处理器核心数相匹配。
将“执行上限”旁边的滑块向右拖动,直到值显示为“100”。这允许 VirtualBox 使用您处理器的所有资源。
单击“确定”,然后双击虚拟机将其打开。