DNS/DHCP setup for deploying new computers?
DNS/DHCP setup for deploying new computers?
However, when I have a brand new computer it doesn't have any DNS records yet.
I've configured my router to register DHCP clients in DNS, but the opsi PXE clients all identify themselves as 'opsi-client'. This may not work for deploying many new computers at once if they all have the same name.
Is there a better way I should be doing this?
Re: DNS/DHCP setup for deploying new computers?
easy way:
Cant you enter the client into the DNS before you deploy them?
Less easy way:
Use the client netboot CD to register the client to the opsi server.
Cheers
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
-
- Beiträge: 650
- Registriert: 21 Feb 2012, 12:03
- Wohnort: Mainz
Re: DNS/DHCP setup for deploying new computers?
This isn't just a DNS issue.
If one boots from CD or ISO he will be presented with a mask for setting IP-address, gateway, whatever. And the client name.
But if you boot the current bootcd image from within the PXE menu this mask is missing. Leaving you unable to change the client name.
And the client you just started gets registered as 'opsi client' in both DNS and OPSI.
Would consider it a bug. Or a major annoyance, if you like.
- n.wenselowski
- Ex-uib-Team
- Beiträge: 3194
- Registriert: 04 Apr 2013, 12:15
Re: DNS/DHCP setup for deploying new computers?
Do you boot with DHCP from the CD?uncle_scrooge hat geschrieben:@Mathias
If one boots from CD or ISO he will be presented with a mask for setting IP-address, gateway, whatever. And the client name.
But if you boot the current bootcd image from within the PXE menu this mask is missing. Leaving you unable to change the client name.
And the client you just started gets registered as 'opsi client' in both DNS and OPSI.
Would consider it a bug. Or a major annoyance, if you like.
If I remember correctly the mask is only shown if some information is missing.
Kind regards
Niko
Code: Alles auswählen
import OPSI
-
- Beiträge: 650
- Registriert: 21 Feb 2012, 12:03
- Wohnort: Mainz
Re: DNS/DHCP setup for deploying new computers?
So the input mask is always displayed.
Booting the bootcd image from within the PXE menu is a different beast.
As you can see in the append line
append initrd=miniroot-x64.bz2 video=vesa:ywrap,mtrr vga=791 quiet splash --no-log console=tty1 console=ttyS0 service=https://192.100.100.223:4447/rpc
the config server is given as a parameter. If a DHCP server provides all further needed information, the initial input mask is not displayed.
Omitting 'service=https://192.100.100.223:4447/rpc' gets you to the same behaviour as booting from CD/ISO.
There should be another input mask where I would be able to change the default client name 'opsi-client'.
Re: DNS/DHCP setup for deploying new computers?
Code: Alles auswählen
append initrd=miniroot-x64.bz2 video=vesa:ywrap,mtrr vga=791 lang=en quiet splash --no-log console=tty1 console=ttyS0
Re: DNS/DHCP setup for deploying new computers?
Code: Alles auswählen
append initrd=miniroot.bz2 video=vesa:ywrap,mtrr vga=791 quiet splash --no-log console=tty1 console=ttyS0 service=https://10.100.1.30:4447/rpc
cant tell why
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: DNS/DHCP setup for deploying new computers?
Code: Alles auswählen
Backend I/O error: Cannot update the dhcpd configuration for client test-opsi.xxxxx.com: ip address unknown and failed to get host by name
Note that I'm running the DHCP for this network on my router, and the DNS is running on my Windows server. I'm not running either dhcpd or DNS on the opsi server itself.
When I turn the machines on they don't have IP addresses assigned to them yet, so I'm not able to set DNS A records ahead of time.
-
- Beiträge: 650
- Registriert: 21 Feb 2012, 12:03
- Wohnort: Mainz
Re: DNS/DHCP setup for deploying new computers?
Please provide content of /etc/opsi/backendManager/dispatch.conf
Re: DNS/DHCP setup for deploying new computers?
Code: Alles auswählen
# -*- coding: utf-8 -*-
# = = = = = = = = = = = = = = = = = = = = = = =
# = backend dispatch configuration =
# = = = = = = = = = = = = = = = = = = = = = = =
#
# This file configures which methods are dispatched to which backends.
# Entries has to follow the form:
# <regular expression to match method name(s)> : <comma separated list of backend name(s)>
#
# Backend names have to match a backend configuraton file basename <backend name>.conf beneath /etc/opsi/backends.
# For every method executed on backend dispatcher the first matching regular expression will be decisive.
#
# Typical configurations:
# file, opsipxeconfd and dhcpd backend:
# backend_.* : file, opsipxeconfd, dhcpd
# host_.* : file, opsipxeconfd, dhcpd
# productOnClient_.* : file, opsipxeconfd
# configState_.* : file, opsipxeconfd
# .* : file
#
# jsonrpc, opsipxeconfd and dhcpd backend:
# backend_.* : jsonrpc, opsipxeconfd, dhcpd
# .* : jsonrpc
#
# file as main backend, mysql as hw/sw invent and license management backend, opsipxeconfd and dhcpd backend:
# backend_.* : file, mysql, opsipxeconfd, dhcpd
# host_.* : file, opsipxeconfd, dhcpd
# productOnClient_.* : file, opsipxeconfd
# configState_.* : file, opsipxeconfd
# license.* : mysql
# softwareLicense.* : mysql
# audit.* : mysql
# .* : file
#
backend_.* :file, opsipxeconfd, dhcpd, mysql
host_.* :file, opsipxeconfd, dhcpd
productOnClient_.* :file, opsipxeconfd
configState_.* :file, opsipxeconfd
license.*:mysql
softwareLicense.*:mysql
audit.*:mysql
.*:file