VB 6.1.14 CentOS8 can't assign more than 1 cpu

Discussions related to using VirtualBox on Linux hosts.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: VB 6.1.14 CentOS8 can't assign more than 1 cpu

Post by scottgus1 »

Strange. Mine forms that error when I try the vboxmanage modfyvm --cpus command on a running VM.

Let's see what a working multi-processor guest copied over and registered on your host does.
rpyne
Posts: 16
Joined: 5. Jul 2013, 00:15
Primary OS: Other
VBox Version: OSE Fedora
Guest OSses: linux

Re: VB 6.1.14 CentOS8 can't assign more than 1 cpu

Post by rpyne »

scottgus1 wrote:Can you make a guest with multiple processors on a different PC than copy the guest folder over to this host and run it? It will test if your existing host is having trouble with the multiple processors.
The only place I have that I can do that is running VirtualBox 5.0.40 if that will work.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: VB 6.1.14 CentOS8 can't assign more than 1 cpu

Post by scottgus1 »

Should work OK, VMs ought to be runnable as Virtualbox upgrades.
fth0
Volunteer
Posts: 5690
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: VB 6.1.14 CentOS8 can't assign more than 1 cpu

Post by fth0 »

rpyne wrote:Here is the log from the most recent boot.
This is again a VBox.log file from a VM that has only 1 CPU configured. Can you also provide the idaho.vbox file? If that file also shows that only 1 CPU is configured, we may have to concentrate on the VBoxManage command you've been using.
rpyne wrote:I've tried both setting the number of CPUs through the phpVirtualBox interface, and with VBoxManage modifyvm "idaho" --cpus 4

Neither give any error message, nor do they change the number of CPUs assigned.
What exactly do you mean by "nor do they change the number of CPUs assigned"? I'm getting the impression that perhaps we have some misunderstanding here ...
rpyne
Posts: 16
Joined: 5. Jul 2013, 00:15
Primary OS: Other
VBox Version: OSE Fedora
Guest OSses: linux

Re: VB 6.1.14 CentOS8 can't assign more than 1 cpu

Post by rpyne »

fth0 wrote:
rpyne wrote:Here is the log from the most recent boot.
This is again a VBox.log file from a VM that has only 1 CPU configured. Can you also provide the idaho.vbox file? If that file also shows that only 1 CPU is configured, we may have to concentrate on the VBoxManage command you've been using.
rpyne wrote:I've tried both setting the number of CPUs through the phpVirtualBox interface, and with VBoxManage modifyvm "idaho" --cpus 4

Neither give any error message, nor do they change the number of CPUs assigned.
What exactly do you mean by "nor do they change the number of CPUs assigned"? I'm getting the impression that perhaps we have some misunderstanding here ...
Even though I tried to change the number of CPUs assigned to the VM, it still would only use 1 CPU.
rpyne
Posts: 16
Joined: 5. Jul 2013, 00:15
Primary OS: Other
VBox Version: OSE Fedora
Guest OSses: linux

Re: VB 6.1.14 CentOS8 can't assign more than 1 cpu

Post by rpyne »

Thank you to all that responded and helped. I found the problem(s).

On the Guest Extended Features settings, I needed to enable both PAE/NX and Nested VT-x/AMD-V

And I am embarrassed to admit that the reason I was getting no error message from VBoxManage modifyvm "idaho" --cpus=4 is that I was executing it as root instead of the vbox user.

Again, thank you for the help. It was instrumental in guiding me to find the problem(s).
fth0
Volunteer
Posts: 5690
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: VB 6.1.14 CentOS8 can't assign more than 1 cpu

Post by fth0 »

Thanks for reporting back!

Using VBoxManage as the wrong user was obviously the problem, but I doubt that the other settings played a role: AFAIK, the PAE/NX setting is ignored for 64-bit guests (it's handled as implicitly active), and most people provide 2 vCPUs to their VMs without ever enabling Nested VT-x/AMD-V, which may create an unnecessary performance overhead. Can you change them back and test if they are really needed in your case?
Post Reply