Custom VM CPU Name

Hallo Annabell

Normalerweise würde man den CPU-Typ einstellen. Dieser ist eher nach CPU-Familie als nach CPU-Modell definiert ...

1677822417243.png
Wenn du eine möglichst hardware-nahe Konfiguration wünscht, dann könntest du den Typ "host" wählen. Ich gehe davon aus, dass die VM den Prozessor dann korrekt erkennen würde. Allerdings habe ich es nie ausprobiert. Ansonsten würde ich stattdessen empfehlen, die passende CPU-Familie auszuwählen.

Alternativ könntest du mit der CPU-Type-Konfigurationsdatei herumexperimentieren. Ob das jedoch eine Gute Idee ist, sei dahingestellt ... ;)

CPU Type​

Qemu can emulate a number different of CPU types from 486 to the latest Xeon processors. Each new processor generation adds new features, like hardware assisted 3d rendering, random number generation, memory protection, etc … Usually you should select for your VM a processor type which closely matches the CPU of the host system, as it means that the host CPU features (also called CPU flags ) will be available in your VMs. If you want an exact match, you can set the CPU type to host in which case the VM will have exactly the same CPU flags as your host system.


This has a downside though. If you want to do a live migration of VMs between different hosts, your VM might end up on a new system with a different CPU type. If the CPU flags passed to the guest are missing, the qemu process will stop. To remedy this Qemu has also its own CPU type kvm64, that Proxmox VE uses by defaults. kvm64 is a Pentium 4 look a like CPU type, which has a reduced CPU flags set, but is guaranteed to work everywhere.


In short, if you care about live migration and moving VMs between nodes, leave the kvm64 default. If you don’t care about live migration or have a homogeneous cluster where all nodes have the same CPU, set the CPU type to host, as in theory this will give your guests maximum performance.

Custom CPU Types​

You can specify custom CPU types with a configurable set of features. These are maintained in the configuration file /etc/pve/virtual-guest/cpu-models.conf by an administrator. See man cpu-models.conf for format details.


Specified custom types can be selected by any user with the Sys.Audit privilege on /nodes. When configuring a custom CPU type for a VM via the CLI or API, the name needs to be prefixed with custom-.
(Quelle: https://pve.proxmox.com/wiki/Qemu/KVM_Virtual_Machines#qm_virtual_machines_settings)

Meiner Meinung nach ist der Name des Prozessors nicht so relevant wie die Features, welche vom CPU-Typ zur Verfügung gestellt werden ... ;)

LG
Belegnor
 
Last edited:
Ich weiß nicht was du vorhast :D
Aber so lustig es auch wäre, ist, das glaube ich nicht möglich. Denn selbst bei den Custom CPU models haben wir folgenden Hinweis:
reported-model: <486 | Broadwell | Broadwell-IBRS [....] qemu32 | qemu64> (default = kvm64)
CPU model and vendor to report to the guest. Must be a QEMU/KVM supported model. Only valid for custom CPU model definitions, default models will always report themselves to the guest OS.

Wenn du da irgendwas anderes einträgst, bekommst du beim Starten eine Warnung und in einem Linux Gast wirds mir wieder als Common KVM CPU angezeigt.
 
Hallo, nein so etwas geht nicht !
KVM endet da beim starten dann mit "unsupportet CPU model" !
stellst du "HOST" ein dann wird die CPU 1:1 durchgereicht mit der entsprechenden richtigen Modell Bezeichnung !

Im host z.b. ein "AMD Ryzen 9 5950x 16-Core Processor"
Dann zeigt der VM-Client dieses ebenfalls so an, sofern du in der VM Konfig "Host" bei der CPU gewählt hast !
Wieviel Cores du dann tatsächlich durchreichst ist dann egal !

Grüße
eure
Foxi
 

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!