| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung |
| autoyast [2011/06/05 12:38] – admin | autoyast [2011/10/10 23:41] (aktuell) – admin |
|---|
| |
| [[http://cn.opensuse.org/AutoYaST|AutoYaST - openSUSE]] \\ | [[http://cn.opensuse.org/AutoYaST|AutoYaST - openSUSE]] \\ |
| | {{autoyast_workflow.jpg?300|Workflow}} \\ |
| [[http://doc.opensuse.org/projects/YaST/openSUSE11.3/autoinstall/index.html|AutoYaST]] \\ | [[http://doc.opensuse.org/projects/YaST/openSUSE11.3/autoinstall/index.html|AutoYaST]] \\ |
| [[http://doc.opensuse.org/projects/YaST/openSUSE11.3/autoinstall/createprofile.scripts.html|4.16. Custom user scripts]] \\ | [[http://doc.opensuse.org/projects/YaST/openSUSE11.3/autoinstall/createprofile.scripts.html|4.16. Custom user scripts]] \\ |
| [[http://www.ibm.com/developerworks/linux/library/l-cloud-auto/|Automating Linux cloud installations]] \\ | [[http://www.ibm.com/developerworks/linux/library/l-cloud-auto/|Automating Linux cloud installations]] \\ |
| [[http://www.suse.com/~ug/|SUSE / Uwe Gansert / autoyast / autoinstall]] \\ | [[http://www.suse.com/~ug/|SUSE / Uwe Gansert / autoyast / autoinstall]] \\ |
| | |
| | * [[http://www.suse.com/~ug/autoyast_doc/invoking_autoinst.html#id2543177|AutoYaST Bootparameter]] |
| | * [[http://de.opensuse.org/Linuxrc|Bootparameter]] |
| | * [[Bootparameter]] |
| |
| *[[http://www.suse.de/~ug/|AutoYaST Homepage]] | *[[http://www.suse.de/~ug/|AutoYaST Homepage]] |
| *[[http://www.suse.de/~ug/autoyast_doc/invoking_autoinst.html|Parameter zum Booten]] | *[[http://www.suse.de/~ug/autoyast_doc/invoking_autoinst.html|Parameter zum Booten]] |
| |
| autoyast=default Default auto-installation option | autoyast=default |
| autoyast=file://<path> Looks for control file in specified path (relative to source root directory, i.e. file:///autoinst.xml if in the top directory of a CD-ROM and you did an installation from CD) | autoyast=file:///autoinst.xml |
| autoyast=device://<device>/<file> Looks for control file on a storage device. (only device name needed without full path, i.e. /dev/sda1 is wrong, instead use sda1). Since openSUSE 11.2 (not SLES11) you can leave out the device to trigger AutoYaST's search routine over all devices. (autoyast=device:///my.xml) | autoyast=device://<device>/<file> |
| autoyast=floppy://<path> Looks for control file in the floppy (Useful when booting from CD). Since SLES10 SP1 and later the fallback is looking on USB devices too | autoyast=device:///my.xml |
| autoyast=nfs://<server>/<path> Looks for control file on <server> | autoyast=floppy:///autoyast.xml (der dritte / steht für das Rootverzeichnis auf der Diskette) |
| autoyast=http://[user:password@]<server>/<path> Retrieves the control file from a web server using the HTTP protocol. | autoyast=nfs://<server>/<path> |
| autoyast=https://[user:password@]<server>/<path> Retrieves the control file from a web server using HTTPS (encrypted connection) protocol (possible since SL 10.1 and SLES10 | autoyast=http://[user:password@]<server>/<path> |
| autoyast=tftp://<server>/<path> Retrieve the control file with TFTP | autoyast=https://[user:password@]<server>/<path> |
| autoyast=ftp://[user:password@]<server>/<path> Retrieve the control file with FTP | autoyast=tftp://<server>/<path> |
| autoyast=usb://<path> (since SLES10 SP1) Retrieve the control file from USB devices (autoyast will search on all USB devices it can find) | autoyast=ftp://[user:password@]<server>/<path> |
| autoyast=relurl://<path> (since openSUSE 11.0) Retrieve the control file from the installation source (install=....) | autoyast=usb://<path> |
| autoyast=slp (since openSUSE 11.2, not SLES 11) Query the location of the profile from an SLP server (service:autoyast:...). Since openSUSE 11.3 you can add a "description=" attribute so you can "translate" the URL into something more readable | autoyast=relurl://<path> |
| autoyast=cifs://<server>/<path> (since openSUSE 11.2, not SLES 11) Looks for control file on <server> with CIFS | autoyast=slp |
| autoyast=label://<label>/<path> (since openSUSE 11.3, not SLES 11) Looks for control file on a device that has the label | autoyast=cifs://<server>/<path> |
| | autoyast=label://<label>/<path> |
| | |
| | |
| | ==== Install VMWare Tools via AutoYaST Using a Rules File on SLE11 ==== |
| | |
| | <file> |
| | /autoyast/ |
| | |-- autoinst.xml |
| | |-- classes |
| | | `-- software |
| | | `-- install-vmware-tools.xml |
| | `-- rules |
| | `-- rules.xml |
| | </file> |
| | |
| | <code 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> |
| | </code> |
| |
| | <code xml 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> |
| | </code> |