Ovirt provisioning error

Problem:
When making PXE provisionof Ubuntu to oVirt compute resource I get following error:
Failed to create a compute ovrt (oVirt) instance eli-leshure.test.ipa: Cannot add VM. Selected operating system is not supported by the architecture.
CentOS provisiong works well
Expected outcome:
Please help what should I do
Foreman and Proxy versions:
1.16.0
Foreman and Proxy plugin versions:

Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]

The way how Foreman maps its OS to oVirt OS Type is “magic”:

It definitely needs more love. Now, it tries to “score” OS Type it finds in oVirt with your operating system name and version. If it can’t find it, it will select “Other Linux” option which I think means 32bit Linux OS in oVirt not sure. I assume you named your system differently, just name it “Ubuntu” and set version major and minor properly and if your oVirt supports it, it will match it. If not, then you need to upgrade your oVirt.

Currently there is no way of specifying oVirt OS type, I think short-term at least host parameter should be reasonable until we fix this.

I created a host param which you will be able to override with in 1.18+ but for now rename your OS:

http://projects.theforeman.org/issues/23117

The PR is:

https://github.com/theforeman/foreman/pull/5402

1 Like