[opensuse-autoinstall] autoyast named by mac-adress
Hello, I'm trying to install our OES2 SP1 /SLES11 SP1 -Server via autoyast, booting with minicd. Everything works fine, but I have a problem with the naming of the autoinstallation-file. I saved the file on a server on an http and nfs-share. I wrote the path to the file in the autoyast=-parameter of the isolinux.cfg on the minicd (I tried it with http and nfs). It works if I - add the correct filename to the path - rename the autoinst.xml to "default" - rename the autoinst.xml to hexadecimal naming of the ip-adress. But it doesn't work if I rename the file like the MAC-address of the server as described in http://doc.opensuse.org/products/draft/SLES/SLES-deployment_sd_draft/cha.dep... When I look with wireshark, I can see that the installation doesn't search for a file named as the MAC-address, only IP-address or "default" is searched for. Is this a bug or do I have to pass any other parameters to the isolinux.cfg Thanks, Detlev -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Hi, On Wed, Sep 26, Detlev Rolf wrote:
Hello,
I'm trying to install our OES2 SP1 /SLES11 SP1 -Server via autoyast, booting with minicd.
Everything works fine, but I have a problem with the naming of the autoinstallation-file. I saved the file on a server on an http and nfs-share. I wrote the path to the file in the autoyast=-parameter of the isolinux.cfg on the minicd (I tried it with http and nfs).
It works if I - add the correct filename to the path - rename the autoinst.xml to "default" - rename the autoinst.xml to hexadecimal naming of the ip-adress.
But it doesn't work if I rename the file like the MAC-address of the server as described in http://doc.opensuse.org/products/draft/SLES/SLES-deployment_sd_draft/cha.dep...
When I look with wireshark, I can see that the installation doesn't search for a file named as the MAC-address, only IP-address or "default" is searched for.
Is this a bug or do I have to pass any other parameters to the isolinux.cfg
Unfortunately this feature seems currently not to work any more. I had a quick look at the autoyast code, this was not changed recently. Autoyast relies on an entry in /etc/install.inf (written by linuxrc) with key "HWAddr" to determine MAC address. Unfortunately this key seems not to exist any more (I checked SLES11 SP1, SP2 and openSuSE 12.2). I informed maintainer of linuxrc code, he will check and fix. Maybe there is a workaround to make linuxrc write this key, if yes I will tell here. Bye, Thomas Fehr -- Thomas Fehr, SuSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Tel: +49-911-74053-0, Fax: +49-911-74053-482, Email: fehr@suse.de GPG public key available. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Hi Thomas, thanks for you answer. It would be great if this feature will be reestablished again and if there is a workaround to use this feature with SLES11.2. Thanks in advance, Detlev
Thomas Fehr
schrieb am 26.09.2012 um 14:30: Hi, On Wed, Sep 26, Detlev Rolf wrote:
Hello,
I'm trying to install our OES2 SP1 /SLES11 SP1 -Server via autoyast, booting with minicd.
Everything works fine, but I have a problem with the naming of the autoinstallation-file. I saved the file on a server on an http and nfs-share. I wrote the path to the file in the autoyast=-parameter of the isolinux.cfg on the minicd (I tried it with http and nfs).
It works if I - add the correct filename to the path - rename the autoinst.xml to "default" - rename the autoinst.xml to hexadecimal naming of the ip-adress.
But it doesn't work if I rename the file like the MAC-address of the server as described in http://doc.opensuse.org/products/draft/SLES/SLES-deployment_sd_draft/cha.dep loyment.autoinst.html
When I look with wireshark, I can see that the installation doesn't search for a file named as the MAC-address, only IP-address or "default" is searched for.
Is this a bug or do I have to pass any other parameters to the isolinux.cfg
Unfortunately this feature seems currently not to work any more. I had a quick look at the autoyast code, this was not changed recently.
Autoyast relies on an entry in /etc/install.inf (written by linuxrc) with key "HWAddr" to determine MAC address. Unfortunately this key seems not to exist any more (I checked SLES11 SP1, SP2 and openSuSE 12.2). I informed maintainer of linuxrc code, he will check and fix. Maybe there is a workaround to make linuxrc write this key, if yes I will tell here.
Bye, Thomas Fehr
-- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Hi Rolf, On Wed, Sep 26, Detlev Rolf wrote:
Hi Thomas,
thanks for you answer.
It would be great if this feature will be reestablished again and if there is a workaround to use this feature with SLES11.2.
Thanks in advance,
I have updated information from our linuxrc developer. The value for the MAC-address is only written to install.inf (where autoyast code fetches it from) when a network based install is detected by linuxrc, that means if linuxrc sees something like "install=nfs:..." or "install=ftp:..." on kernel command line or if a network based install is selected in linuxrc menu. We will certainly fix that for SLES11 SP3 and openSUSE 12.3. So as a workaround it should probably be possible to use install= with a network install url on kernel command line. At least this caused a line starting with "HWAddr:" show up in my /etc/install.inf in installation environment in my test setup for SLES11 SP2. Tschuess, Thomas Fehr -- Thomas Fehr, SuSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Tel: +49-911-74053-0, Fax: +49-911-74053-482, Email: fehr@suse.de GPG public key available. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
I assume you use dhcp to give the client a IP.
If not i would be surprised to find the mac address in the install.inf file.
So on my SLES11 SP1 installations ( via pxe/dhcp & tftp for the kernel ) the key still exist in the install.inf.
The file is located in /var/lib/YaST2/install.inf after the installation and in /etc/install.inf during installation
BTW:
Also check that the initrd has the "tftp" program available. Its looks like tftp is not available on the standard initrd so i assume the protocol type tftp can not be used by autoyast.
In case nothing helps:
You could use a rule.xml to determine the mac address, fetch the xml from A HTTP server to a local directory and do a final "merge"
In case a tftp client is available you could use the logic for pure tftp .
Example ( Not working ):
$ cat rules.xml
<?xml version="1.0"?>
<!DOCTYPE autoinstall SYSTEM "/usr/share/autoinstall/dtd/rules.dtd">
<autoinstall xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
<rules config:type="list">
<rule>
<custom1>
<script>
## Get mac Address
eval mac=$( cat /etc/install.inf | grep -i ^hwaddr | cut -f2- -d":" | tr -d: )
# Get install Server/Autoyast parameter
eval ayast=$( cat etc/install.inf | grep -i | cut -f2- -d":" )
# Download via curl or wget
wget ${ayast}/$mac.xml > /tmp/$mac.xml
echo -n $mac
</script>
<match>*</match>
participants (3)
-
Detlev Rolf
-
Hans-Joachim Ehlers
-
Thomas Fehr