Seite 1 von 2

Problem mit opsi-deploy-client-agent

Verfasst: 20 Apr 2011, 15:38
von Maximus
Hallo zusammen,

momentan versuche ich das opsi-deployment-client-agent Skript ans Laufen zu bringen.
Der ADMIN$, C$ Share ist aktiviert. Ebenfalls ist der Administrator auf meinem WinXP Client aktiviert und mit einem pw ausgestattet worden. Versuche ich jetzt das Skript zu starten, kommt folgendes Problem:

Code: Alles auswählen

root@opsidemo:/opt/pcbin/install/opsi-client-agent# ./opsi-deploy-client-agent -v -u Administrator winxp
Password: 
[warning] Failed to read opsi modules file '/etc/opsi/modules': Signature expired
[notice] Disabling mysql backend and license management module: no customer in modules file
[notice] Starting deployment to host 'winxp.x.x.x'
[notice] Querying for ip address of host 'winxp.x.x.x'
[warning] Failed to get ip address for host 'winxp.x.x.x' by syscall: [Errno -2] Name or service not known
[notice] Got ip address 'x.x.46.193' from netbios lookup
[notice] Pinging host x.x.46.193 ...
[notice] Host x.x.46.193 is up
[notice] Getting hardware ethernet address of host 'winxp.x.x.x'
[notice] Found hardware ethernet address '00:50:56:92:00:07'
[notice] Creating client 'winxp.x.x.x'
[notice] Creating host 'winxp', hardwareAddress '00:50:56:92:00:07', ipAddress 'x.x.46.193', fixedAddress 'x.x.46.193', parameters '{'next-server': u'x.x.47.130', 'filename': u'linux/pxelinux.0'}' in dhcpd config file '/etc/dhcp3/dhcpd.conf'
[notice] Mounting c$ share
[error] Deployment to 'winxp.x.x.x' failed: Failed to mount c$ share: Command '/bin/mount -t cifs -o'port=139,username=Administrator,password=*** confidential ***' //winxp/c$ /tmp/mnt_vuUUnLkKYk' failed (1):
mount error: could not resolve address for winxp: Name or service not known
No ip address specified and hostname not found
Perhaps you have to disable the firewall or simple file sharing on the windows machine (folder options)?
[warning] License management module disabled
[warning] License management module disabled
[notice] Deleting host 'winxp' from dhcpd config file '/etc/dhcp3/dhcpd.conf'

- Ich benutze die vorgefertigte VM auf unserem ESX Server.
- Der Server bestizt eine statische und der WinXP Client eine dynamische IP-Adresse.

Wäre super, wenn mir jemand helfen könnte ;)

Re: Problem mit opsi-deploy-client-agent

Verfasst: 20 Apr 2011, 18:31
von d.oertel
Hi,

Code: Alles auswählen

Failed to mount c$ share: Command '/bin/mount -t cifs -o'port=139,username=Administrator,password=*** confidential ***' //winxp/c$ /tmp/mnt_vuUUnLkKYk' failed (1):
mount error: could not resolve address for winxp: Name or service not known
bedeutet das der mount über den netbiosnamen fehlschlägt.

Ist der ESX in einem anderen Netz ?
Geht das hängige mounten des shares vom ESX aus ?

gruss
d.oertel

Re: Problem mit opsi-deploy-client-agent

Verfasst: 21 Apr 2011, 13:28
von Maximus
Der ESX ist im gleichen Netz. Ich habe es auch schon mit verschiedenen Clients ausprobiert, es kam aber jedes mal zum gleichen Problem.
Ich habe die vorgefertigte VM von euch runtergeladen und sie auf den ESX (bzw. den Storage dafür) gelegt, von daher sollte das mounten des Shares schon vom ESX ausgehen oder?

Gruß

Re: Problem mit opsi-deploy-client-agent

Verfasst: 21 Apr 2011, 14:34
von d.oertel
Hi,

gibt es auf dem ESX eine windows maschine mit der das händige mounten mit dem Explorer getestet werden kann ?

gruss
d.oertel

Re: Problem mit opsi-deploy-client-agent

Verfasst: 21 Apr 2011, 15:16
von Maximus
Ja, jetzt schon. das händige mounten der virtuellen Windows Maschine mit dem Windows Explorer hat einwandfrei funktioniert.

Wollte gerade testen ob das Netboot-Produkt "hwinvent" funktioniert. Dabei hatte der Client nach dem Start beim Verbinden des Pfades in dem das Produkt liegt ebenfalls Probleme. Es ist also ebenfalls fehlgeschlagen. Dann hat das wohl auch mit dem Problem zu tun, dass der NetBios Namen nicht aufgelöst werden kann. Der getestete Client war diesmal ein Desktop Win7 Computer.

Gruß

Re: Problem mit opsi-deploy-client-agent

Verfasst: 26 Apr 2011, 15:15
von Maximus
Das Problem besteht immer noch. Keiner eine Idee? :cry:

Re: Problem mit opsi-deploy-client-agent

Verfasst: 27 Apr 2011, 20:22
von d.oertel
Hi,

bitte mal mit den Aufruf mal die der Option:
-c (use fqdn instead of hostname for smb/cifs connection)
probieren.

gruss
d.oertel

Re: Problem mit opsi-deploy-client-agent

Verfasst: 28 Apr 2011, 13:33
von Maximus
hi,

war mir eigentlich sicher, dass ich die Variante schon ausprobiert hätte. Naja, jedenfalls funktioniert es jetzt so.
Hier nochmals die Syntax:

Code: Alles auswählen

root@opsidemo:/opt/pcbin/install/opsi-client-agent# ./opsi-deploy-client-agent -v -c -r  xxx.52.46.193
Password: 
[warning] Failed to read opsi modules file '/etc/opsi/modules': Signature expired
[notice] Disabling mysql backend and license management module: no customer in modules file
[notice] Starting deployment to host 'xxx.52.46.193'
[notice] Querying for ip address of host 'xxx.52.46.193'
[notice] Got ip address 'xxx.52.46.193' from syscall
[notice] Pinging host xxx.52.46.193 ...
[notice] Host xxx.52.46.193 is up
[notice] Getting hardware ethernet address of host 'xxx.52.46.193'
[notice] Found hardware ethernet address '00:50:56:92:00:07'
[notice] Creating client 'xxx.52.46.193'
[notice] Creating host 'xxx', hardwareAddress '00:50:56:92:00:07', ipAddress 'xxx.52.46.193', fixedAddress 'xxx.52.46.193', parameters '{'next-server': u'xxx.52.47.130', 'filename': u'linux/pxelinux.0'}' in dhcpd config file '/etc/dhcp3/dhcpd.conf'
[notice] Mounting c$ share
[notice] Copying installation files
[notice] Patching config.ini
[notice] Installing opsi-client-agent
[notice] Cleaning up
[notice] opsi-client-agent successfully installed on 'xxx.52.46.193'
[notice] Rebooting machine 'xxx.52.46.193'
[error] Failed to reboot computer: Failed to get program files path
Ein weiteres Problem besteht aber noch immer. Der OPSI-Agent bekommt nach dem Boot des Clients keine Verbindung zum Config-Server.
Hier das Bild.

Bild


Beim ersten Boot nach der Installation des OPSI-Agenten kam ganz kurz eine Meldung eingeblendet welche irgendwas mit "Backend-Error" oder ähnliches gemeldet hatte. Das Bild konnte ich leider nicht einfangen, werde es aber nachholen.

Gruß

P.S.: Danke für die hilfreichen Tipps.

Re: Problem mit opsi-deploy-client-agent

Verfasst: 29 Apr 2011, 15:50
von d.oertel
Hi,

c:\tmp\opsiclientd.log
c:\tmp\opsi-client-agent.log

wäre hilfreich.

gruss
d.oertel

Re: Problem mit opsi-deploy-client-agent

Verfasst: 02 Mai 2011, 15:14
von Maximus
Hallo,

anbei die gewünschten Dateien.

Gruß