large-scale deploy by autoyast
Post on 21-Jan-2018
229 Views
Preview:
TRANSCRIPT
Large-scale deploy by AutoYastLarge-scale deploy by AutoYast
Hillwood Yang
http://hillwoodhome.net
hillwood@opensuse.org
2
3
4
AutoYast
• A system for installing more SLE/openSUSE
• Automatically and without user intervention
– Partition
– Network configuration
– Choosing software
– Firewall configuration
– Service configuration
– Etc….
5
Autoinst.xml
6
A detail in the autoinst.xml
7
Get autoinst.xml
• Clone an installed system
• Using Yast-Autoyast to Create
• From scratch by any editor.
8
PXE boot server
• DHCP server
• TFTP server
9
/etc/dhcpd.conf
group {
# PXE related stuff
#
# "next server" defines the tftp server that will be used
next server ip_tftp_server: 192.168.1.1
#
# "filename" specifies the pxelinux image on the tftp server
# the server runs in chroot under /srv/tftpboot
filename "pxelinux.0";
host test { hardware ethernet mac_address;
fixed-address some_ip_address; }
}
10
PXE boot: Config TFTP service
/tftpboot /tftpboot/pxelinux.0 /tftpboot/initrd.img /tftpboot/vmlinuz /tftpboot/pxelinux.cfg /tftpboot/pxelinux.cfg/default
11
syslinux
# installlabel linux kernel linux append initrd=initrd splash=silent install=http://192.168.1.209/opensuse/ showopts autoyast=http://192.168.1.209/opensuse/autoinst.xml
12
More about PXE
https://en.opensuse.org/SDB:PXE_boot_installation
13
Autoyast configure in syslinux
Document autoyast=file://path Let the installation search form specific path (If it was the root of the CD-ROM, please use the relative path —— file:///autoinst.xml).
Locale disk autoyast=device://path Let the installation search control document form locale disk. Just device
name is enough - If /dev/sda1 is wrong , please use sda 。
Floppy disk autoyast=floppy://path Let the installation search control document form floppy disk. If the installation search noting in floppy disk, it will search control document form all usb device.
USB device autoyast=usb://path Let the installation search control document form USB device
NFS autoyast=nfs://server/path Let the installation search control document form NFS server
HTTP autoyast=http://server/path Let the installation search control document form HTTP server
HTTPS autoyast=https://server/path Let the installation search control document form NFS server
TFTP autoyast=tftp://server/path Let the installation search control document form NFS server
FTP autoyast=ftp://server/path Let the installation search control document form NFS server
top related