BootCD anpassen

ascotlx
Beiträge: 7
Registriert: 19 Nov 2013, 20:59

BootCD anpassen

Beitrag von ascotlx »

Hallo ..,

ich möchte die opsi BootCD schon mit ein paar Werten anpassen ohne diese jedesmal bei der Installation eines Clients eingeben zu müssen.
In der Umgebung kann ich die Clients nur mit einer Boot CD starten und muss immer die den Opis Servernamen eingeben, das zu installierende Images auswählen und die Installation bestätigen.
Die Umgebung ist schon von einer dritten Person installiert und konfiguriert worden. Ebenfalls ist das Installationsverzeichnis schon fertig hinterlegt worden.

Ich habe derzeit die Installation soweit gebracht, dass dieses nun mit Treibereinbindung funktioniert. Nun kommen die Pakete dran. Es ist aber noch der Punkt offen, dass der Admin die PCs mit einer CD starten und so wenig Eingaben wie möglich machen will. Idealerweise bleibt nur die Angabe des PC Namens…

Kann mir jemand weiterhelfen??

Besten Dank schon mal..
Benutzeravatar
SisterOfMercy
Beiträge: 1523
Registriert: 22 Jun 2012, 19:18

Re: BootCD anpassen

Beitrag von SisterOfMercy »

Why aren't you using PXE boot? That is a lot easier to manage. When selecting clients from configed you do not have to input anything at the clients themselves.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
ascotlx
Beiträge: 7
Registriert: 19 Nov 2013, 20:59

Re: BootCD anpassen

Beitrag von ascotlx »

(sorry for my bad english)

There is an DHCP Server in the Company Network that i can't administrate. Or is it possible to work with the OPSI DHCP Server an the Company DHCP Server in the same network?
According to my experience it does not work (o.O)

Is there no possibility to expand booted ??

Greets
ascotlx
Benutzeravatar
SisterOfMercy
Beiträge: 1523
Registriert: 22 Jun 2012, 19:18

Re: BootCD anpassen

Beitrag von SisterOfMercy »

ascotlx hat geschrieben:(sorry for my bad english)
There is an DHCP Server in the Company Network that i can't administrate. Or is it possible to work with the OPSI DHCP Server an the Company DHCP Server in the same network?
According to my experience it does not work (o.O)
You can speak German, I can read it.
It might be possible, but I don't have any experience with it. (If I have time, I might look at the bootimage)
If you do not have any other PXE services on your network, you might want to ask the DHCP administrator.. You would only have to add these two lines in ISC DHCP: (of course edit the IP address)

Code: Alles auswählen

filename "linux/pxelinux.0";
next-server 10.23.0.25;
Other options seem like a lot of work; You might be able to use two DHCP servers, but with the OPSI server only serving on a different interface which is only connected to your staging area.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
ascotlx
Beiträge: 7
Registriert: 19 Nov 2013, 20:59

Re: BootCD anpassen

Beitrag von ascotlx »

Hi SisterOfMercy,

vielen Dank für Deine Antwort.

...ok, ich versuch es zu erklären...

Es sind diverse Netzwerke die von einer zentralen Stelle aus administriert werden. Die "Außenstellen" handeln aber eigenständig und wollen es bleiben. Ist eher ein politisches Ding und nicht so einfach zu lösen.
Technisch ist mir klar, dass der DHCP entsprechend konfiguriert werden kann. Nur will niemand an die zentrale Stelle mit dem Änderungswunsch herantreten.

Daher der Versuch die BootCD an die Bedürfnisse anzupassen.
Ich werde mir die CD noch mal ansehen. Was ich einbauen muss weiss ich ja. Es hatte nur nicht mit dem Booten geklappt.

Aber vielleicht hat ja jemand noch eine andere Idee ?!?!?! :)

... schon mal vielen Dank…

ascotlx
dkoch
Beiträge: 309
Registriert: 25 Nov 2011, 14:03

Re: BootCD anpassen

Beitrag von dkoch »

Ich kenne euer Setup jetzt nicht aber mal angenommen jede Ausenstelle hat ein eigenes Subnetz kann man auch mit DHCP einrichten welches subnetz welche tftp option übermittelt bekommt.

Code: Alles auswählen

subnet 192.168.0.0 netmask 255.255.255.0 {
        range 192.168.0.10 192.168.0.254;
        default-lease-time 3600;
        max-lease-time 4800;
        option routers 192.168.0.1;
        option domain-name-servers 192.168.0.1;
        option subnet-mask 255.255.255.0;
        option ntp-servers 192.168.0.1;
        filename "linux/pxelinux.0";
        next-server 192.168.0.1;
}
Nur mal so als Gedanke. Du kannst ja sogar Optionen pro Mac-Adresse oder teile einer Mac-Adresse vergeben. Nur mal so als gedanke. Ansonsten musst die vielleicht mal genau erklären wo das große Problem ist TFTP zu nutzen. Bequemer als beim Boot geht eingentlich gar nicht weil du nicht einmal vor Ort sein musst. Da hält keine CD mit
ascotlx
Beiträge: 7
Registriert: 19 Nov 2013, 20:59

Re: BootCD anpassen

Beitrag von ascotlx »

Hi dkoch,

dank auch Dir. Aber ist mir klar was Du meinst nur habe ich auf die Umsetzung keinen Einfluss …. ich soll "nur" opsi implementieren.

Nun gut, ich habe ein wenig in meinen alten Linux Unterlagen gestöbert und bin fündig geworden.
Mit folgender Vorgehensweise habe ich die BootCD unter Linux anpassen und wieder "zusammenbauen" können.

mounten des ISO Files

Code: Alles auswählen

mkdir /mnt/bootcd
mount -o loop -o rw opsi4.0-client-boot-cd_20130207.iso /mnt/bootcd
Befehl

Code: Alles auswählen

mount /mnt
Ausgabe

Code: Alles auswählen

/tmp/opsi4.0-client-boot-cd_20130207.iso on /mnt/bootcd type iso9660 (ro)
Erstellen eines neuen Verzeichnisses und umkopieren des ISO Inhaltes

Code: Alles auswählen

mkdir /tmp/newboot
cp -a /mnt/bootcd/* /tmp/newboot/
Nun können die entsprechenden Dateien bearbeitet werden.

Erstellen einer neuen BootImage Datei (.iso)

Code: Alles auswählen

mkisofs -R -V "neue opsi BootCD" -o /tmp/new-bootcd.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table /mnt/bootcd/boot/isolinux
Output

Code: Alles auswählen

Size of boot image is 4 sectors -> No emulation
 11.67% done, estimate finish Mon Jan 27 23:49:51 2014
 23.35% done, estimate finish Mon Jan 27 23:49:47 2014
 35.00% done, estimate finish Mon Jan 27 23:49:45 2014
 46.68% done, estimate finish Mon Jan 27 23:49:45 2014
 58.32% done, estimate finish Mon Jan 27 23:49:44 2014
 70.00% done, estimate finish Mon Jan 27 23:49:47 2014
 81.65% done, estimate finish Mon Jan 27 23:49:57 2014
 93.33% done, estimate finish Mon Jan 27 23:49:55 2014
Total translation table size: 2048
Total rockridge attributes bytes: 1144
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 0
42874 extents written (83 MB)
Anschließend hat man eine neues Bootimage. Auf CD brennen oder in einer VM Umgebung einsetzen.

Ich bin mir schon im klaren, dass die meisten den DHCP Weg gehen, aber vielleicht hat ja noch jemand das gleiche Problem wie ich :)

besten Dank für die Hilfe und Hinweise…
ascotlx
Benutzeravatar
SisterOfMercy
Beiträge: 1523
Registriert: 22 Jun 2012, 19:18

Re: BootCD anpassen

Beitrag von SisterOfMercy »

I think you can edit isolinux.cfg, like the PXE configuration files.

Look here: viewtopic.php?p=25141#p25141

This is what it an entry of the isolinux.cfg looks like after modification:

Code: Alles auswählen

label opsi_en
  menu label Start opsi (english)
  text help
                Start opsi (press F1 to see advanced options).
  endtext
  kernel vmlinuz
  append lang=en initrd=miniroot.bz2 video=vesa:ywrap,mtrr vga=791 quiet splash service=https://opsi.domain.local:4447/rpc
I personally always remove the quiet and splash statements, so I can see if something is happening or not.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
mconsoir
Beiträge: 2
Registriert: 15 Jul 2014, 17:42

Re: BootCD anpassen

Beitrag von mconsoir »

Hallo zusammen,
ist es außerdem möglich einen bestimmten Benutzernamen mitzugeben? Ich sehe in der f1.txt lediglich...

09PCPATCH_PASSWD07 smb password of user pcpatch

Viele Grüße,
Markus
bambino9124
Beiträge: 7
Registriert: 09 Apr 2015, 10:59

Re: BootCD anpassen

Beitrag von bambino9124 »

ich denke du hast recht
wie bzw. wo bekomme ich eine aktuelle bootcd her ? die cd bei Sourceforge ist ja nicht mehr aktuell :(


Translate da mein englisch nicht so gut ist.


I think you're right
how and where can I get a current bootcd ago? CD at SourceForge's not active :(
Antworten