Bug 1221356 - UEFI Installation Parameter ifcfg/netsetup with static ip ignored for network interface
Summary: UEFI Installation Parameter ifcfg/netsetup with static ip ignored for network...
Status: RESOLVED WORKSFORME
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Installation (show other bugs)
Version: Leap 15.5
Hardware: x86-64 Other
: P5 - None : Normal (vote)
Target Milestone: Leap 15.5
Assignee: E-mail List
QA Contact: Jiri Srain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-13 14:47 UTC by Chris R.
Modified: 2024-04-02 15:07 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris R. 2024-03-13 14:47:10 UTC
I try to install openSUSE with Autoyast on an machine using UEFI as a Firmware.

When I define the variables defined like here, it seems to be not working properly: https://doc.opensuse.org/documentation/leap/startup/html/book-startup/cha-boot-parameters.html

I tried to define as following:

1. 
ifcfg=eth0=192.168.200.100/24,192.168.200.1
autoyast=http://192.168.200.50/autoyast.xml

2. 
netsetup=hostip
hostip=192.168.200.100/24
autoyast=http://192.168.200.50/autoyast.xml

Both trials are not working the network interface seems to be not configured and also not reading the autoyast file.

I saw on the documentation also the hint to use ifcfg because that seems to be rather forcing linuxrc to connect the network adapter. I'm right with that or is there another way to go.

Thank you.

Cheers,

Chris
Comment 1 Stefan Hundhammer 2024-03-29 16:32:22 UTC
What medium are you booting from?

What is the complete boot command line? 

Do you have a HTTP server running at that address that you instruct it to fetch that autoyast.xml from?

Did you ask in the forums first before you filed this bug report? There are a lot of knowledgeable people there.


See also

https://doc.opensuse.org/documentation/leap/autoyast/html/book-autoyast/Invoking.html#
Comment 2 Chris R. 2024-03-29 18:08:23 UTC
Thank you for coming to that case.

The boot media is the openSuSE DVD ISO file: openSUSE-Leap-15.5-DVD-x86_64-Build491.1-Media.iso.

The full boot command was the following
 
setparams 'Installation'
ifcfg=eth0=192.168.200.100/24,192.168.200.1
autoyast=http://192.168.200.50/autoyast.xml
set gfxpayload=keep
echo 'Loading kernel ...'
linux /boot/x86_64/loader/linux splash=silent
echo 'Loading initial ramdisk ...'
initrd /boot/x86_64/loader/initrd
 
 
I also checked out the forums, I also used the following instructions: https://doc.opensuse.org/projects/autoyast/#ay-adv-network.
 
Yes, I have a HTTP Server running especially in the same network subnet, to be sure that there are no firewall's in between, of course I tested from another client computer to be sure it's working.
 

 
Thank you.
 
Cheers,
 
Chris
Comment 3 Stefan Hundhammer 2024-04-02 14:30:34 UTC
AFAICS for a static (non-DHCP) IP setup you need 'ifcfg' in this form:

  ifcfg=$IF_NAME=hostip,gateway,nameserver,domain

See also

  https://en.opensuse.org/SDB:Linuxrc#Using_ifcfg

You specified only two IPs, i.e. only the host-ip and the gateway, but no nameserver and no domain. I am not sure if that is sufficient.


@snwint? ^^^^^^^^^^^^^^^^^^^^
Comment 4 Stefan Hundhammer 2024-04-02 14:33:59 UTC
See also

  https://doc.opensuse.org/projects/autoyast/#ay-adv-network
Comment 5 Steffen Winterfeldt 2024-04-02 14:50:33 UTC
These are boot options. If you edit grub.cfg, you have to append them
to the 'linux' line:

linux /boot/x86_64/loader/linux splash=silent ifcfg=eth0=... autoyast=http...

Your variant 1 is ok.
Comment 6 Stefan Hundhammer 2024-04-02 15:07:19 UTC
Duh; I overlooked the part that they were not added to the kernel parameters. Please try that; I am sure then it will be successful.