[SOLVED] Change vendor_id into /proc/cpuinfo for VM

nik-weter

Active Member
Sep 24, 2012
24
1
43
Hello.
I created post on reddit, but...

I have some application, it binds license to cpu and other parametrs of PC.

Recently I added new server to Proxmox cluster with AMD Epyc cpu. Other hosts have Intel cpus.

Now, when VM migrate from AMD to Intel, after reboot VM it loses app license. I should restore license via servise. For migration from Intel to AMD the same situation.

Ther are vendor_id: AuthenticAMD and model name: Common KVM processor (i set kvm64 cpu for VM) for AMD and vendor_id: GenuineIntel and model name: Common KVM processor for Intel.

I can change model name chusing different cpu for vm, but what about vendor_i?

Documentation says about /etc/pve/virtual-guest/cpu-models.conf, but hv-vendor-id there change nothing.

Any ideas how change vendor_id?
 
Setting hidden=1 or disabling kvm should work. kvm: 0
 
Last edited:
cpu-model: start flags +fpu;+vme;+de;+pse;+tsc;+msr;+pae;+mce;+cx8;+apic;+sep;+mtrr;+pge;+mca;+cmov;+pat;+pse36;+clflush;+mmx;+sse;+sse2;+syscall;+nx;+pdpe1gb;+rdtscp;+lm;+pni;+pclmulqdq;+ssse3;+f;+cx16;+pcid;+sse4_1;+sse4_2;+movbe;+popcnt;+aes;+xsave;+avx;+f16c;+rdrand;+lahf_lm;+abm;+3dnowprefetch;+ssbd;+ibpb;+stibp;+fsgsbase;+bmi1;+avx2;+smep;+bmi2;+erms;+rdseed;+adx;+smap;+flushopt;+clwb;+xgetbv1;+xsaves;+arat;-kvm_pv_unhalt;-mmxext;-fxsr-opt;-cr8legacy;-sse4a;-misalignsse;-osvw phys-bits 39 hidden 1 hv-vendor-id start reported-model kvm
This is models.
processor : 3 vendor_id : GenuineIntel cpu family : 15 model : 6 model name : Common KVM processor stepping : 1 microcode : 0x1 cpu MHz : 3192.628 cache size : 16384 KB physical id : 0 siblings : 4 core id : 3 cpu cores : 4 apicid : 3 initial apicid : 3 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx pdpe1gb rdtscp lm constant_tsc nopl xtopology cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault pti ssbd ibpb stibp fsgsbase bmi1 avx2 smep bmi2 erms rdseed adx smap clflushopt clwb xgetbv1 xsaves arat bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit bogomips : 6385.25 clflush size : 64 cache_alignment : 128 address sizes : 39 bits physical, 48 bits virtual power management
This is cpuinfo.
Disable kvm - loose performance.
 
I found solition.
I added in vm config
etc/pve/nodes/cluster-3/qemu-server/101.conf this line:

args: -cpu 'kvm64,vendor=GenuineIntel'

Now vm always have vendor_id : GenuineIntel even on AMD host
 
Last edited:
  • Like
Reactions: Matthias.
Great! Glad you could find the solution.
Please mark the thread as solved (edit it, there's a dropdown near the title) so others with the same problem can find it more easily.
 

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!