Sandro Bonazzola has uploaded a new change for review.

Change subject: packaging: setup: adding an error message if no compatible CPUs 
are detected
......................................................................

packaging: setup: adding an error message if no compatible CPUs are detected

With certain CPU models VMX support is not enought to support virtualization,
NX needs to be enabled too.
Adding an error message to explain it if no compatible CPUs are found.

Change-Id: Idfa1daa84a0168983d729f5ebed45e62054db4f9
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1103672
Signed-off-by: Simone Tiraboschi <[email protected]>
(cherry picked from commit 148cb6c7d490d8684b86961d291aabdcd02591bb)
---
M src/plugins/ovirt-hosted-engine-setup/vdsmd/cpu.py
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-setup 
refs/changes/34/29934/1

diff --git a/src/plugins/ovirt-hosted-engine-setup/vdsmd/cpu.py 
b/src/plugins/ovirt-hosted-engine-setup/vdsmd/cpu.py
index 89ffa84..23d2db9 100644
--- a/src/plugins/ovirt-hosted-engine-setup/vdsmd/cpu.py
+++ b/src/plugins/ovirt-hosted-engine-setup/vdsmd/cpu.py
@@ -119,6 +119,13 @@
     )
     def _customization(self):
         cpu, compatible = self._getCompatibleCpuModels()
+
+        if len(compatible) == 0:
+            raise RuntimeError(
+                _('Hardware virtualization support is not available:\n'
+                  'please check BIOS settings and turn on NX support '
+                  'if available')
+            )
         self.logger.debug(
             'Compatible CPU models are: %s',
             compatible,


-- 
To view, visit http://gerrit.ovirt.org/29934
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idfa1daa84a0168983d729f5ebed45e62054db4f9
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-hosted-engine-setup
Gerrit-Branch: ovirt-hosted-engine-setup-1.2
Gerrit-Owner: Sandro Bonazzola <[email protected]>
Gerrit-Reviewer: Simone Tiraboschi <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to