Bug 1213415

Summary: offline install on physical machine fails using AutoYaST
Product: [openSUSE] PUBLIC SUSE Linux Enterprise Server 15 SP5 Reporter: Karl Vanden Bogaert <karl.vandenbogaert>
Component: AutoYaSTAssignee: E-mail List <yast2-maintainers>
Status: RESOLVED NORESPONSE QA Contact: AutoYaST Maintainers <autoyast-maintainers>
Severity: Normal    
Priority: P5 - None CC: igonzalezsosa, karl.vandenbogaert
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: control file for offline automated install

Description Karl Vanden Bogaert 2023-07-18 07:17:50 UTC
When you want to install SLE offline in fully automated mode, you need to add the repositories from the multi-product installation DVD, section add-on/add_on_products/media_url. Only urls starting with cd:/// and dvd:/// work (usb:///, file:/// and device:/// do not work) and only in VMware ! On a physical server, it cannot find the paths (error message). It is therefore impossible to install offline using AutoYaST on a physical machine...
Comment 1 Stefan Hundhammer 2023-07-18 07:21:26 UTC
Imo, please have a look.
Comment 2 Imobach Gonzalez Sosa 2023-07-18 08:02:29 UTC
Hi Karl,

Please, could you share your profile with us?

Thanks!

Regards,
Imo
Comment 3 Karl Vanden Bogaert 2023-07-18 08:22:46 UTC
Created attachment 868274 [details]
control file for offline automated install

I've attached the control file. It works fine in VMware but not in a physical machine. As you can see, all repos available on the DVD are enabled. The iso is writed on a usb key as it is impossible to burn a 15G iso on a DVD... Booting works fine, installer starts but when it's time to add the repos (add-ons) I got an error. I tried to replace dvd:/// by cd:///, usb:///, file:/// and even device:/// but nothing work... only cd:/// and dvd:/// only in VMware.
Comment 4 Imobach Gonzalez Sosa 2023-07-18 11:59:36 UTC
Hi Karl,

The media_url is intended to have the URL of the installation media. To specify the directory, you can use a product_dir element. Something like this should do the trick:

      <listentry>
        <media_url>dvd:///</media_url>
        <product_dir>/Module-Basesystem</product_dir>
      </listentry>

A more portable way could be to use `relurl:///` which refers to the root of the installation media.

Could you give it a try, please? If it still does not work it would be great to have the YaST2 logs. See https://en.opensuse.org/openSUSE:Report_a_YaST_bug#Attachments_-_y2logs,_hwinfo_etc.

Thanks!

Regards,
Imo
Comment 5 Karl Vanden Bogaert 2023-07-18 12:04:31 UTC
Ok. I can already say that the <product_dir> element neither work as it also was in my countless attempts :-) I will try the 'relurl:///' as you propose and get back to you... fingers crossed !
Comment 6 Karl Vanden Bogaert 2023-07-18 17:36:01 UTC
Ok, I tried your proposal in VMware (cd:/// -> relurl:///) and it doesn't work... :-(
atm, only cd:/// and dvd:/// work but only in VMware. Nothing work on bare-metal :-(
Comment 7 Imobach Gonzalez Sosa 2023-07-19 05:55:23 UTC
That's weird. Could you, please, upload the logs to the bug report?
Comment 8 Stefan Hundhammer 2023-07-19 08:31:12 UTC
Just a thought: In VMWare, you need to explicitly forward USB devices from the VM host to your VM. Are you sure they are accessible from within the VM? You can check by just starting a working (Linux) VM and a USB stick with any content.
Comment 9 Karl Vanden Bogaert 2023-07-19 11:38:11 UTC
This problem only concerns bare-metal servers. In VMware, it works fine ! :)
Comment 10 Stefan Hundhammer 2023-07-19 12:49:16 UTC
Duh; so I misunderstood you.
Comment 11 Imobach Gonzalez Sosa 2023-08-02 08:26:08 UTC
Hi Karl,

In bare metal you could so something like this:

  <add-on>
    <add_on_products config:type="list">
      <listentry>
        <media_url><![CDATA[hd:/?device=/dev/sda2]]></media_url>
        <product_dir>/Module-Basesystem</product_dir>
        <product>sle-module-basesystem</product>
      </listentry>
      <listentry>
        <media_url><![CDATA[hd:/?device=/dev/sda2]]></media_url>
        <product_dir>/Module-Server-Applications</product_dir>
        <product>sle-module-server-applications</product>
      </listentry>
    </add_on_products>
  </add-on>


I use a USB device, and /dev/sda2 is the partition where the repositories are located. If it still does not work for you, please attach the YaST2 logs. See https://en.opensuse.org/openSUSE:Report_a_YaST_bug#Attachments_-_y2logs,_hwinfo_etc.

Regards,
Imo
Comment 12 Stefan Hundhammer 2023-08-07 13:26:25 UTC
Karl, did you find time to try what Imo suggested in comment #11?
Comment 13 Stefan Hundhammer 2023-08-17 09:46:48 UTC
Still waiting for feedback. See comment #11.
Comment 14 Stefan Hundhammer 2023-09-05 08:46:05 UTC
No feedback for 4 weeks. Closing.