Only one Virtual CPU is allowed in this system

Marchant

Cadet
Joined
Aug 1, 2022
Messages
1
Let me start with saying: "I know this is an old system, I know I can replace it cheaply, but it's a backup system and it will do for my current needs"

With that out of the way, I'm using an old supermicro system with dual Harpertown Xeon cpus. These cpus lack EPT but support vt-x. When I create a new vm, it won't allow me to set more than 1 vcpu or 1 core, which as far as I understand it, was/is a problem with CORE and bhyve, but shouldn't be a problem with SCALE and kvm. I just tested installing proxmox and successfully created a 4 core vm.

Searching the forums shows some reference to a thread about the cpu not supporting "unrestricted guest (UG) support", which again, afaik, is only a problem with CORE and bhyve, and not SCALE and kvm.

So my question is: is this a leftover hardware check from CORE that is left in SCALE? Can I bypass is somehow? Should I file a bugreport? Or is it pointless because noone in their right mind uses systems this old? But even though I could very cheaply replace this system, as a matter of principle I don't want to contribute to more e-waste when this is more than enough for my current needs.
 

justjasch

Dabbler
Joined
May 8, 2022
Messages
20
I like to bring this up again.
Having the same Problem, my Backupnas is my old nas Intel Serve Board with Xeon L3426.
it should be possible with Proxmox i can do it.
 

justjasch

Dabbler
Joined
May 8, 2022
Messages
20
It is just old or wrong check.
in /usr/lib/python3/dist-packages/middlewared/plugins/vm/vms.py
i outcommented Lines 227-234.

# elif flags['intel_vmx']:
# if vcpus > 1 and flags['unrestricted_guest'] is False:
# verrors.add(f'{schema_name}.vcpus', 'Only one Virtual CPU is allowed in this system.')
# elif flags['amd_rvi']:
# if vcpus > 1 and flags['amd_asids'] is False:
# verrors.add(
# f'{schema_name}.vcpus', 'Only one virtual CPU is allowed in this system.'
# )

now i can set all cpus i want and its working fine.
 

subwoofer

Cadet
Joined
Feb 27, 2023
Messages
1
Thanks @justjasch !
This worked like a charm with my i7 860 CPU running SCALE.
I have to redo the modification after each update but only if i want to modify or make a new vm.

Why isn´t this fixed yet?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Why isn´t this fixed yet?
I don't see reference to a bug report or feature request in this thread... why would you be expecting a fix if nobody has raised it with iX?
 
Top