Mailinglist Archive: opensuse-autoinstall (59 mails)

< Previous Next >
[opensuse-autoinstall] AutoYast SLES9 SP3 problem with hostname via DHCP
  • From: <chrroe@xxxxxx>
  • Date: Fri, 11 Jan 2008 12:32:10 +0100
  • Message-id: <34762.1200051130@xxxxxx>
Hello,

I am facing a problem that I cannot solve myself and hope for your expert help.

Description:
When installing a machine with SLES9 with AutoYast the via DHCP forwarded
hostname is not fully
recognized.

Environment:

1. DHCP-Server under SLES9 SP3
2. DNS via Active Directory under Windows 2003 Server
3. PXE and Installationsserver for Autoyast under SLES9 SP3
4. various Destination Machines
(3. und 4. under VMware ESX 3)

Procedure:

In my environment every Machine is assigned a fixed IP-Adress and the
corresponding host name via DHCP
(this is the assignment for the time being and should not be changed). The
installation of new Linux
machines via AutoYast works basically fine so far. The installations are
triggert with PXE-Boot over the
Network. For the basic installation I have created various XML Files for
AutoYast.

eth_default_dhcp.xml:
--------------------------------------------------------------------------------
<?xml version="1.0"?>
<!DOCTYPE profile SYSTEM "/usr/share/autoinstall/dtd/profile.dtd">
<profile xmlns="http://www.suse.com/1.0/yast2ns";
xmlns:config="http://www.suse.com/1.0/configns";>
<configure>
<networking>
<dns>
<dhcp_hostname config:type="boolean">true</dhcp_hostname>
<dhcp_resolv config:type="boolean">true</dhcp_resolv>
<domain>domain.test</domain>
<nameservers config:type="list">
<nameserver>192.169.40.25</nameserver>
</nameservers>
<searchlist config:type="list">
<search>domain.test</search>
</searchlist>
</dns>
<interfaces config:type="list">
<interface>
<bootproto>dhcp</bootproto>
<device>eth0</device>
<startmode>onboot</startmode>
</interface>
</interfaces>
<routing>
<ip_forward config:type="boolean">false</ip_forward>
<routes config:type="list">
<route>
<destination>default</destination>
<device>eth0</device>
<gateway>192.168.40.1</gateway>
<netmask>255.255.255.0</netmask>
</route>
<route>
<destination>192.168.40.0</destination>
<device>eth0</device>
<gateway>default</gateway>
<netmask>255.255.255.0</netmask>
</route>
<route>
<destination>192.168.41.0</destination>
<device>eth0</device>
<gateway>default</gateway>
<netmask>255.255.255.0</netmask>
</route>
</routes>
</routing>
</networking>
</configure>
</profile>

--------------------------------------------------------------------------------

The problem is, that in the first part of the AutoYast installation (when the
RPMs are installed) the new
machine knows its IP adress but not the Computer Name.
Only after the reboot when the second part of the installtion starts, the
hostname is set correctly.

I have identified 3 RPMs so far which need the hostname in the first part of
the installation (aaa_base,
postfix and a custom made one).

For testing, I addded the hostname to

<hostname>testhost</hostname>

and set

<dhcp_hostname config:type="boolean">true</dhcp_hostname>

to false, and then the hostname was "ok" also in the first step of the
installation, and all RPMs are
installed as expected.

Is this a bug in AutoYast ? Does anybody have a hint on how I should try to
publish the hostname by
DHCP "in time" ?

Thanks in advance,
Christoph

---- Hol Dir jetzt Deine coole @uni.de E-Mail Adresse. Der einzigartige
Webservice und auch noch kostenlos. -- www.uni.de --

--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx

< Previous Next >