Add additional KVM Cpu Type?

Mar 14, 2013
14
0
1
Havant, United Kingdom
We are migrating a server onto proxmox with new hardware, one of the pieces of software we run is tied to a cpu via its family, model and stepping. The company are no longer trading so getting a new licence is not an option. It's tied to GenuineIntel, CPU Family 6 and Stepping 7 (Ivy Bridge) and the MAC address. The MAC address is not an issue, but the closest CPU match is SandyBridge - the family is right but the stepping information is wrong. The new hardware is Haswell based so I can't use HOST. I was hoping therefore to emulate the processor through editing a config or something similar. Is this even possible or would it involve recompiling Qemu?
 
We are migrating a server onto proxmox with new hardware, one of the pieces of software we run is tied to a cpu via its family, model and stepping. The company are no longer trading so getting a new licence is not an option. It's tied to GenuineIntel, CPU Family 6 and Stepping 7 (Ivy Bridge) and the MAC address. The MAC address is not an issue, but the closest CPU match is SandyBridge - the family is right but the stepping information is wrong. The new hardware is Haswell based so I can't use HOST. I was hoping therefore to emulate the processor through editing a config or something similar. Is this even possible or would it involve recompiling Qemu?

If you want the best performance of processors for your VMs and want that "HA" and "Live Migration" work well, you can configure manually for each VM the common features of both processors of both PVE nodes.

This is a method of much work, but will gain the best performance for your VMs.

The first rule is know what features (also know as flags) of processors are common in both PVE nodes. For know this, you can find it of two manners:
1- See the documentation of your processors
2- For me the best method: Install a linux VM with "Host" as processor, and after into this VM run the command: "cat /proc/cpuinfo". Do the same with the other PVE node.

Now that you have the information of the flags of your processors, in each VM you can enable or disable the flags that you want, and if the flags of the processors are common of both PVE nodes, "HA" and "live migration" will work fine.

Once you've added or removed the flags of processor, you should power off the VM for that the new changes have effect in the next start

For add or remove the flags of processor, you should edit the file of configuration of your VM manually by CLI:
shell> nano /etc/pve//qemu-server/<VM-ID>.conf

and add or remove the flags of processor as is necessary. Here a example in cpu of type Host and remove the flags that are not common in both PVE nodes (only is a example, but you must be sure of what are doing):
args: -cpu host,-ssse3,-sse4.1,-sse4.2

Best regards
Cesar
 
Thanks for the reply Cesar but unfortunately I dont think I've been very clear in my description. The original server is not running proxmox, its a physical server. The processor emulation is fine, but I need to be able to present it as a GenuineIntel processor family 42 stepping 7 which is a third generation i5. I think I may beed to build qemu from source however and edit the source code to achieve this.
 
Thanks for the reply Cesar but unfortunately I dont think I've been very clear in my description. The original server is not running proxmox, its a physical server. The processor emulation is fine, but I need to be able to present it as a GenuineIntel processor family 42 stepping 7 which is a third generation i5. I think I may beed to build qemu from source however and edit the source code to achieve this.

May be that if you configure the VM with SandyBridge processors, and add or remove the flags of processor for do the last configurations that be need for get a equal or similar configuration to your old processor, it can work well. For get this victory, may be that you need to do a consult of the flags of processor enabled in your old computer. All these tips will give less work that investigate and recompile QEMU

Best regards
Cesar
 

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!