VirtualBox

Ignore:
Timestamp:
Jul 9, 2009 11:06:00 AM (15 years ago)
Author:
vboxsync
Message:

Main: settings converter fix for hardware acceleration (fixes #4095)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/SettingsConverter.xsl

    r18518 r21426  
    833833</xsl:template>
    834834
     835<xsl:template match="vb:VirtualBox[substring-before(@version,'-')='1.5']/
     836                     vb:Machine//vb:Hardware/vb:CPU"
     837              mode="v1.6">
     838  <xsl:copy>
     839    <!-- copy all, and if HardwareVirtEx is not present, add one with enabled = false -->
     840    <xsl:apply-templates select="node()" mode="v1.6"/>
     841    <xsl:if test="not(./vb:HardwareVirtEx)">
     842      <HardwareVirtEx enabled="false" />
     843    </xsl:if>
     844  </xsl:copy>
     845</xsl:template>
     846
    835847
    836848<!--
     
    860872              <xsl:choose>
    861873                <xsl:when test="substring-after(../@version,'-')='windows'">
    862                    <DHCPServer networkName="HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter" 
     874                   <DHCPServer networkName="HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter"
    863875                        IPAddress="192.168.56.100" networkMask="255.255.255.0"
    864876                        lowerIP="192.168.56.101" upperIP="192.168.56.254"
     
    866878                </xsl:when>
    867879                <xsl:otherwise>
    868                    <DHCPServer networkName="HostInterfaceNetworking-vboxnet0" 
     880                   <DHCPServer networkName="HostInterfaceNetworking-vboxnet0"
    869881                        IPAddress="192.168.56.2" networkMask="255.255.255.0"
    870882                        lowerIP="192.168.56.3" upperIP="192.168.56.255"
     
    873885              </xsl:choose>
    874886           </DHCPServers>
    875         </NetserviceRegistry>             
     887        </NetserviceRegistry>
    876888    </xsl:copy>
    877889</xsl:template>
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette