large-scale deploy by autoyast

14
Large-scale deploy by AutoYast Large-scale deploy by AutoYast Hillwood Yang http://hillwoodhome.net [email protected]

Upload: hillwood-yang

Post on 21-Jan-2018

229 views

Category:

Internet


2 download

TRANSCRIPT

Page 1: Large-scale deploy by AutoYast

Large-scale deploy by AutoYastLarge-scale deploy by AutoYast

Hillwood Yang

http://hillwoodhome.net

[email protected]

Page 2: Large-scale deploy by AutoYast

2

Page 3: Large-scale deploy by AutoYast

3

Page 4: Large-scale deploy by AutoYast

4

AutoYast

• A system for installing more SLE/openSUSE

• Automatically and without user intervention

– Partition

– Network configuration

– Choosing software

– Firewall configuration

– Service configuration

– Etc….

Page 5: Large-scale deploy by AutoYast

5

Autoinst.xml

Page 6: Large-scale deploy by AutoYast

6

A detail in the autoinst.xml

Page 7: Large-scale deploy by AutoYast

7

Get autoinst.xml

• Clone an installed system

• Using Yast-Autoyast to Create

• From scratch by any editor.

Page 8: Large-scale deploy by AutoYast

8

PXE boot server

• DHCP server

• TFTP server

Page 9: Large-scale deploy by AutoYast

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; }

}

Page 10: Large-scale deploy by AutoYast

10

PXE boot: Config TFTP service

/tftpboot /tftpboot/pxelinux.0 /tftpboot/initrd.img /tftpboot/vmlinuz /tftpboot/pxelinux.cfg /tftpboot/pxelinux.cfg/default

Page 11: Large-scale deploy by AutoYast

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

Page 12: Large-scale deploy by AutoYast

12

More about PXE

https://en.opensuse.org/SDB:PXE_boot_installation

Page 13: Large-scale deploy by AutoYast

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

Page 14: Large-scale deploy by AutoYast

14

Join us on:www.opensuse.org