]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
esx: Also allow virtualHW version 4 for ESX 4.0
authorMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 23 Dec 2009 22:08:21 +0000 (23:08 +0100)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Thu, 7 Jan 2010 00:38:19 +0000 (01:38 +0100)
A domain with virtualHW version 4 is allowed on an ESX 4.0 server.
If a domain is migrated from an ESX 3.5 server to an ESX 4.0 server
then the virtualHW version stays the same. So a ESX 4.0 server can
host domains with virtualHW version 4.

src/esx/esx_vmx.c

index 9aad592dced9d50514c1e090e4d89f547642900e..d3cad1ddbb9299a9ae7e117df5637da8cf015c7a 100644 (file)
@@ -780,9 +780,9 @@ esxVMX_ParseConfig(virConnectPtr conn, esxVI_Context *ctx, const char *vmx,
         break;
 
       case esxVI_APIVersion_40:
-        if (virtualHW_version != 7) {
+        if (virtualHW_version != 4 && virtualHW_version != 7) {
             ESX_ERROR(conn, VIR_ERR_INTERNAL_ERROR,
-                      "Expecting VMX entry 'virtualHW.version' to be 7 for "
+                      "Expecting VMX entry 'virtualHW.version' to be 4 or 7 for "
                       "VI API version 4.0 but found %lld", virtualHW_version);
             goto failure;
         }