[opensuse-autoinstall] Installation: Can't configure net with "linuxrc"
Hello, for using autoyast per http i want to configure network with linuxrc [1] and its kernel boot parameters (hostip, netmask, ...), resp. with the appropriate installation dialogue [2]. Unfortunately both don't work for me: The machine doesn't react to ping nor is "ifconfig -a" showing an active network interface or ip address. But i can set it manually with "ifconfig eth0 inet ..." at the same phase of installation, so missing network drivers shouldn't be the problem. The problem appears both on opensuse release 12.1 and 12.2/Milestone-3, both in a virtual and a physical machine. Any hints? PS: I know that linuxrc hasn't directly to do with autoyast, but perhaps it's often used there(?). I already asked at the german opensuse-de@ mailing list, but found no solution there. Dominik. [1] http://en.opensuse.org/SDB:Linuxrc [2] http://paste.opensuse.org/6379e182 http://paste.opensuse.org/af7f337d -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On Wed, May 30, 2012 at 9:31 PM, Dominik Baumann <dominik.baumann@geekmail.de> wrote:
Hello,
for using autoyast per http i want to configure network with linuxrc [...], resp. with [...] dialogue [...].
Unfortunately both don't work for me: The machine doesn't react to ping nor is "ifconfig -a" showing an active network interface or ip address.
From what I understand your are using a vanilla openSUSE image and
Moinmoin, can you explain your scenario in a bit more detail? then typing the linuxrc parameters into it (or typing them into the linuxrc UI, to the same effect). Are you typing in static parameters or pxe/dhcp options? How does the machine receive the autoyast profile? (Are you using install=... and autoyast=... as described in http://doc.opensuse.org/projects/autoyast/Invoking.html ?) Where or when exactly does the problem occur then? Does the installation grind to a halt or does it succeed? Using these linuxrc parameters causes yast (not autoyast) to _only_ use them during stage 1 of the installation (up to the first reboot; actually, these network settings are by default completely ignored by autoyast because the after-install network settings might differ from the settings during first boot). If you want to keep them afterwards (exactly as they were during install), use keep_install_network or tell autoyast to use (identical or different) static network settings (see http://doc.opensuse.org/projects/autoyast/configuration.html#CreateProfile.N...). In addition, 12.1's autoyast has a problem with systemd (or the other way around), as a workaround you need to "insserv autoyast" (see http://lists.opensuse.org/opensuse-autoinstall/2011-11/msg00012.html). That should be fixed in the milestone, though. -- Kind regards 686f6c6d / Christopher 'm4z' Holm -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Hello Christopher, first thanks for your mail. On 05/31/2012 12:00 AM, 686f6c6d wrote:
From what I understand your are using a vanilla openSUSE image
Yes, i'm using the downloadable DVDs (resp. their images) from these locations: http://software.opensuse.org/121/en http://software.opensuse.org/developer/en
and then typing the linuxrc parameters into it
Yes, at the first screen after the Welcome i type into the "Boot Options" text field the following parameters in one line: hostid=... netmask=255.255.255.0 gateway=... nameserver=... domainname=...
(or typing them into the linuxrc UI, to the same effect).
Yes, into that dialogue: http://paste.opensuse.org/af7f337d
Are you typing in static parameters or pxe/dhcp options?
Static.
How does the machine receive the autoyast profile?
That's the problem: It doesn't (at least per http). And i think it's because the machine (autoyast is running on) hasn't a working net configuration yet, no IP, ... (see my first mail).
(Are you using install=... and autoyast=... as described in http://doc.opensuse.org/projects/autoyast/Invoking.html ?)
On the above mentioned "Boot Options" text field i (additionally) insert the following parameter: autoyast=http://www.../.../autoinst.xml and test with "wget" that this URL/file is principally accessible. Then the following error occures: "An error occured while fetching the profile: Cannot find URL 'http://www..../.../autoinst.xml' via protocol HTTP(S). Server returned code 0." I didn't thought that i need the "install"-parameter, because the installation source is already set to DVD in the menu below in http://paste.opensuse.org/35898006 ("F4: Source DVD"). And when i add that parameter like this: install=cd:\ or install=dvd:\ i get the error message "Make sure that CD number 1 is in your drive.", but the DVD of course is already there.
Where or when exactly does the problem occur then? Does the installation grind to a halt or does it succeed?
See errors above, it doesn't succeed.
Using these linuxrc parameters causes yast (not autoyast) to _only_ use them during stage 1 of the installation (up to the first reboot; actually, these network settings are by default completely ignored by autoyast
Oh, then i'm totally on the wrong way. I want autoyast to have network so it can fetch its autoinst.xml per http. How can i achieve that?, unless using these linuxrc parameters ...
because the after-install network settings might differ from the settings during first boot). If you want to keep them afterwards (exactly as they were during install), use keep_install_network or tell autoyast to use (identical or different) static network settings (see http://doc.opensuse.org/projects/autoyast/configuration.html#CreateProfile.N...).
I'm confused. As i understand, you mean autoyast should set net config for the finally installed sytem. But what i want is a working net config *for* autoyast, so that it can access network and fetch its autoinst.xml.
In addition, 12.1's autoyast has a problem with systemd (or the other way around), as a workaround you need to "insserv autoyast" (see http://lists.opensuse.org/opensuse-autoinstall/2011-11/msg00012.html). That should be fixed in the milestone, though.
Again, if i understand it right: That also concerns the work autoyast should do, not the requirement for a working (means: net aware) autoyast. Dominik. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On Thu, May 31, 2012 at 9:39 PM, Dominik Baumann <dominik.baumann@geekmail.de> wrote:
Hello Christopher,
first thanks for your mail.
No problem at all. I've received much help on this list myself. (Below I'll be omitting those parts of your comments that look fine.)
On 05/31/2012 12:00 AM, 686f6c6d wrote:
hostid=...
I'm assuming that's a typo, that should be hostiP.
How does the machine receive the autoyast profile?
That's the problem: It doesn't (at least per http) [...] because the machine (autoyast is running on) hasn't a working net configuration yet, no IP, [...] autoyast=http://www.../.../autoinst.xml [...] Then the following error occures: "An error occured while fetching the profile: Cannot find URL 'http://www..../.../autoinst.xml' via protocol HTTP(S). Server returned code 0."
Ok, so far it looks like you're doing everything correct and the error indicates that the network just doesn't come up. Assuming you were using "hostip", the only idea I can come up with is something i vaguely remember (which might be wrong, I hope somebody will correct me): IIRC, specifying the correct network parameters isn't enough (in some circumstances? always?). For the network to be activated, you also need to use a networked install source like install=http://download.opensuse.org/distribution/12.1/repo/oss/ I think that's because linuxrc/yast tries to be smart about detecting if the network is needed. Please try that as a last resort. (I've been using this setup almost exclusively, so that works for me at least.)
I didn't thought that i need the "install"-parameter, because the installation source is already set to DVD in the menu below in
That should be ok then (if I'm wrong about install=http[...] above).
And when i add that parameter like this:
install=cd:\ or install=dvd:\
These are the wrong format. But I can't find the correct syntax in the docs (maybe "install=dvd:///" might work, IIRC the triple slashes make it recursively search the dvd).
Using these linuxrc parameters causes yast (not autoyast) to _only_ use them during stage 1 of the installation (up to the first reboot; actually, these network settings are by default completely ignored by autoyast
Oh, then i'm totally on the wrong way. I want autoyast to have network so it can fetch its autoinst.xml per http. How can i achieve that?, unless using these linuxrc parameters ...
My bad, my choice of words was unclear. (This and everything below shouldn't have anything to do with your problems, because you don't even reach stage2, where these settings become relevant. But you might run into them later. When I wrote that mail, I didn't know where your installation was failing.) What I meant to say was something like this: If you use (only) the linuxrc settings, autoyast will use them in stage1 (because it "just uses" the environment that it is run in), but stage2 and the final installed system won't have network systems unless you also have network settings in your autoyast profile.
because the after-install network settings might differ from the settings during first boot). If you want to keep them afterwards (exactly as they were during install), use keep_install_network or tell autoyast to use (identical or different) static network settings [...]
I'm confused. As i understand, you mean autoyast should set net config for the finally installed sytem. But what i want is a working net config *for* autoyast, so that it can access network and fetch its autoinst.xml.
Yes, I think you understood me there. (;
In addition, 12.1's autoyast has a problem with systemd (or the other way around), as a workaround you need to "insserv autoyast" (see http://lists.opensuse.org/opensuse-autoinstall/2011-11/msg00012.html). That should be fixed in the milestone, though.
Again, if i understand it right: That also concerns the work autoyast should do, not the requirement for a working (means: net aware) autoyast.
True, that's also only relevant in stage2. You need to solve your current problem first to enjoy this one. (; PS: It might be easier in the long run to create a custom ISO that differs from the vanilla one by just the parameters you're typing in manually -- just editing the IP saves a lot of typed characters. I think I've posted this to the list before but can't find it right now. -- Kind regards 686f6c6d / Christopher 'm4z' Holm -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On 05/31/2012 11:56 PM, 686f6c6d wrote:
hostid=...
I'm assuming that's a typo, that should be hostiP.
Yes, it was a typo, but "hostip" doesn't solve the problem.
install=cd:\ or install=dvd:\
These are the wrong format. But I can't find the correct syntax in the docs (maybe "install=dvd:///" might work, IIRC the triple slashes make it recursively search the dvd).
Sorry, of course the backslash is wrong (Windows influence ;-) According to http://en.opensuse.org/SDB:Linuxrc it has to be install=cd:/
PS: It might be easier in the long run to create a custom ISO that differs from the vanilla one by just the parameters you're typing in manually -- just editing the IP saves a lot of typed characters. I think I've posted this to the list before but can't find it right now.
Very thanks for that, it really make life easier! (Probably you mentioned it here: http://lists.opensuse.org/opensuse-autoinstall/2011-11/msg00027.html) Just for info for anyone who doesn't know too: I burned custom DVD following http://www.novell.com/support/kb/doc.php?id=7001823, but omitting the "-c" option, because the corresponding file "boot.cat" is not there. BTW: I didn't found any way to create the ISO with k3b. Thank you very much for your infos so far (solution is in my next mail). Dom -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On Fri, Jun 1, 2012 at 6:33 PM, Dominik Baumann <dominik.baumann@geekmail.de> wrote:
Very thanks for that, it really make life easier! (Probably you mentioned it here: http://lists.opensuse.org/opensuse-autoinstall/2011-11/msg00027.html)
Yes, that's what i meant.
Just for info for anyone who doesn't know too: I burned custom DVD following http://www.novell.com/support/kb/doc.php?id=7001823, but omitting the "-c" option, because the corresponding file "boot.cat" is not there. BTW: I didn't found any way to create the ISO with k3b.
Thank you very much for your infos so far (solution is in my next mail).
Great! -- Kind regards 686f6c6d / Christopher 'm4z' Holm -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On 31.05.2012 21:39, Dominik Baumann wrote:
Yes, at the first screen after the Welcome i type into the "Boot Options" text field the following parameters in one line:
hostid=...
hostip, not hostid. Christopher already pointed that out
netmask=255.255.255.0 gateway=... nameserver=... domainname=...
try to add: netsetup=1 if that does not help, add netsetup=1 linuxrc.log=/linuxrc.log linuxrc.debug=1 linuxrc.debug=1 maybe linuxrc.debug=1,wait then check the logfile /linuxrc.log when yast starts, the installation source was found, so everything is okay there with that. The only problem is that linuxrc did not raise the network for some reason. Maybe the netsetup=1 + logfile helps. -- ciao, Uwe Gansert SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Home: http://www.suse.de/~ug - Blog: http://suse.gansert.net listening to: "Die Macht der Stille" by Stillste Stund -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Hello Uwe, On 06/01/2012 09:43 AM, Uwe Gansert wrote:
hostip, not hostid. Christopher already pointed that out
Yes, it was a typo in my mail.
try to add: netsetup=1
That's it!! Thank you very much! BTW: Shouldn't that parameter be explained more expicitly in the documentation? In [1] i just found it mentioned at two locations: - At 7.3.1 (where it is only explained that "netsetup=0" disables network) - in the Appendix B.3 "Advanced Network Setup" Also i think it would help to mention it at the explanations for hostip, ..., namely that "netsetup=1" is a mandatory condition there? Anyway: Thanks for your help, and for autoyast! Dom. [1] http://users.suse.com/~ug/autoyast_en.pdf )opensuse 12.1) -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On 01.06.2012 18:45, Dominik Baumann wrote:
netsetup=1
That's it!! Thank you very much!
BTW: Shouldn't that parameter be explained more expicitly in the documentation? In [1] i just found it mentioned at two locations:
yes, I should document that more explicitly. You only run into that problem when you do an installation from a local source like DVD/USB but fetch the autoyast XML file from the net. That does not happen so often but I'll add something to the FAQ and/or Docu -- ciao, Uwe Gansert SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Home: http://www.suse.de/~ug - Blog: http://suse.gansert.net listening to: "Viktor (Von Rosen Und Nekrosen)" by Stillste Stund -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Hi list, is there any restriction regarding string length of the URL of a rpm-md addon_product? We have one scenario at a customer where the additional repository with SLES11-SP2 updates is not shown in the YaST UI during installation. The same is displayed in a very similar environment. One of the differences seems to be the URL length of the add_on product. Thanks, Jochen -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On 02.07.2012 13:42, Jochen Schaefer wrote:
is there any restriction regarding string length of the URL of a rpm-md addon_product? We have one scenario at a customer where the additional repository with SLES11-SP2 updates is not shown in the YaST UI during installation.
The same is displayed in a very similar environment. One of the differences seems to be the URL length of the add_on product.
I'm not aware of such a length limit. Do you have any special characters in the URL? -- ciao, Uwe Gansert SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Home: http://www.suse.de/~ug - Blog: http://suse.gansert.net listening to: "Only Human Remains" by Fractured -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Hi Uwe, nothing special e.g.: http://10.10.5.21/zenworks-yumrepo/SLES11-SP2-20120619-Updates-bundle Regards, Jochen
Uwe Gansert <ug@suse.de> 02.07.12 14.25 Uhr >>> On 02.07.2012 13:42, Jochen Schaefer wrote:
is there any restriction regarding string length of the URL of a rpm-md addon_product? We have one scenario at a customer where the additional repository with SLES11-SP2 updates is not shown in the YaST UI during installation.
The same is displayed in a very similar environment. One of the differences seems to be the URL length of the add_on product.
I'm not aware of such a length limit. Do you have any special characters in the URL? -- ciao, Uwe Gansert SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Home: http://www.suse.de/~ug - Blog: http://suse.gansert.net listening to: "Only Human Remains" by Fractured -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On 02.07.2012 15:13, Jochen Schaefer wrote:
nothing special e.g.:
http://10.10.5.21/zenworks-yumrepo/SLES11-SP2-20120619-Updates-bundle
that's no problem but maybe I misunderstood your problem. You wrote that the URL is not shown. So is this just a UI thing and the usage works? Or is the complete add-on ignored? -- ciao, Uwe Gansert SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Home: http://www.suse.de/~ug - Blog: http://suse.gansert.net listening to: "Almost Violent" by ROTERSAND -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Hi Uwe, the packages from the add_on are taken into account. zypper shows the repo after installation. But during stage1 you are not aware of that repo since it will just not be shown in the installation window. We are installing SLES11-SP2, OES11SP1 and the SLES11SP2-Update repo. We can see both SUSE Products - type yast (with content file, etc.) but not the yum repo. The update repo is not signed. Jochen
Uwe Gansert <ug@suse.de> 02.07.12 15.17 Uhr >>> On 02.07.2012 15:13, Jochen Schaefer wrote:
nothing special e.g.:
http://10.10.5.21/zenworks-yumrepo/SLES11-SP2-20120619-Updates-bundle
that's no problem but maybe I misunderstood your problem. You wrote that the URL is not shown. So is this just a UI thing and the usage works? Or is the complete add-on ignored? -- ciao, Uwe Gansert SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Home: http://www.suse.de/~ug - Blog: http://suse.gansert.net listening to: "Almost Violent" by ROTERSAND -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Hi list, we are using an unsigned repo during installation. When running ayast_setup.ycp afterwards (with just network configuration) it stops and requires a confirmation to accept the unsigned repo. How to avoid this confirmation? Thanks, Jochen
Uwe Gansert <ug@suse.de> 02.07.12 15.17 Uhr >>> On 02.07.2012 15:13, Jochen Schaefer wrote:
nothing special e.g.:
http://10.10.5.21/zenworks-yumrepo/SLES11-SP2-20120619-Updates-bundle
that's no problem but maybe I misunderstood your problem. You wrote that the URL is not shown. So is this just a UI thing and the usage works? Or is the complete add-on ignored? -- ciao, Uwe Gansert SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Home: http://www.suse.de/~ug - Blog: http://suse.gansert.net listening to: "Almost Violent" by ROTERSAND -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On 02.07.2012 15:41, Jochen Schaefer wrote:
Hi list,
we are using an unsigned repo during installation. When running ayast_setup.ycp afterwards (with just network configuration) it stops and requires a confirmation to accept the unsigned repo. How to avoid this confirmation?
on SP2 that does not work but on openSUSE since a while. The ayast_setup from openSUSE should work on SLES11 SP2 too. Maybe that's an option. ayast_setup setup filename=my.xml dopackages=no -- ciao, Uwe Gansert SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Home: http://www.suse.de/~ug - Blog: http://suse.gansert.net listening to: "Merging Oceans" by ROTERSAND -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Hello, working with 12.2/beta1 it breaks again with 12.2/RC1: On 05/31/2012 09:39 PM, Dominik Baumann wrote:
Then the following error occures: "An error occured while fetching the profile: Cannot find URL 'http://www..../.../autoinst.xml' via protocol HTTP(S). Server returned code 0."
Working with 12.2/beta1 (solution: netsetup=1) it breaks again with 12.2/RC1. The difference to the earlier problem: The network now is *active*, i *can* ping the workstation. But nevertheless the autoinst.xml can't be fetched. My kernel appendings are still the same: netsetup=1 autoyast=http://www.../autoinst.xml hostip=... netmask=255.255.255.0 domainname=... gateway=... nameserver=... All these settings are okay, because i can ping the machine, and i can fetch the autoinst.xml with "wget". D -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On 07/16/2012 10:39 PM, Dominik Baumann wrote:
All these settings are okay, because i can ping the machine, and i can fetch the autoinst.xml with "wget".
More exactly: It's a virtual machine (V), autoinst.xml lies on a webserver (W), and there is another machine (X). I can ping from X to V I can "wget" the xml file from W to V D. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On 07/16/2012 10:46 PM, Dominik Baumann wrote:
More exactly:
It's a virtual machine (V), autoinst.xml lies on a webserver (W), and there is another machine (X).
I can ping from X to V I can "wget" the xml file from W to V
Sorry: I can "wget" the xml file from W to *X* Don't know how to get to a text terminal on V to test "wget" there. D. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
participants (4)
-
686f6c6d
-
Dominik Baumann
-
Jochen Schaefer
-
Uwe Gansert