Objective: autoyast configuration and boot via PXE
Environment: OpenSuSE 11/SuSE 11
w.r.t my earlier post on PXE boot for SLES ( click here ) , I would continue as how autoyast could be configured and could be combined into PXE environment.
Yast ->Miscellaneous -> Autoinstallation
In above Groups and their corresponding Modules, Clone the Modules, so that the current system Modules would be copied the the destination host.
Below is one such example shown,
Pic -1:
Autoinstallation - Configuration
┌Groups────────────────────────────┐┌Modules───────────────────────
│Hardware ││Add-On Products
│High Availability ││Image deployment
│Miscellaneous ││Online Update Configuration
│Network Services ││Package Selection
│Network Devices ││
│Security and Users ││
│Software ││
│Support ││
│System ││
│Virtualization ││
│ ││
Pic -2:
Details
┌───────────────────────────────────────────────────────────────────┐
│Selected Patterns │
│ │
│ * Minimal │
│ * WBEM │
│ * apparmor │
│ * base │
│ * dhcp_dns_server │
│ * documentation │
│ * file_server │
│ * gnome │
│ * lamp_server │
│ * print_server │
│ * x11 │
│ │
│Individually Selected Packages │
│ │
│149 │
│ │
│Packages to Remove │
│ │
│20 │
│ │
│ │
└───────────────────────────────────────────────────────────────────┘
[Clone] [Edit]
[Apply to system] [Clear]
Once the above package cloning and all other Groups are completed, you need to save the file(XML format) which by default resides in the directory /var/lib/autoinstall/repository.
Note: During the User and Group Management selection, make sure you would de-select 'gdm' as it is created during the installation and hence can be omitted. You may receive the error as below incase you have selected the user & group.
Error: Could not update ICEauthority file /var/lib/gdm/.ICEauthority
# ls -l /var/lib/autoinstall/repository/*.xml
-rw-r--r-- 1 root root 47703 Jul 25 13:55 /var/lib/autoinstall/repository/autoyast_pxe.xml
#
- Make a directory inside the apache's default DocumentRoot /srv/www/htdocs/
# mkdir /srv/www/htdocs/autoyast
#
- Copy the default XML file from /var/lib/autoinstall/repository/autoyast_pxe.xml to /srv/www/htdocs/autoyast
- Make sure that your PXE finds the autoyast configuration from the TFTP server to start the installations, hence need to append as below in the default configs of the PXE config's.
APPEND initrd=sles/11/x86_64/initrd splash=silent showopts install=http://192.168.56.116/sles/11/x86_64/ autoyast=http://192.168.56.116/autoyast/autoyast_pxe.xml
Now, your installations are successful and is automated.
No comments:
Post a Comment