[opensuse-autoinstall] Start only second stage in console mode
Hello everyone, I have a autoyast setup where I would like to install a headless server. The machine starts an Xserver in Stage 1 of the installation process just fine and installation begins (a monitor is attached but turned off). After RPM installation and rebooting/kexec into stage 2, starting XDM fails for some reason. As the machine is supposed to run headless in console mode anyway, I would not care at all. I even disable XDM completely later on as it is not needed. But I seems like the second stage fails to start due to XDM failing. Instead of fixing the reason for XDM failing, I would like to tell the *second* stage ahead of time to simply start in console mode. Is this possible somehow? I.e.: start stage 1 with X enabled, start stage 2 with X disabled in console mode. The AutoYast configuration options for services is done at the end of stage 2, which is too late for this case. Thanks for any suggestions!
On 11/14/2013 05:03 PM, Joschi Brauchle wrote:
Hello everyone,
I have a autoyast setup where I would like to install a headless server.
The machine starts an Xserver in Stage 1 of the installation process just fine and installation begins (a monitor is attached but turned off).
After RPM installation and rebooting/kexec into stage 2, starting XDM fails for some reason. As the machine is supposed to run headless in console mode anyway, I would not care at all. I even disable XDM completely later on as it is not needed.
But I seems like the second stage fails to start due to XDM failing.
Instead of fixing the reason for XDM failing, I would like to tell the *second* stage ahead of time to simply start in console mode.
Is this possible somehow? I.e.: start stage 1 with X enabled, start stage 2 with X disabled in console mode.
The AutoYast configuration options for services is done at the end of stage 2, which is too late for this case.
Thanks for any suggestions!
Hi, do you need the X Server in stage 1? If not, add "textmode=1" as parameter to linuxrc. (If you use PXE, add it to the "append" line.) Best regards Robert -- Robert Klein UNIX Operations, Max Planck-Institut für Polymerforschung Ackermannweg 10 55218 Mainz -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Ok, thanks for the hint! That is a good start... So I have a default PXE menu entry (and other options to start an autoinstall). Thus, I would like to keep this entry identical for all systems I install, i.e. workstations with X and headless servers. But I could possibly add textmode=1 after stage 1 has finished... As per default the second stage is started via kexec, how would I accomplish this? Does kexec take its arguments from somewhere (e.g. grub menu)? On 11/14/2013 11:17 AM, Robert Klein wrote:
On 11/14/2013 05:03 PM, Joschi Brauchle wrote:
Hello everyone,
I have a autoyast setup where I would like to install a headless server.
The machine starts an Xserver in Stage 1 of the installation process just fine and installation begins (a monitor is attached but turned off).
After RPM installation and rebooting/kexec into stage 2, starting XDM fails for some reason. As the machine is supposed to run headless in console mode anyway, I would not care at all. I even disable XDM completely later on as it is not needed.
But I seems like the second stage fails to start due to XDM failing.
Instead of fixing the reason for XDM failing, I would like to tell the *second* stage ahead of time to simply start in console mode.
Is this possible somehow? I.e.: start stage 1 with X enabled, start stage 2 with X disabled in console mode.
The AutoYast configuration options for services is done at the end of stage 2, which is too late for this case.
Thanks for any suggestions!
Hi,
do you need the X Server in stage 1? If not, add "textmode=1" as parameter to linuxrc. (If you use PXE, add it to the "append" line.)
Best regards Robert
-- Dipl.-Ing. Joschi Brauchle, M.S. Institute for Communications Engineering (LNT) Technische Universitaet Muenchen (TUM) 80290 Munich, Germany Tel (work): +49 89 289-23474 Fax (work): +49 89 289-23490 E-mail: joschi.brauchle@tum.de Web: http://www.lnt.ei.tum.de/
On 11/14/2013 06:50 PM, Joschi Brauchle wrote:
Ok, thanks for the hint! That is a good start...
So I have a default PXE menu entry (and other options to start an autoinstall). Thus, I would like to keep this entry identical for all systems I install, i.e. workstations with X and headless servers.
But I could possibly add textmode=1 after stage 1 has finished...
As per default the second stage is started via kexec, how would I accomplish this? Does kexec take its arguments from somewhere (e.g. grub menu)?
Hi, you can install workstations with X also using textmode=1. The installation mode may cause the installation of X (don't know), but if you want X, you say so in your autoyast control file runlevel section and your software selection. For example, a minimal configuration for X with XFCE as desktop might be: <?xml version="1.0"?> <!DOCTYPE profile> <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> <runlevel> <default>5</default> </runlevel> <software> <patterns config:type="list"> <pattern>base</pattern> <pattern>enhanced_base</pattern> <pattern>x11</pattern> <pattern>xfce</pattern> <pattern>xfce_basis</pattern> </patterns> </software> </profile> (Note: I left out the other sections of the control file.) Typically for headless servers I just choose the "base" and "enhanced base" patterns (or, in SLES "Minimal" and "base"). For our 50+ desktops I install almost the whole shebang of patterns, including Gnome and KDE desktops. I install both variants with textmode=1. Best regards Robert
On 11/14/2013 11:17 AM, Robert Klein wrote:
On 11/14/2013 05:03 PM, Joschi Brauchle wrote:
Hello everyone,
I have a autoyast setup where I would like to install a headless server.
The machine starts an Xserver in Stage 1 of the installation process just fine and installation begins (a monitor is attached but turned off).
After RPM installation and rebooting/kexec into stage 2, starting XDM fails for some reason. As the machine is supposed to run headless in console mode anyway, I would not care at all. I even disable XDM completely later on as it is not needed.
But I seems like the second stage fails to start due to XDM failing.
Instead of fixing the reason for XDM failing, I would like to tell the *second* stage ahead of time to simply start in console mode.
Is this possible somehow? I.e.: start stage 1 with X enabled, start stage 2 with X disabled in console mode.
The AutoYast configuration options for services is done at the end of stage 2, which is too late for this case.
Thanks for any suggestions!
Hi,
do you need the X Server in stage 1? If not, add "textmode=1" as parameter to linuxrc. (If you use PXE, add it to the "append" line.)
Best regards Robert
-- Robert Klein UNIX Operations, Max Planck-Institut für Polymerforschung Ackermannweg 10 55218 Mainz -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
participants (2)
-
Joschi Brauchle
-
Robert Klein