Benutzer-Werkzeuge

Webseiten-Werkzeuge


autoyast

Dies ist eine alte Version des Dokuments!


AutoYast

Install VMWare Tools via AutoYaST Using a Rules File on SLE11

/autoyast/
|-- autoinst.xml
|-- classes
|   `-- software
|       `-- install-vmware-tools.xml
`-- rules
    `-- rules.xml
rules.xml
<?xml version="1.0"?>
<!DOCTYPE profile>
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
  <rules config:type="list">
    <!--
      Always include the default AutoYaST profile (autoinst.xml in this case).
    //-->
    <rule>
      <hostname>
        <match>*</match>
        <match_type>regex</match_type>
      </hostname>
      <result>
        <profile>autoinst.xml</profile>
        <continue config:type="boolean">true</continue>
      </result>
    </rule>
    <!--
      Find out if the target host is VMWare by checking first six
      characters of the MAC address of the first network card.  MAC
      addresses beginning with "000c29" are reserved for use by VMWare.
    //-->
    <rule>
      <mac>
        <match>000c29.{6}</match>
        <match_type>regex</match_type>
      </mac> 
      <result>
        <profile>classes/software/install-vmware-tools.xml</profile>
        <continue config:type="boolean">true</continue>
        <dont_merge config:type="list">
          <element>package</element>
          <element>listentry</element>
        </dont_merge>
      </result>
    </rule>
  </rules>
</profile>
install-vmware-tools.xml
<?xml version="1.0"?>
<!DOCTYPE profile>
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
  <add-on>
    <add_on_products config:type="list">
      <listentry>
        <media_url>nfs://192.168.0.1/install/vmware-tools/</media_url>
        <product>vmware-tools</product>
        <product_dir>/</product_dir>
        <ask_on_error config:type="boolean">false</ask_on_error>
        <name>VMWare Tools 8.0.3 x86_64</name>
      </listentry>
    </add_on_products>
  </add-on>
  <software>
    <packages config:type="list">
      <package>vmware-tools</package>
      <package>vmware-open-vm-tools-common</package>
      <package>vmware-open-vm-tools-kmod</package>
      <package>vmware-open-vm-tools</package>
      <package>vmware-tools-nox</package>
      <package>vmware-tools-common</package>
      <package>vmware-open-vm-tools-xorg-utilities</package>
      <package>vmware-open-vm-tools-nox</package>
    </packages>
  </software>
</profile>
autoyast.1318282848.txt.gz · Zuletzt geändert: 2011/10/10 23:40 von admin