Automagisch installeren van OES en SLES. Frank Korpershoek Jeroen Bannink



Vergelijkbare documenten
4/5 Installatieservers

Open Enterprise Server 2 en vsphere Best Practises. Michael Wilmsen

1 Installatie van de server... 2

Aandachtspunten voor installatie suse in vmware server

Netwerkprinter Dell 1320C installeren op Ubuntu LTS - Lucid Lynx

HowTo => OpenBSD => Local Caching DNS + DNSSEC (UNBOUND)

Linux Gevorderden Basis installatie Linux. Elektronica-ICT. Selina Oudermans 2ICT4. Academiejaar

HowTo => OpenBSD => Local Caching DNS + DNSSEC (BIND)

HowTo => OpenBSD => Basis Installatie

Linux Server Installatie

5/8 Patch management

2 Installatie Windows Server 2008 R2 Standard

HANDLEIDING >NAT ROUTER MET PFSENSE MEDIATECHNOLOGIE GRAFISCH LYCEUM ROTTERDAM SAMENSTELLER: R.SELLIS

Wat is een unattended install?

IAAS HANDLEIDING - SOPHOS FIREWALL

Voor op afstand os installatie moeten de volgende onderdelen geïnstalleerd zijn op de Windows 2000 server.

Examen Windows & Linux Server

Checklist Netopia R91xx t.b.v MXStream

Praktijk opdrachten VMware

Bestand: /home/karel/scripts/nas Pagina 1 van 8

Chapter 4. eenvoudige webserver opzetten

Installeer Apache2: Landstede februari 2009 versie 3 1 Bertil Hoentjen

Installatie Handleiding AP 1120 op HiPath 3000

Linux Terminal Server Project

KeyLink B.V. KeyLink CTI Client Installation Manual - Dutch

Inhoud S003. Vak: Windows 7 niv 3/4

Multi user Setup. Firebird database op een windows (server)

IPFire: Firewall en primary domain controller

Raspberry Pi VPN-server. Auteur: Ger Stok

14/11/2017. Windows 10 & TCP/IP for timers. Dennis Dirks

Linux Server bouwen Ubuntu Server

Inhoud van deze Opdracht; - TCP/IP - DHCP

Standard Parts Installatie Solid Edge ST3

3 Installatie Vmware Player 3.1

schoollan Post Installatie Handleiding

Van dvd naar webserver. Marcel Nijenhof 18 Juli

Windows Deployment Services. Deze opdracht maakt gebruik van de VApp _JVN_Deployment. De opdracht is werkend getest in de cloud ( vwb Windows7)

Linux Quickstart Cygwin via HTTP

Raspberry Pi Plex server installeren

How To: Setup MGE Network Shutdown Module V3 op het service console binnen VMware ESX 3.0.2

ISW Presents Debian Homeserver Workshop

ClockWise 3.0 installatie handleiding

Applicatie nclone : Partitie back-up van je PC/laptop maken

VMware vsphere 5. What s New! Bram de Laat, Marek Zdrojewski, Jan van Leuken

Les 4 Installeren Apache2 Php MySQL

VU POINT Camera Toevoegen

HOWTO: Named, a Domain Name Server. geschreven door Johan Huysmans

7 aug Snelstart document Thecus N2100 Y.E.S.box BlackIP Versie 1.0

Windows server Wesley de Marie. Wesley

NSS volumes in een bestaande tree aanspreken vanuit Domain Services for Windows

Instellen Zyxel modem als stand-alone ATA

DHCP Scope overzetten van Windows Server 2003 R2 naar Windows Server 2012

Freesco setup met de kabel (Chello) versie 0.3.0

HANDLEIDING. IPv6 implementatie op een DirectAdmin server met CentOS

HOW TO RESTORE A SYSTEM IMAGE IN WINDOWS SERVER 2012

Externe Toegang installeren onder Linux

MxStream & Linux. Auteur: Bas Datum: 7 november 2001

Router configuratie. Vervolgens pak je een werkplek (het liefst win 98 + ie 6.1 ) Start de pc op en zorg dat Illusion wordt gedeactiveerd.

5/7 Imaging in ZENworks 7.0

Handleiding Mac OS X 10.7 Lion. Deploy Studio

We gebruiken de Knoppix cd-rom versie 3.3. van de HCC Unix-gg. Je kunt hem bestellen bij de HCC-unix gg zie:

Absentie Presentie Server Migratie

Virtualisatie. en KVM. Oscar Buse 14 februari 2017 NLUG

Pagina 1/45. Aan de slag met. Virtueel Datacenter. Versie 1.4

Bestand: /home/karel/scripts/nas Pagina 1 van 9

HANDLEIDING. Dit document beschrijft de installatie, configuratie en gebruik van de Netduino Plus 2 monitoring oplossing

Inhoud. Geschiedenis / evolutie van OpenEmbedded en Yocto Overzicht van de architectuur en concepten Persoonlijke ervaring

Programma's installeren in Linux (toegespitst op Kanotix; Debian/sid)

Slackware installatie Gids. Inleiding. De installatie procedure starten

vroeger: 15 jaar unix systeem beheer/software development en 5 jaar infrastructuur architect (unix/blades)

Linux Server Installatie

Domain Name System. DNS-service voor je eigen subdomein van os3.nl leveren.

Inrichting Windows XP Pro werkstation in schoollan

[ EXAMEN LINUX UBUNTU SERVER ]

UBUNTU 8 installatie. 13/10/ ivowebschool.be/ /205bc10d-ef8e-4a 1/14. Onderwerpen

Hoe kan ik extern werken?

ipact Installatiehandleiding CopperJet 816-2P / P Router

welkom op SSP: "Waarom Freesco??" hoor ik u al denken...

Opleverdocument Meesterproef 2: Workflowbeheer

MKG Whitepapers augustus 2015

Denit Backup instellen op een Linux server

Linux Quickstart Cygwin

NGN. Wageningen, 30 oktober Iljitsch van Beijnum

EM7680 Firmware Update by OTA

Boekbespreking: Mastering Red Hat Linux 9

Configureren van een VPN L2TP/IPSEC verbinding

IAAS - QUICK START GUIDE

Installatie van Raspberry PI 9 november 2017 HCC Linux GG Zevenaar

Studietaak 4 Hoe installeer ik software? Apache Webserver

Unify- SLES Linux update handleiding

Gebruik van command-line operating systems

Bestand: /home/karel/scripts/start-installatie Pagina 1 van 10

Configureren van een VPN L2TP/IPSEC verbinding. In combinatie met:

TransIP FreeBSD Installatiehandleiding

IPCOP Dieter Depuydt Mail:

Hoe kan ik extern werken?

9/2.11 Virtuele webservers aanmaken in Apache

Documentnaam: Technisch Ontwerp Datum: Samenstelling: Bas, Chris & Teun Team Bas / Teun / Chris Versie: 1.4. Overzicht Tekening...

1. Controleren van de aansluiting op de splitter

1 Auteursrecht en Copyright 1 2 Overzicht 3 3 Benodigd 3 4 IP adres instel mogelijkheden 3 5 Details om te weten 3. 6 IP adres instellen 5

Transcriptie:

Automagisch installeren van OES en SLES Frank Korpershoek Jeroen Bannink

Agenda Waarom deze methode Installatie Server PXE Booting AutoYast scripts Subscription Management Server Slide: 2

Handmatig vs. Automatisch Handmatig CD's wisselen Veel input onderweg Automatisch Aan het begin van het proces de juiste gegevens verzamelen Slide: 3

Onderdelen Installatie Server PXE boot server AutoYast scripts Subscription Management Server Slide: 4

Installatie Server Voordelen Geen CD's meer nodig Snelheid Toevoegen pakketten eenvoudig Remote installaties Slide: 5

Installatie Server Installatie Diskruimte Installatie vanuit YaST (#yast instserver) sourcetype: HTTP/FTP/NFS directory, alias webserver alias sources toevoegen Source name (bv: sles10sp3-64) Source bestanden kopieeren Webbrowser test http://<installserver>/suse/ Slide: 6

Installatie Server Verdere configuratie SLP apache extra sources toevoegen Slide: 7

Installatie 'booten' Remaster van installatie CD /boot/i386/loader : append initrd=initrd splash=silent showopts install=http://<install>/suse/ sles10-sp3/cd1 autoyast=http://<install>/suse/<custom>.xml PXE Booten Geen CD's meer nodig PXE Boot proces Slide: 8

PXE Boot Server Configuratie TFTP Server installatie YaST Bootfiles SLES install DVD: pxelinux.0 linux initrd pxelinux.cfg/message pxelinux.cfg/default Slide: 9

PXE: default default harddisk implicit 0 display pxelinux.cfg/message prompt 1 timeout 200 # hard disk label harddisk localboot 0x80 # install sles10 sp3 32 bits label sles10sp3-32 kernel linux append initrd=initrd @ install=http://install.ix.org/suse/sles10sp3-32/cd1 showopts # install sles 10 sp3 32 bits with autoyast label sles10-autoyast kernel linux append initrd=initrd @ install=http://install.ix.org/suse/sles10sp3-32/cd1 @ autoyast=http://install.ix.org/suse/sles10-lab1130.xml @ showopts Slide: 10

PXE: message harddisk - Boot from Harddisk (this is default) sles10sp3-32 - Manual Installation of SLES10 SP3 sles10-autoyast - Installation of SLES 10 SP3 with autoyast Slide: 11

PXE informatie vanuit dhcp /etc/dhcpd.conf option domain-name "ix.org"; option domain-name-servers 10.1.1.2; option routers 10.1.1.2; ddns-update-style none; default-lease-time 14400; subnet 10.1.1.0 netmask 255.255.255.0 { range 10.1.1.100 10.1.1.200; default-lease-time 14400; max-lease-time 172800; next-server 10.1.1.21; filename "pxelinux.0"; } Slide: 12

PXE Boot Slide: 13

PXE Alternatieven Graphical PXE Slide: 14

Remote Installatie Kernel bootopties # install sles10 sp3 32 bits label sles10sp3-32 kernel linux append initrd=initrd install=http://install.ix.org/suse/sles10sp3-32/cd1 hostip=10.1.1.123/24 nameserver=10.1.1.20 gateway=10.1.1.2 usessh=1 sshpassword=wortel showopts Slide: 15

Remote Installatie Slide: 16

AutoYaST Wat is Autoyast Antwoord bestand Definieert» Systeeminstellingen» Pakketkeuzes Automatisch uitrollen Slide: 17

AutoYaST autoyast.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>http://10.1.1.21/suse/oes2sp2-32/cd1</media_url> <product>open_enterprise_server_sp2</product> <product_dir>/</product_dir> </listentry> </add_on_products> </add-on> <bootloader> <device_map config:type="list"> <device_map_entry> <firmware>hd0</firmware> <linux>/dev/sda</linux> </device_map_entry> </device_map> <global> Slide: 18

AutoYaST partioning <partitioning config:type="list"> <drive> <device>/dev/sda</device> <partitions config:type="list"> <partition> <create config:type="boolean">true</create> <filesystem config:type="symbol">swap</filesystem> <format config:type="boolean">true</format> <mount>swap</mount> <mountby config:type="symbol">device</mountby> <partition_id config:type="integer">130</partition_id> <partition_nr config:type="integer">1</partition_nr> <partition_type>primary</partition_type> <size>1176182272</size> </partition> <partition> <create config:type="boolean">true</create> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> <mount>/var/log</mount> <mountby config:type="symbol">device</mountby> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">2</partition_nr> <partition_type>primary</partition_type> <size>3076254208</size> </partition> Slide: 19 <partition> <create config:type="boolean">true</create> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> <mount>/</mount> <mountby config:type="symbol">device</mountby> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">3</partition_nr> <partition_type>primary</partition_type> <size>2138572288</size> </partition> </partitions> <use>all</use> </drive> </partitioning>

AutoYaST creëeren Hoe kom je aan een antwoord bestand yast autoyast op de command-line Inlezen huidige systeem Einde installatie van een server Slide: 20

AutoYaST yast autoyast Slide: 21

AutoYaST scan system Slide: 22

AutoYaST ask ASK <ask-list config:type="list"> <ask> <path>networking,dns,hostname</path> <question>enter Hostname (server name)</question> <stage>initial</stage> <default>enter your hostname here</default> </ask> </ask-list> Slide: 23

AutoYaST ask <networking>... <dns>.. <hostname>.. </networking> <ask-list config:type="list"> <ask> <path>networking,dns,hostname</path> <question>enter Hostname (server name)</question> <stage>initial</stage> <default>enter your hostname here</default> </ask> </ask-list> Slide: 24

AutoYaST ask hostnaam IP-adres Wachtwoorden <ask> <path>networking,interfaces,0,ipaddr</path> <title>password <path>networking,dns,hostname</path> FOR THE root USER</title> <question>enter <path>user,0,user_password</path> the primary Hostname IP (server Address:</question> name)</question> <stage>initial</stage> <question>enter the root password</question> <default>10.1.1.31</default> <stage>initial</stage> <default>enter your hostname here</default> </ask> <password config:type="boolean">false</password>! NB encrypted <encrypted config:type= boolean >true</encrypted> <encrypted config:type= boolean >false</encrypted> Slide: 25

AutoYaST yast autoyast Nadelen van deze methode Heel veel configuratiewerk Foutgevoelig Voordelen van deze methode Overzichtelijk Slide: 26

AutoYaST oes-componenten Veel extra configuratie-werk Gebruik een gegenereerd XML bestand Clone this System for autoyast Bewerk dit bestand, wijzig namen/adressen/context Slide: 27

AutoYaST scripts Pre-Install Scripts Postpartitioning Scripts (Alleen OpenSuse 11.2) Chroot scripts Post-Install Scripts Init Scripts Slide: 28

AutoYaST scripts <scripts> <post-scripts config:type="list"> <script> <filename>register.sh</filename> <interpreter>shell</interpreter> <source> <![CDATA[ #!/bin/bash wget smt.ix.org/smt.sh -O /root/smt.sh yes sh /root/smt.sh --host smt.ix.org --regcert http://smt.ix.org/smt.crt /usr/bin/suse_register /usr/bin/rug up --patch -y if [ -n "`ip link grep 'link/ether 00:0c:29'`" ]; then echo vmware wget http://install.ix.org/suse/vmwaretools-7.8.6-185404.i386.rpm -O /root/vmwaretools.rpm rpm -Uvh /root/vmwaretools.rpm /usr/bin/vmware-config-tools.pl --compile --default else echo default fi exit ]]> </source> </script> </post-scripts> </scripts> Slide: 29

AutoYaST know it all http://www.suse.de/~ug/autoyast_doc/index.html Slide: 30

SMT Server Subscription Management Tool Voordelen NCC Mirror Client registratie >> Sessie NC023 Subscription Management Tool 14:30-15:30 Slide: 31

Vragen en antwoorden Slide: 32