Seite 1 von 1

Host key not available

Verfasst: 28 Jun 2024, 13:29
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]

Re: Host key not available

Verfasst: 28 Jun 2024, 14:04
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

Re: Host key not available

Verfasst: 28 Jun 2024, 14:35
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?

Re: Host key not available

Verfasst: 28 Jun 2024, 14:38
von m.radtke
You have to set a netboot product for the client to setup, it will then run automatically.

Re: Host key not available

Verfasst: 28 Jun 2024, 14:42
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 

Re: Host key not available

Verfasst: 01 Jul 2024, 11:20
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