Posts Tagged Debian

“Waiting for root file system” caused by out dated VMware Server

I run into a strange problem when I upgraded some VMs from Debian Etch to Lenny. I’m using VMware Fusion on my MacBook Pro and VMware Server on my local Debian Server. Upgrading VMs hosted by the VMware Server ended in System boot hangs “Waiting for root file system”. Upgrading nearly the same Etch VMs hosted by VMware Fusion did not fail.

According to Debians Upgrade instruction and it’s “How to recover” section, the problem can be caused by new naming conventions for IDE disks.

This problem can occur when the upgrade of the kernel introduces the use of the new generation of IDE drivers. The IDE disk naming convention for the old drivers was hda, hdb, hdc, hdd. The new drivers will name the same disks respectively sda, sdb, sdc, sdd. The problem appears when the upgrade does not generate a new /boot/grub/menu.lst file to take the new naming convention into account. During the boot, Grub will pass a system root partition to the kernel that the kernel doesn’t find.

This seems like to be very common reason for these “Waiting for root file system” troubles that many faces now when upgrading to Lenny. But in my case I allready had the new sda* names in the grub/menu.lst and /etc/fstab. The “solution to recover” did not work.

The virtual lenny server with the new kernel images that fails to boot was hosted by VMWare Server 1.0.3. For a nearly the same upgrade process (etch to lenny) hosted on FMWare fusion 2.0.2, I did not have these problems.

Solution: My VMWare Server 1.0.3 was out of date and had a known vmware bug that caused this error. Upgrading to the latest version (now 1.0.8) solved the problem.

, , , , , ,

No Comments

Nagios commands via web-interface on Debian

Ups, I did it again – when I upgraded to Debian GNU/Linux 5 (lenny) and Nagios3 I stumbled about this nagios error when I try to send directs commands via the web-interface:

Error: Could not stat() command file ‘/var/lib/nagios3/rw/nagios.cmd’!

In “/etc/nagios3/nagios.cfg” the “check_external_commands=1″ was already set. So there was something more required to make it run on Debian…

Deep in my memory I know that there was a debian way to solve this user right related problem. This time I’ll write it down here – perhaps I’ll find it more easily when I upgrade to Debian GNU/Linux 6.0 (codenamed squeeze) and/or Nagios4.

/etc/init.d/nagios3 stop
dpkg-statoverride –update –add nagios www-data 2710 /var/lib/nagios3/rw
dpkg-statoverride –update –add nagios nagios 751 /var/lib/nagios3
/etc/init.d/nagios3 start

, ,

3 Comments

Debians Supergau:
Das Internet ist nicht mehr sicher – und Kurt ist schuld

‘Ach Du Schreck’ denke ich, als ich beim obligatorischen upgraden der Debian-Pakete den folgenden Hinweis bekam:

Vulnerable host keys will be regenerated

Some of the OpenSSH server host keys on this system were generated with a version of OpenSSL that had a broken random number generator. As a result, these host keys are from a well-known set, are subject to brute-force attacks, and must be regenerated.

Mehr Details dazu unter: http://lists.debian.org/debian-security-announce/2008/msg00152.html

Das ist wirklich schlimm, denn anders als bei den meisten üblichen Sicherheitslücken, die durch einen Patch sofort mehr oder weniger zuverlässig geschlossen werden (hoffentlich ohne neue Sicherheitslücken aufzureissen), ist dieser Fehler eher wie eine Art Bandwurm. Das fehlerhafte Debian Paket OpenSSL hat Schlüssel erzeugt, die nicht so zufällig waren wie sie hätten sein sollen. Daher sind diese Schlüssel vorhersagbar und nicht sicher.

Etliche sicher geglaubte Keys sind längst im Umlauf (das Problem besteht seit dem 17.09.2006) und müssen nun rasch durch neue, sichere Schlüssel ersetzt werden, bevor die schwachen Schlüssel, die ja auch zur Authentifizierung genutzt werden, geknackt werden. Read the rest of this entry »

, , ,

3 Comments

Sun Java auf Debian 4.0 Etch installieren

Diese Kurzanleitung beschreibt die Installation der Sun Java 2 Platform Standard Edition 5.0 JRE (Java Runtime Environment) und des JDK (Java Developer Kit) auf Debian 4.0 Etch.

Sun Java 2 ist in der “non-free” Sektion der Debian Repositories verfügbar. Damit auf diese Sektion zugegriffen werden kann, muss das non-free repository in der apt sources Datei verfügbar gemacht werden. Die Datei /etc/apt/sources.list sollte wie folgt ausschauen – wichtige Passage ist hervorgehoben:

deb http://ftp.de.debian.org/debian/ etch main non-free contrib

Nun apt updaten mit:

sudo apt-get update

Nun die Java Debian Pakete installieren:

sudo apt-get install sun-java5-jre

Oder wenn das JDK ( das Java SDK ) installiert werden soll:

sudo apt-get install sun-java5-jdk

Alternativen: GNU Compiler für Java

, ,

9 Comments

VMWare rtc: lost some interrupts

Nachdem ich VMWare Server unter Debian Etch Linux laufen lasse, bekomme ich bei einigen Gast OS die Meldung “rtc: lost some interrupts” im Syslog des Hosts eingetragen – und war sehr häufig, so dass das Syslog regelrecht zugemüllt wird. Eine Lösung für Gast OSe, die keine absolut exakte Zeiterfassung benötigen kann man dem VMWare Timekeeping Manual entnehmen:

You can prevent /dev/rtc from being used. This will generally cause clocks to run slow
in any virtual machines you have that need the additional interrupts, but that may be
acceptable to you, depending on your application. To do so, add the following setting to
each virtual machine’s .vmx configuration file, or add the setting globally to the host’s
configuration file (/etc/vmware/config):

host.useFastClock = FALSE

Wenn man diese Zeile im /etc/vmware/config einträgt und vmware neu startet (/etc/init.d/vmware restart), ist man die Einträge im Syslog los.

, ,

1 Comment

NVidia-Treiber unter Debian Etch

Den Nvidia Treiber habe ich nicht über den “Debian way” per apt-get installiert bekommen. X bricht beim Start mit einer nichtssagenden Fehlermeldung ab und auch die Logs ergaben aber keinen konkreten Hinweis, wo das Problem liegt. X lief nur über “vesa” oder den generischen NV Treiber – nicht aber mit “nvidia”. OpenGL lief gar nicht.

Nachdem ich dann also über den Apt-Get-Wet für die Installation der nvidia-Treiber nicht weitergekommen bin, habe ich den nvidia Treiber vom der Homepage downgeloaded und in etwa wie folgt installiert: Read the rest of this entry »

,

10 Comments

Installation Debian Etch auf einem Software-RAID 1 mit SATA Disks

Folgende Situation: Ein neuer Server mit SATA II Disks soll unter Linux im RAID1 Verbund laufen aber der sogenannte RAID-Controller vom Motherboard wird nicht unterstützt. Da nur RAID1 benötigt wird und Linux das einzige System werden soll, tut es auch die Linux-Software-Raid Unterstützung. Das MoBo hat den Intel ICH7 Chipset onboard, welcher AHCI mit HotPlug und NCQ (Native Command Queuing) unterstützt – also soll dieses idealerweise aktiviert werden. Soweit die Zielsetzung – doch bevor ich das umsetzen konnte musste ich erstmal etwas Hintergrundwissen aufsaugen und einige Hürden nehmen: Read the rest of this entry »

, ,

10 Comments