How to install a netboot product without any prompt ?

bourhis
Beiträge: 126
Registriert: 07 Nov 2012, 15:57

How to install a netboot product without any prompt ?

Beitrag von bourhis »

Hi,

I would like to automatically install a netboot product without any prompt after starting "pxe". I found the option for a specific client :

<code>
label opsi-install
kernel install
append initrd=miniroot.bz2 video=vesa:ywrap,mtrr vga=791 lang=fr quiet splash --no-log console=tty1 console=ttyS0 dn=iutb.univ-brest.fr product=win7-x64 hn=eiutb95 pckey=33b16589f754e2f5646e9f534db3d064 service=https://172.18.60.65:4447/rpc
</code>

Is there parameters to give the admin login and password in the "append" command line ?

Regards.
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

Re: How to install a netboot product without any prompt ?

Beitrag von SisterOfMercy »

Uhh, set the askbeforeinst property to false?
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
bourhis
Beiträge: 126
Registriert: 07 Nov 2012, 15:57

Re: How to install a netboot product without any prompt ?

Beitrag von bourhis »

Hi,

my problem is on the previous step : when I have to type the admin-user login and password...

Thanks.
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

Re: How to install a netboot product without any prompt ?

Beitrag von SisterOfMercy »

I never have to do that when installing a netboot product, which is the default behaviour, as far as I know.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: How to install a netboot product without any prompt ?

Beitrag von n.wenselowski »

Hi,

if you can boot from PXE you should never be asked for a password.
If you do something is wrong.

I'd try setting the pcPatchPassword again.

If this does not help:
Please check the bootimage.log if you see anything about authentication failure.


With kind regards

Niko

Code: Alles auswählen

import OPSI
bourhis
Beiträge: 126
Registriert: 07 Nov 2012, 15:57

Re: How to install a netboot product without any prompt ?

Beitrag von bourhis »

Hi,

I see these lines in the log :

Code: Alles auswählen

[5] [nov. 02 15:03:27] pckey not found in kernel cmdline, trying to get boot configuration by tftp (master.py|883)
[6] [nov. 02 15:03:27] Connecting to tftpserver 'https://opsitest.iutb.univ-brest.fr:4447/rpc:69' (master.py|885)
[6] [nov. 02 15:03:27] Trying to download pxelinux configuration file 'linux/pxelinux.cfg/01-52-54-00-e8-5b-37' (master.py|889)
[3] [nov. 02 15:03:27] Failed to get boot configuration from tftp server: [Errno -2] Name or service not known (master.py|951)
Is there a way to automatically create the "pipe" (linux/pxelinux.cfg/01-52-54-00-e8-5b-37 in this case) ?

Regards.
Benutzeravatar
m.radtke
Ex-uib-Team
Beiträge: 1767
Registriert: 10 Jun 2015, 12:19

Re: How to install a netboot product without any prompt ?

Beitrag von m.radtke »

Please set a netboot product on update via the configed. Afterwards you cat cat the constructed pipe and crosscheck with your made file.
Then boot the client with your options and then check if /proc/cmdline, within the booted bootimage, has the same content as your desired configuration


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


bourhis
Beiträge: 126
Registriert: 07 Nov 2012, 15:57

Re: How to install a netboot product without any prompt ?

Beitrag von bourhis »

Hi,

the /proc/cmdline contain my options.

If I modify the "/tftpboot/linux/pxelinux.cfg/default" with this lines (I add the 'pckey' option) :

Code: Alles auswählen

label test-iutgesta119
  kernel install
  append initrd=miniroot.bz2 video=vesa:ywrap,mtrr vga=791 lang=fr console=tty1 console=ttyS0 dn=iutb.univ-brest.fr product=win7-x64 pckey=84cf285384116484f3944fda0648deeb service=https://opsitest.iutb.univ-brest.fr:4447/rpc
the system don't ask for a login or a password... but it work only for one client !
Is there a method to do the same for all the client ?

Regards.
Benutzeravatar
m.radtke
Ex-uib-Team
Beiträge: 1767
Registriert: 10 Jun 2015, 12:19

Re: How to install a netboot product without any prompt ?

Beitrag von m.radtke »

Hi,

why arent you installing your clients via the configed?
This sets every property you have to and installs the client fine (additionally AskBeforeInst = False) and you're fine.

maybe you have some problems with your rithts within the network or server.


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


bourhis
Beiträge: 126
Registriert: 07 Nov 2012, 15:57

Re: How to install a netboot product without any prompt ?

Beitrag von bourhis »

Hi,

> why arent you installing your clients via the configed?
> This sets every property you have to and installs the client fine (additionally AskBeforeInst = False) and you're fine.

The property "AskBeforeInst" is set to false and all thing are configured via the configed, but before the install process begin I have to boot the PC in pxe : so if I don't give the pckey the system ask me for a login and password...

Regards.
Antworten