Host key not available

Antworten
idlincar
Beiträge: 8
Registriert: 28 Jun 2024, 13:15

Host key not available

Beitrag von idlincar »

Hello form members.
I can’t figure out the problem, I ask for help.
I want to say that I read many posts on the forum but did not find a solution.
I wanted the PC to install the OS without human intervention.
I encountered a problem that when loading miniroot-x64, the window tells me

Code: Alles auswählen

 Host key not available
and requires entering a login and password, or a one-time password. (Nothing in the logs)
I found a topic where it is recommended to reset pcpatch, but there is also an opsi error

Code: Alles auswählen

[3] [2024-06-28 13:26:40.722] [ ] Failed to execute task setPcpatchPassword: (opsiadmin.py:832)

Traceback (most recent call last):
 File "opsiutils/opsiadmin.py", line 829, in execute
 File "opsiutils/opsiadmin.py", line 1687, in execute
 File "opsiutils/opsiadmin.py", line 858, in getPassword
AssertionError
I googled this error but did not find a solution.
Perhaps someone knows what's going on?

Code: Alles auswählen

opsi-admin --version
4.3.3.13 [python-opsi=4.3.5.0]
Benutzeravatar
m.radtke
Ex-uib-Team
Beiträge: 1767
Registriert: 10 Jun 2015, 12:19

Re: Host key not available

Beitrag von m.radtke »

Hi

how did you start the client?
Via USB or PXE?
Did the client exist in the backend before you started the opsi-linux-bootimage?

Regards
Mathias


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


idlincar
Beiträge: 8
Registriert: 28 Jun 2024, 13:15

Re: Host key not available

Beitrag von idlincar »

hi Mathias
pxe loading.
it exists in the client,
and existed.
If I enter the login and pass admin, then I can select the OS to install. Is it possible to automate the installation just by running PXE?
Benutzeravatar
m.radtke
Ex-uib-Team
Beiträge: 1767
Registriert: 10 Jun 2015, 12:19

Re: Host key not available

Beitrag von m.radtke »

You have to set a netboot product for the client to setup, it will then run automatically.


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


idlincar
Beiträge: 8
Registriert: 28 Jun 2024, 13:15

Re: Host key not available

Beitrag von idlincar »

I did it. But unfortunately a window pops up to enter your login and password. Nothing happens.

edit.
I set the value in Setup. The status shows that PXE is loading. However, when loading, the

Code: Alles auswählen

configuration incomplete
window pops up.
In this window it tightens everything except the host name. I need to enter the hostname and then the login and pass for the installation to start.

edit
OPSI creates an entry /tftpboot/opsi/opsi-linux-bootimage/cfg
But the PC still does not boot automatically. The logs are also empty...

Code: Alles auswählen

set timeout=0
menuentry 'Start netboot installation' {
set gfxpayload=keep
linux (pxe)/opsi/opsi-linux-bootimage/install-x64 initrd=miniroot-x64 video=vesa:ywrap,mtrr vga=791 quiet --no-log console=ttyS0 pckey=KEY hn=testpxe dn=domain.com product=win11-x64 macaddress=XX:c5:c8 service=https://opsi01.domain.com:4447/rpc
initrd (pxe)/opsi/opsi-linux-bootimage/miniroot-x64
}

edit
it also has a conf in linux/pxelinux.cfg/../cfg/
and it is generated by opsi in /opsi/opsi-linux-bootimage/cfg/
How to fix it? I'll try to find a conf with paths

Code: Alles auswählen

 RRQ from 10.5.5.110 filename linux/pxelinux.cfg/../cfg/01-38-22-e2-12-b8-a9
 sending NAK (1, File not found) to 10.5.5.110 
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1410
Registriert: 01 Jul 2008, 12:10

Re: Host key not available

Beitrag von wolfbardo »

Seems you upgrade opsi 4.2 to opsi 4.3 and missed

https://docs.opsi.org/opsi-docs-en/4.3/ ... notes.html

opsi Linux Boot Image and DHCP Server

In the opsi Linux boot image for version 4.3, the bootloaders are now located in the path <TFTP-ROOT>/opsi/opsi-linux-bootimage/loader. If you are using Netboot/PXE, you may need to manually adjust the DHCP server configuration, specifically option 67 (BootFile Name), to reflect these changes.

Legacy BIOS: opsi/opsi-linux-bootimage/loader/opsi-netboot.bios

UEFI-BIOS: opsi/opsi-linux-bootimage/loader/shimx64.efi.signed



regards,
bardo wolf


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


Antworten