Shahar Havivi has uploaded a new change for review.

Change subject: engine: import need to set single qxl for windows
......................................................................

engine: import need to set single qxl for windows

Single QXL PCI is now true by default for vmBase, which mean that when
importing VMs/Templates that didn't set this flag get true value for
this entry.
This is not supported for non Linux Os and need to set to false.

Change-Id: I2e62abdf3d484c013adc8dc68a86bfd511737add
Bug-Url: https://bugzilla.redhat.com/1007784
Signed-off-by: Shahar Havivi <[email protected]>
---
M 
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ovf/OvfReader.java
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/43/19443/1

diff --git 
a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ovf/OvfReader.java
 
b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ovf/OvfReader.java
index ddc50c5..fd8bc6a 100644
--- 
a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ovf/OvfReader.java
+++ 
b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ovf/OvfReader.java
@@ -22,6 +22,7 @@
 import org.ovirt.engine.core.common.businessentities.VolumeType;
 import org.ovirt.engine.core.common.businessentities.network.VmInterfaceType;
 import 
org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface;
+import org.ovirt.engine.core.common.osinfo.OsRepositoryImpl;
 import org.ovirt.engine.core.common.utils.VmDeviceType;
 import org.ovirt.engine.core.compat.Guid;
 import org.ovirt.engine.core.compat.backendcompat.XmlDocument;
@@ -387,7 +388,9 @@
 
             if ("ovf:OperatingSystemSection_Type".equals(value)) {
                 readOsSection(section);
-
+                if (!OsRepositoryImpl.INSTANCE.isLinux(vmBase.getOsId())) {
+                    vmBase.setSingleQxlPci(false);
+                }
             }
             else if ("ovf:VirtualHardwareSection_Type".equals(value)) {
                 readHardwareSection(section);


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2e62abdf3d484c013adc8dc68a86bfd511737add
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Shahar Havivi <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to