opsi - erste schritte

Einrichten der Repositories

Die Basisinstallation des Opsi-Servers umfasst ca. 3GB. Daher ist es sinnvoll, eine eigene Partition für die PC-Daten (i386-Verzeichnisse etc.) zu erstellen.

  • mkfs.ext3 /dev/xvdc1
  • tune2fs -c0 -t0 /dev/xvdc1
  • mkdir -p /data
  • mount /dev/xvdc1 /data
  • cd /data
  • ( cd /opt/pcbin ; tar cf - *) | tar xvf -
  • cd /opt
  • mv pcbin pcbin.local
  • ln -s /data pcbin

Jetzt sind die minimalen opsi-Produkte einzuspielen.

wget -r -l1 -nv -nc -nd -A '*.opsi' http://download.uib.de/opsi3.3/produkte/essential

18:48:08 URL:http://download.uib.de/opsi3.3/produkte/essential/ [5669] -> "index.html" [1]
http://download.uib.de/robots.txt:
18:48:08 FEHLER 404: Not Found.
18:48:08 URL:http://download.uib.de/opsi3.3/produkte/essential/?C=N;O=D [5669] -> "index.html?C=N;O=D" [1]
18:48:08 URL:http://download.uib.de/opsi3.3/produkte/essential/?C=M;O=A [5669] -> "index.html?C=M;O=A" [1]
18:48:08 URL:http://download.uib.de/opsi3.3/produkte/essential/?C=S;O=A [5669] -> "index.html?C=S;O=A" [1]
18:48:08 URL:http://download.uib.de/opsi3.3/produkte/essential/?C=D;O=A [5669] -> "index.html?C=D;O=A" [1]
18:48:09 URL:http://download.uib.de/opsi3.3/produkte/ [5142] -> "index.html" [1]
18:48:09 URL:http://download.uib.de/opsi3.3/produkte/essential/hwaudit_1.2-1.opsi [547328/547328] -> "hwaudit_1.2-1.opsi" [1]
18:48:09 URL:http://download.uib.de/opsi3.3/produkte/essential/hwinvent_1.1-1.opsi [2048/2048] -> "hwinvent_1.1-1.opsi" [1]
18:48:59 URL:http://download.uib.de/opsi3.3/produkte/essential/javavm_1.6.0.7-1.opsi [70364672/70364672] -> "javavm_1.6.0.7-1.opsi" [1]
18:49:00 URL:http://download.uib.de/opsi3.3/produkte/essential/memtest86_2.01-1.opsi [48640/48640] -> "memtest86_2.01-1.opsi" [1]
18:49:00 URL:http://download.uib.de/opsi3.3/produkte/essential/ntfs-restore-image_1.4-2.opsi [3072/3072] -> "ntfs-restore-image_1.4-2.opsi" [1]
18:49:00 URL:http://download.uib.de/opsi3.3/produkte/essential/ntfs-write-image_1.4-2.opsi [2560/2560] -> "ntfs-write-image_1.4-2.opsi" [1]
18:49:18 URL:http://download.uib.de/opsi3.3/produkte/essential/opsi-adminutils_3.3-11.opsi [25956352/25956352] -> "opsi-adminutils_3.3-11.opsi" [1]
18:49:23 URL:http://download.uib.de/opsi3.3/produkte/essential/opsi-winst_4.7.4-5.opsi [5443072/5443072] -> "opsi-winst_4.7.4-5.opsi" [1]
18:49:27 URL:http://download.uib.de/opsi3.3/produkte/essential/preloginloader_3.3-22.opsi [5466624/5466624] -> "preloginloader_3.3-22.opsi" [1]
18:49:42 URL:http://download.uib.de/opsi3.3/produkte/essential/python_2.5.2-1.opsi [15830016/15830016] -> "python_2.5.2-1.opsi" [1]
18:49:42 URL:http://download.uib.de/opsi3.3/produkte/essential/shutdownwanted_1.0-1.opsi [5120/5120] -> "shutdownwanted_1.0-1.opsi" [1]
18:49:42 URL:http://download.uib.de/opsi3.3/produkte/essential/swaudit_1.2.2-2.opsi [171008/171008] -> "swaudit_1.2.2-2.opsi" [1]
18:49:42 URL:http://download.uib.de/opsi3.3/produkte/essential/upgrade/ [5004] -> "index.html" [1]
18:49:42 URL:http://download.uib.de/opsi3.3/produkte/essential/win2k_sp4-9.opsi [183296/183296] -> "win2k_sp4-9.opsi" [1]
18:49:42 URL:http://download.uib.de/opsi3.3/produkte/essential/win2003_sp2-11.opsi [188928/188928] -> "win2003_sp2-11.opsi" [1]
18:49:43 URL:http://download.uib.de/opsi3.3/produkte/essential/winxppro_sp3-9.opsi [169472/169472] -> "winxppro_sp3-9.opsi" [1]
18:49:43 URL:http://download.uib.de/opsi3.3/produkte/essential/wipedisk_1.0-2.opsi [2048/2048] -> "wipedisk_1.0-2.opsi" [1]

BEENDET --18:49:43--
Geholt: 124.422.747 Bytes in 23 Dateien

Die Pakete sind nun zu installieren.

  • for i in *.opsi ; do opsi-package-manager -i $i ; done
Installing package 'hwaudit_1.2-1.opsi' on depot 'opsi.tiri.local'
Installation of package '/home/opsiproducts/hwaudit_1.2-1.opsi' on depot 'opsi.tiri.local' finished
Installing package 'hwinvent_1.1-1.opsi' on depot 'opsi.tiri.local'
Installation of package '/home/opsiproducts/hwinvent_1.1-1.opsi' on depot 'opsi.tiri.local' finished
Installing package 'javavm_1.6.0.7-1.opsi' on depot 'opsi.tiri.local'
Installation of package '/home/opsiproducts/javavm_1.6.0.7-1.opsi' on depot 'opsi.tiri.local' finished
Installing package 'memtest86_2.01-1.opsi' on depot 'opsi.tiri.local'
Installation of package '/home/opsiproducts/memtest86_2.01-1.opsi' on depot 'opsi.tiri.local' finished
Installing package 'ntfs-restore-image_1.4-2.opsi' on depot 'opsi.tiri.local'
Installation of package '/home/opsiproducts/ntfs-restore-image_1.4-2.opsi' on depot 'opsi.tiri.local' finished
Installing package 'ntfs-write-image_1.4-2.opsi' on depot 'opsi.tiri.local'
Installation of package '/home/opsiproducts/ntfs-write-image_1.4-2.opsi' on depot 'opsi.tiri.local' finished
Installing package 'opsi-adminutils_3.3-11.opsi' on depot 'opsi.tiri.local'
Installation of package '/home/opsiproducts/opsi-adminutils_3.3-11.opsi' on depot 'opsi.tiri.local' finished
Installing package 'opsi-winst_4.7.4-5.opsi' on depot 'opsi.tiri.local'
Installation of package '/home/opsiproducts/opsi-winst_4.7.4-5.opsi' on depot 'opsi.tiri.local' finished
Installing package 'preloginloader_3.3-22.opsi' on depot 'opsi.tiri.local'
Installation of package '/home/opsiproducts/preloginloader_3.3-22.opsi' on depot 'opsi.tiri.local' finished
Installing package 'python_2.5.2-1.opsi' on depot 'opsi.tiri.local'
Installation of package '/home/opsiproducts/python_2.5.2-1.opsi' on depot 'opsi.tiri.local' finished
Installing package 'shutdownwanted_1.0-1.opsi' on depot 'opsi.tiri.local'
Installation of package '/home/opsiproducts/shutdownwanted_1.0-1.opsi' on depot 'opsi.tiri.local' finished
Installing package 'swaudit_1.2.2-2.opsi' on depot 'opsi.tiri.local'
Installation of package '/home/opsiproducts/swaudit_1.2.2-2.opsi' on depot 'opsi.tiri.local' finished
Installing package 'win2003_sp2-11.opsi' on depot 'opsi.tiri.local'
Installation of package '/home/opsiproducts/win2003_sp2-11.opsi' on depot 'opsi.tiri.local' finished
Installing package 'win2k_sp4-9.opsi' on depot 'opsi.tiri.local'
Installation of package '/home/opsiproducts/win2k_sp4-9.opsi' on depot 'opsi.tiri.local' finished
Installing package 'winxppro_sp3-9.opsi' on depot 'opsi.tiri.local'
Installation of package '/home/opsiproducts/winxppro_sp3-9.opsi' on depot 'opsi.tiri.local' finished
Installing package 'wipedisk_1.0-2.opsi' on depot 'opsi.tiri.local'
Installation of package '/home/opsiproducts/wipedisk_1.0-2.opsi' on depot 'opsi.tiri.local' finished

Jetzt müssen noch die i386-Verzeichnisse hineinkopiert werden, um die Installationspakete zu vervollständigen.

  • mkdir -p pcbin/iso
  • cd pcbin/iso
  • mount -o loop winxpsp3.iso /media/cdrom
  • cp -a /media/cdrom/i386/* /opt/pcbin/install/winxppro/i386/
  • chown -R opsiconfd:pcpatch /opt/pcbin/install/winxppro/

Weitere Produkte können durch Verwendung der Repositories unter Produkte bzw. Testing eingebunden werden.

Zusätzlich muss noch ein Kennwort für den pcpatch User vergeben werden.

opsi-admin -d task setPcpatchPassword

Netboot Image

Damit ein Client über das Netz installiert werden kann, sind folgende Schritte notwendig.

  • Erstellen eines neuen Clients
    • opsi-admin -d method createClient ‘clientname’ ‘domain’ ‘description’ ‘notizen’ ip.ad.dr.ss hw:ad:dr:es:se:xx

Nun kann über den Reiter “Netboot-Produkte” eine Aktion ausgewählt werden, z.B. Hardware-Inventory.

Hardware-Inventory

Es ist zu beachten, dass hier der “rote Haken” anzuklicken ist, damit die Änderungen aktiv werden. (Technisch wird unter /tftpboot/linux/pxelinux.cfg eine Datei mit der Hardware-Adresse angelegt, so dass ein PXE-Boot möglich wird).

Internals zum Netboot Image

Ist der Client in opsi konfiguriert, so wird ein Linux netboot Image vom Server geladen.

PXEboot/netboot

Feb  6 19:50:26 opsi in.tftpd[4894]: connect from 192.168.178.80 (192.168.178.80)
Feb  6 19:50:26 opsi atftpd[4894]: Advanced Trivial FTP server started (0.7)
Feb  6 19:50:26 opsi atftpd[4894]: Serving linux/pxelinux.0 to 192.168.178.80:2070
Feb  6 19:50:26 opsi atftpd[4894]: Serving linux/pxelinux.0 to 192.168.178.80:2071
Feb  6 19:50:26 opsi atftpd[4894]: Serving linux/pxelinux.cfg/564de7c4-cf08-5fc8-5b08-388abd2a7cea to 192.168.178.80:57089
Feb  6 19:50:26 opsi atftpd[4894]: Serving linux/pxelinux.cfg/01-00-0c-29-2a-7c-ea to 192.168.178.80:57090
Feb  6 19:50:26 opsi atftpd[4894]: Serving linux/install to 192.168.178.80:57091
Feb  6 19:50:27 opsi atftpd[4894]: Serving linux/miniroot.gz to 192.168.178.80:57092

HW-Inventory Screen (Client)

Zu debugging-Zwecken kann man sich hier auch einloggen (wenn man von Console 6 auf Console 1 wechselt) : root :: linux123. Eine Info über die Hardware des Systems erhält man mittels

/usr/bin/lshw -xml

Wenn er mit der Inventarisierung fertig ist, dann wird das System neu gestartet.

HW-Inventarisierung

Im Depot-Server (configed) ist der Task jetzt grün und steht für den entsprechenden Host auf “installed”.

installed hardware-info vmtest

 
wissen/unattended-automatisierte-windows-installation-und-softwareverteilung-mit-opsi-erste-schritte.txt · Zuletzt geändert: 05.09.2010 20:31
 
Recent changes RSS feed Donate Valid XHTML 1.0 Valid CSS Recent cached RSS feed cacert-signed web site: inhalt.serviert.de