cpu configuration on LXC and VM

susumanin

New Member
Nov 25, 2022
3
1
3
Hi.
I have Proxmox and one LXC and one VM in it.
Both of them hosts Ubuntu 22.04.
Both have lscpu version 2.37
When I run lscpu in LXC:

Vendor ID: GenuineIntel
Model name: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
CPU family: 6
Model: 42
Thread(s) per core: 2
Core(s) per socket: 4
Socket(s): 1
Stepping: 7
CPU max MHz: 5900.0000
CPU min MHz: 1600.0000
BogoMIPS: 7005.51

When I run lscpu in VM:

Vendor ID: GenuineIntel
Model name: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
CPU family: 6
Model: 42
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
Stepping: 7
BogoMIPS: 7005.27

The difference - in VM lscpu does not show CPU max\min MHz.

But when I run "lscpu -e=CPU,MHZ" I get on CT:

CPU MHZ
0 5900.000
1 -
2 -
3 -
4 -
5 -
6 -
7 -

and in VM:

CPU MHZ
0 3502.638
1 3502.638
2 3502.638
3 3502.638

Why plain lscpu shows different output?

I've tried to change CPU type (host, kvm, intel and so on) in VM, add kvm: 1 in VM conf file - nothing realy helps.
Virtualization is enabled in BIOS and nested virtualization also enabled on PVE host.

Thanks.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!