[opensuse-autoinstall] Problem going from DHCP to static address during autoinstall
Hi.
I'm using autoyast to install SLES9 on a machine.
The install itself works. But I have a problem with the network configuration.
During the install the machine obtains a dhcp address and performs the install.
When the install is applying the static ipadress defined in the autoyast xml configuration file the dhcp address isn't released and I get something looking like this:
2: eth0:
You need to add a option in your parameter like this
label sles10-x86_64
kernel installer/x86_64/sles10/linux
append initrd=installer/x86_64/sles10/initrd autoyast=http://192.168.1.1/config/common/sles10-x86_64.xml install=nfs://192.168.1.2/install/x86_64/sles10
Shaohui
Best Regards
-----Original Message-----
From: Jacob Emcken [mailto:je@casalogic.dk]
Sent: 2007年4月26日 15:57
To: opensuse-autoinstall@opensuse.org
Subject: [opensuse-autoinstall] Problem going from DHCP to static address during autoinstall
Hi.
I'm using autoyast to install SLES9 on a machine.
The install itself works. But I have a problem with the network configuration.
During the install the machine obtains a dhcp address and performs the install.
When the install is applying the static ipadress defined in the autoyast xml configuration file the dhcp address isn't released and I get something looking like this:
2: eth0:
Hi.
I think you misunderstood what my problem is. I'll try to describe my problem better.
----- "Shaohui Zheng"
Y ou need to add a option in your parameter like this
... snip ... install=nfs://192.168.1.2/install/x86_64/sles10
I'm not trying to install from nfs.
I'm installing from http and the install goes just fine.
Within the autoyast xml configuration I have defined several NFS mount points, which the machine should use once installed.
Like this:
<nfs config:type="list">
On Thursday 26 April 2007 09:57, Jacob Emcken wrote:
How is this resolveable? Is this a known bug?
it's not a known bug to me but I have not tried to reproduce it until now. I would like to know, does it help to put a "rcnetwork restart" into the post-script section with "network needed"="true"? -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Hi.
----- "Uwe Gansert"
On Thursday 26 April 2007 09:57, Jacob Emcken wrote:
How is this resolveable? Is this a known bug?
I would like to know, does it help to put a "rcnetwork restart" into the post-script section with "network needed"="true"?
Thanks for the quick reply.
I just want to point out that I'm using version 9 of Suse Linux Enterprise server.
I don't know if the "network needed=true" is SLES 10 specific?
I need to install SLES9 but if it would help anything I could use SLES10 as an install server.
Anyway I created the post script xml snippet on a sles 10 and copy pasted that to my SLES 9 xml profile:
...
<scripts>
<post-scripts config:type="list">
<script>
<debug config:type="boolean">true</debug>
<filename>reload_network</filename>
<interpreter>shell</interpreter>
<location></location>
On Thu, Apr 26, 2007 at 01:56:11PM +0200, Jacob Emcken wrote:
I just want to point out that I'm using version 9 of Suse Linux Enterprise server.
Are you using any of the SPs or just SLES9 stock?
I'm doing something similar in that we dhcp boot, but in the
pre-install, I read in config files and write out a
/tmp/profile/modified.xml file with new info in it for many things, like
network.
For net, I go from:
<networking>
<comment>NET_DEFAULTS</comment>
</networking>
to values like:
<networking>
Hi.
----- "Mike Marion"
On Thu, Apr 26, 2007 at 01:56:11PM +0200, Jacob Emcken wrote:
I just want to point out that I'm using version 9 of Suse Linux Enterprise server.
Are you using any of the SPs or just SLES9 stock?
I'm using SLES9 service pack 3. And remember it's not like I dont get the static ipaddress. The DHCP address just stay (as primary ipaddress) until I reboot again manually after the install. But Uwe's suggestion helped on that. -- Cheers Jacob Emcken -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Fri, Apr 27, 2007 at 10:56:02AM +0200, Jacob Emcken wrote:
And remember it's not like I dont get the static ipaddress. The DHCP address just stay (as primary ipaddress) until I reboot again manually after the install. But Uwe's suggestion helped on that.
Ooh.. I missed that it went away after another manual reboot. It's possible I am seeing the same thing, but one of the first things my post-install stuff does is reboot before doing really heavy work. Well, it does do some NFS mounts and work, but not too much, though the mounts it hits are open for read-only access to everyone specifically for installs. -- Mike Marion-Unix SysAdmin/Staff IT Engineer-http://www.qualcomm.com [Lisa and Bart used Gandpa's name on a cartoon script they wrote] Bart - "Didn't you wonder why you were getting checks for doing absolutely nothing?" Grandpa - "I figured 'cause the Democrats are in power again." -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (4)
-
Jacob Emcken
-
Mike Marion
-
Uwe Gansert
-
Zheng, Shaohui