Pass to the VM some specific CPU instruction set

Hi all,
I am trying to install an application on a ubuntu VM. However to start, this program needs some CPU instruction set as the SSE4.2 . I checked on my physical server if it supports these instruction and it does but I don’t know how to make them visible from my VM. I found in some forum that this is possible using the RAW context value of the VM Configuration and passing an XML file but the structure of this file is not well defined (at least for me).

Do you know how can I pass some CPU instruction set to a VM?

Thank you very much

Hi,

Please provide some more context information. Like what version of OpenNebula you are using, link to the info you red, host OS, relevant package versions (libvirt, qemu etc…).

It is hard to guide you just guessing what you are running.

Kind Regards,
Anton Todorov

Hi,
In the end I solves this problem using the RAW value in :
Template->VM->update->Other->RAW
and select KVM and insert in the data this:
" Nehalem Intel "

This will allow you to set a different CPU architecture.

1 Like

This post is quite old, but the question is still valid and the solution is slightly different with OpenNebula 6.4.0.1:

  • Templates > VMs > select template to update > Update > Tags
  • in section “RAW data”, type must be “kvm”
  • add this or similar information in field “Data”:
<cpu>
  <vendor>Intel</vendor>
  <model>IvyBridge</model>
</cpu>
  • check “Validate”
  • click “Update” to save

Hope this helps.