How to install a netboot product without any prompt ?
How to install a netboot product without any prompt ?
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.
- SisterOfMercy
- Beiträge: 1556
- Registriert: 22 Jun 2012, 19:18
Re: How to install a netboot product without any prompt ?
Re: How to install a netboot product without any prompt ?
my problem is on the previous step : when I have to type the admin-user login and password...
Thanks.
- SisterOfMercy
- Beiträge: 1556
- Registriert: 22 Jun 2012, 19:18
Re: How to install a netboot product without any prompt ?
- n.wenselowski
- Ex-uib-Team
- Beiträge: 3194
- Registriert: 04 Apr 2013, 12:15
Re: How to install a netboot product without any prompt ?
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
Re: How to install a netboot product without any prompt ?
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)
Regards.
Re: How to install a netboot product without any prompt ?
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
Re: How to install a netboot product without any prompt ?
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
Is there a method to do the same for all the client ?
Regards.
Re: How to install a netboot product without any prompt ?
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
Re: How to install a netboot product without any prompt ?
> 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.