Page 1 of 2
VB 6.1.14 CentOS8 can't assign more than 1 cpu
Posted: 21. Nov 2020, 09:26
by rpyne
I'm running VirtualBox 6.1.14 on CentOS8 host and guest on a machine with 128 G RAM and 24 CPU cores. I only have one VM running and want tp assign it 4 CPUs. I tried to assgn 4 CPUs when I created the VM and I've tried both the phpVirtualBox interfave and VBoxManage modifyvm to change it. So far, I cannot get more than 1 CPU assigned.
TIA for any help.
Re: VB 6.1.4 CentOS8 can't assign more than 1 cpu
Posted: 22. Nov 2020, 04:35
by scottgus1
See
I have a 64bit host, but can't install 64bit guests post #1. Ignore the stuff about Hyper-V, that's for Windows PCs.
Re: VB 6.1.4 CentOS8 can't assign more than 1 cpu
Posted: 22. Nov 2020, 19:48
by rpyne
The exact machine is a Dell PowerEdge R815 with dual AMD Opteron 6168 processors. Everything I can find says they do have AMD-v.
I have two of these machines, the other one has dual 6128 (8 core) processors and I have several Vbox VMs running on it with multiple CPUs. It is running VirtualBox 5.0.40 on CentOS 7.4.
Re: VB 6.1.4 CentOS8 can't assign more than 1 cpu
Posted: 23. Nov 2020, 00:06
by scottgus1
The only thing that we could use to help is a VM's vbox.log. If AMD-V is enabled it will have a line "AMD-v with nested paging" or "AMD-v with unrestricted execution" or something like that. If the BIOS switch for AMD-v is off then the CPU's AMD-v won't get used. We can't help with how to turn it on in the BIOS.
Re: VB 6.1.4 CentOS8 can't assign more than 1 cpu
Posted: 24. Nov 2020, 18:01
by rpyne
I did find these lines:
00:00:00.172151 HM: HMR3Init: AMD-V w/ nested paging
00:00:00.465514 HM: Using AMD-V implementation 2.0
00:00:00.465520 HM: AMD-V revision = 0x1
00:00:00.465521 HM: AMD-V max ASID = 64
00:00:00.465523 HM: AMD-V features = 0x40f
00:00:00.465567 HM: VT-x/AMD-V init method: Global
Re: VB 6.1.4 CentOS8 can't assign more than 1 cpu
Posted: 24. Nov 2020, 18:09
by scottgus1
I don't see anything strange in the log. Your host PC seems well-provisioned.
What happens when you try to set more than one CPU? If you get an error, please post the exact error message.
Re: VB 6.1.4 CentOS8 can't assign more than 1 cpu
Posted: 24. Nov 2020, 19:19
by rpyne
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.
Re: VB 6.1.14 CentOS8 can't assign more than 1 cpu
Posted: 24. Nov 2020, 19:25
by scottgus1
What about doing it in the main Virtualbox window's Guest Settings? Check for any error messages there.
Re: VB 6.1.14 CentOS8 can't assign more than 1 cpu
Posted: 24. Nov 2020, 19:40
by fth0
Just in case, note that you can only change the number of vCPUs while the VM is not running. (@scottgus1: The VBox.log file is from a VM started before this thread and still running.)
Re: VB 6.1.14 CentOS8 can't assign more than 1 cpu
Posted: 24. Nov 2020, 21:18
by rpyne
scottgus1 wrote:What about doing it in the main Virtualbox window's Guest Settings? Check for any error messages there.
This is a headless machine with no windowing system installed.
Re: VB 6.1.14 CentOS8 can't assign more than 1 cpu
Posted: 24. Nov 2020, 21:21
by rpyne
fth0 wrote:Just in case, note that you can only change the number of vCPUs while the VM is not running. (@scottgus1: The VBox.log file is from a VM started before this thread and still running.)
I have tried both, with the VM posered off and with it running (CLI only).
The log was from the VM after I had tried several things and started this thread, and have since shut it down, tried setting the number of CPUs and restarted it at least three times.
Re: VB 6.1.14 CentOS8 can't assign more than 1 cpu
Posted: 24. Nov 2020, 21:25
by rpyne
I also rebooted the host machine.
Here is the log from the most recent boot.
Re: VB 6.1.14 CentOS8 can't assign more than 1 cpu
Posted: 24. Nov 2020, 21:31
by scottgus1
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.
Re: VB 6.1.14 CentOS8 can't assign more than 1 cpu
Posted: 24. Nov 2020, 21:32
by scottgus1
rpyne wrote:and with it running
This should have given you an error message: "The machine 'vm name' is already locked for a session (or being unlocked)"
Re: VB 6.1.14 CentOS8 can't assign more than 1 cpu
Posted: 24. Nov 2020, 21:39
by rpyne
scottgus1 wrote:rpyne wrote:and with it running
This should have given you an error message: "The machine 'vm name' is already locked for a session (or being unlocked)"
No error message.