You are not logged in.
I have installed Arch Linux on a Qotom PC and want to use it as a headless server.
When I disconnect the monitor from the server it will refuse to boot.
I have previously used FreeBSD which booted and ran without problems
I've Googled this problem, but no solutions seem to work for me.
The current state of my machine:
/boot/loader/entries/arch-lts.conf:
title Arch Linux LTS (main)
linux /vmlinuz-linux-lts
initrd /intel-ucode.img
initrd /initramfs-linux-lts.img
options root=UUID=4511ef1a-fbe9-48aa-836f-c08d040cc1f9 rw nomodeset i915.modeset=0$ lspci
00:00.0 Host bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series SoC Transaction Register (rev 0e)
00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 0e)
00:13.0 SATA controller: Intel Corporation Atom Processor E3800 Series SATA AHCI Controller (rev 0e)
00:14.0 USB controller: Intel Corporation Atom Processor Z36xxx/Z37xxx, Celeron N2000 Series USB xHCI (rev 0e)
00:1a.0 Encryption controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Trusted Execution Engine (rev 0e)
00:1b.0 Audio device: Intel Corporation Atom Processor Z36xxx/Z37xxx Series High Definition Audio Controller (rev 0e)
00:1c.0 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 1 (rev 0e)
00:1c.1 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 2 (rev 0e)
00:1c.2 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 3 (rev 0e)
00:1c.3 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 4 (rev 0e)
00:1f.0 ISA bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Power Control Unit (rev 0e)
00:1f.3 SMBus: Intel Corporation Atom Processor E3800 Series SMBus Controller (rev 0e)
01:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
02:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
03:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
04:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)$ systemctl list-unit-files | grep enabled
autovt@.service enabled
cronie.service enabled
dbus-org.freedesktop.network1.service enabled
dbus-org.freedesktop.timesync1.service enabled
dhcpcd.service enabled
getty@.service enabled
lighttpd.service enabled
lm_sensors.service enabled
pihole-FTL.service enabled
rngd.service enabled
smartd.service enabled
sshd.service enabled
systemd-fsck-root.service enabled-runtime
systemd-networkd-wait-online.service enabled
systemd-networkd.service enabled
systemd-remount-fs.service enabled-runtime
systemd-timesyncd.service enabled
systemd-networkd.socket enabled
nfs-client.target enabled
remote-fs.target enabled
fstrim.timer enabledIn the BIOS, I've disabled IGD (Integrated Graphics Driver).
It will boot fine WITH a monitor attached. It does NOT boot without a monitor.
For a headless system that is very inconvenient.
Last edited by mausy5043 (2019-10-12 10:00:12)
Offline
You have dhcpcd and systemd-networkd enabled what will most likely break the network setup.
What brings us to the topic: how do you determine that the system doesn't boot when there's no output attached?
What happens/do you see when you attach an output to the system during a failing boot?
Offline
Thank you for your assistance.
You have dhcpcd and systemd-networkd enabled what will most likely break the network setup.
Are you suggesting to disable one of those? Is that related to this issue or is this an unrelated suggestion?
What brings us to the topic: how do you determine that the system doesn't boot when there's no output attached?
When restarting after disconnecting the monitor, the server does not become available to the network. I cannot ping it or login through SSH. I then attach a keyboard and after a few minutes use Ctrl+Alt+Del to get it to reboot. Then plug in the monitor and watch it boot-up. After that I can login through SSH. To confirm that it did not, sneakily, boot up without a network I inspect journalctl. There is a gap in the logging between the bootup with the monitor detached and the bootup with the monitor attached. To me this is evidence of a failed boot.
What happens/do you see when you attach an output to the system during a failing boot?
VGA is not a hot-swappable video output. I fear to connect a monitor on-the-fly. So, haven't tried that.
Offline
VGA is not a hot-swappable video output. I fear to connect a monitor on-the-fly. So, haven't tried that.
It will not physically hurt anything. It is just that the EDID data won't be read from the monitor when the monitor is plugged in late.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
You can attach a VGA output anytime. If it's the only output and since you disabled modesetting, you'll most likely see a VGA console.
There is a gap in the logging between the bootup with the monitor detached and the bootup with the monitor attached.
Please post the mentioned journal section (full boots)
Since your only live-indicator of the failure is the missing connection, I'd suggest to clean up the network config. It's mandatory anyway (because the daemons will get into a race over the NIC) but maybe unrelated. We'll see.
Offline
Without a log, it's hard to say, but I wouldn't be running a headless setup without something like haveged.
Offline
The theory here would be that the output addition is actually insignificant, but the warm reboot is. That's why I asked for the journal ;-)
Offline
mausy5043 wrote:VGA is not a hot-swappable video output. I fear to connect a monitor on-the-fly. So, haven't tried that.
It will not physically hurt anything. It is just that the EDID data won't be read from the monitor when the monitor is plugged in late.
Okay, I tried this. Re-attaching the monitor while the machine is in the alleged failed state results in a blank/black screen.
So, no help there unfortunately.
Offline
WI wouldn't be running a headless setup without something like haveged.
No idea, what this has to do with the problem at hand.
Anyway, please note I've got rng-tools installed. Hence the rngd.service that is enabled.
Offline
Since your only live-indicator of the failure is the missing connection, I'd suggest to clean up the network config. It's mandatory anyway (because the daemons will get into a race over the NIC) but maybe unrelated. We'll see.
Okay, I've disabled dhcpcd and configured systemd-networkd correctly now.
$ systemctl list-unit-files |grep enabled
autovt@.service enabled
cronie.service enabled
dbus-org.freedesktop.network1.service enabled
dbus-org.freedesktop.timesync1.service enabled
getty@.service enabled
lighttpd.service enabled
lm_sensors.service enabled
pihole-FTL.service enabled
rngd.service enabled
smartd.service enabled
sshd.service enabled
systemd-fsck-root.service enabled-runtime
systemd-networkd-wait-online.service enabled
systemd-networkd.service enabled
systemd-remount-fs.service enabled-runtime
systemd-timesyncd.service enabled
systemd-networkd.socket enabled
nfs-client.target enabled
remote-fs.target enabled
fstrim.timer enabledThe problem remains.
Offline
Scimmia wrote:WI wouldn't be running a headless setup without something like haveged.
No idea, what this has to do with the problem at hand.
Anyway, please note I've got rng-tools installed. Hence the rngd.service that is enabled.
Missed it in the list. Sorry about that.
As for what it has to do with the problem, lack of entropy will stop sshd (and many other things) from fully starting.
Last edited by Scimmia (2019-10-12 16:49:06)
Offline
I've dumped a journal into pastebin
First reboot @ 18:48:00
Reconnect monitor @ 18:49:00
Ctrl+Alt+Del @ 18:49:50
See here: https://pastebin.com/fSfNmvPd
Have fun!
Offline
There's no journal for the 1st reboot - it would seem you don't even pass the bootloader, maybe even not the UEFI/BIOS (which however would contrast w/ the "FreeBSD worked" claim)
=> Which bootloader in what config? If you add an infinite (or just very long) delay before auto-loading a system, can you connect the output after the BIOS phase into the bootloader and do you get output there?
Offline
=> Which bootloader in what config?
Should be systemd-boot with the /boot/loader/entries/arch-lts.conf
mausy5043, what is in your /boot/loader/loader.conf? You might have to add console-mode keep to prevent systemd-boot from trying to change the graphics mode.
https://www.freedesktop.org/software/sy … .conf.html
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline
You are trying too hard. You get a message, don't use "nomdeset" if you don't know what you are doing. Do not do this.
Oct 12 18:50:07 bifrost kernel: You have booted with nomodeset. This means your GPU drivers are DISABLED
Oct 12 18:50:07 bifrost kernel: Any video related functionality will be severely degraded, and you may not even be able to suspend the system
properly
Oct 12 18:50:07 bifrost kernel: Unless you actually understand what nomodeset does, you should reboot without enabling itBecause of this, he is pushed against the force of efifb.
Oct 12 18:50:07 bifrost kernel: efifb: probing for efifb
Oct 12 18:50:07 bifrost kernel: efifb: framebuffer at 0xc0000000, using 1876k, total 1875k
Oct 12 18:50:07 bifrost kernel: efifb: mode is 800x600x32, linelength=3200, pages=1If you have disabled KMS, turn it off.
efifb=off
Kernel does not know such a boot parameter as "text". Maybe you mean mode "vga=normal".
I don't know a Linux based system that wouldn't work without a monitor. The whole world works thanks to servers (Linux) without monitors.
Last edited by latalante1 (2019-10-12 21:16:12)
Offline
@lalante1, this is from a functional boot - nomodeset is probably a despeate try to deal with the problem, but not the problem at hand. It will deactivate KMS but you'll still get a VGA console.
progandy's comment is more likely relevant.
Offline
seth wrote:=> Which bootloader in what config?
Should be systemd-boot with the /boot/loader/entries/arch-lts.conf
mausy5043, what is in your /boot/loader/loader.conf? You might have to add console-mode keep to prevent systemd-boot from trying to change the graphics mode.
https://www.freedesktop.org/software/sy … .conf.html
I'm using systemd-boot
/boot/loader/loader.conf
timeout 5
#console-mode keep
#default c8211fe7077b4c1fab778c94a9b47b10-*
default arch-ltsI'll try with uncommenting the console-mode keep and let you know what happens.
Last edited by mausy5043 (2019-10-13 07:20:31)
Offline
If you have disabled KMS, turn it off.
efifb=off
Kernel does not know such a boot parameter as "text". Maybe you mean mode "vga=normal".
Adding these options has no effect. :-(
I don't know a Linux based system that wouldn't work without a monitor. The whole world works thanks to servers (Linux) without monitors.
This is a first for me too.
Offline
I'll try with uncommenting the console-mode keep and let you know what happens.
No effect :-(
Offline
If you add an infinite (or just very long) delay before auto-loading a system, can you connect the output after the BIOS phase into the bootloader and do you get output there?
Offline
If you add an infinite (or just very long) delay before auto-loading a system, can you connect the output after the BIOS phase into the bootloader and do you get output there?
Not sure what you mean here
Offline
You set "timeout 500", boot the system w/o the output attached, wait a couple of seconds until it's safe to say the BIOS phase should have ended and the bootloader being asking you for a selection, then attach the output and check whether you can see the bootloader dialog.
Offline
You set "timeout 500", boot the system w/o the output attached, wait a couple of seconds until it's safe to say the BIOS phase should have ended and the bootloader being asking you for a selection, then attach the output and check whether you can see the bootloader dialog.
The screen is blank after re-attaching the monitor. So, I'm guessing this is a hardware problem?
Offline
Maybe I should get one of these: https://www.ebay.com/p/21025379611
Offline
Maybe. However you suggested this was not a problem using FreeBSD (and probably a different boot loader)?
Maybe also try "console-mode 0".
Offline