20110520

Für heute habe ich mir vorgenommen, das Projekt https://www.lino-framework.org/tickets/4.html mal endlich durchzuziehen.

After having done the second copy, re-applied all adjustments and started the VM, I get the following init log:

starting init logger
INIT: version 2.86 booting
stty: standard input: Invalid argument
mkdir: cannot create directory `/lib/init/rw/sendsigs.omit.d/': File exists
udev requires hotplug support, not started. failed!
failed!
Setting the system clock.
hwclock is unable to get I/O port access: the iopl(3) call failed.
Unable to set System Clock to: Fri May 20 14:05:02 EEST 2011 (warning).
Activating swap...done.
mount: permission denied
Couldnt get a file descriptor referring to the console
KDGKBMODE: Bad file descriptor
loadkeys: error reading keyboard mode
Problem when loading /etc/console/boottime.kmap.gz, use install-keymap (warning).
Setting the system clock.
hwclock is unable to get I/O port access: the iopl(3) call failed.
Unable to set System Clock to: Fri May 20 14:05:12 EEST 2011 (warning).
Cleaning up ifupdown....
Setting the system clock.
hwclock is unable to get I/O port access: the iopl(3) call failed.
Unable to set System Clock to: Fri May 20 14:05:12 EEST 2011 (warning).
Setting up networking....
Mounting local filesystems...done.
Activating swapfile swap...done.
Activating swap...done.
mount: permission denied
Setting the system clock.
hwclock is unable to get I/O port access: the iopl(3) call failed.
Unable to set System Clock to: Fri May 20 14:05:12 EEST 2011 (warning).
/etc/network/options still exists and it will be IGNORED! Read README.Debian of netbase. (warning).
Configuring network interfaces...if-up.d/mountnfs[venet0]: waiting for interface venet0:0 before doing NFS mounts (warning).
done.
Setting kernel variables (/etc/sysctl.conf)...done.
Setting kernel variables (/etc/sysctl.d/bindv6only.conf)...done.
Setting up X server socket directory /tmp/.X11-unix....
Setting up ICE socket directory /tmp/.ICE-unix....
Starting portmap daemon....
/etc/rcS.d/S15urandom: line 37: /dev/urandom: Permission denied
Cleaning up ifupdown....
Loading kernel module unix.
FATAL: Could not load /lib/modules/2.6.18-1-pve/modules.dep: No such file or directory
Loading kernel module af_packet.
FATAL: Could not load /lib/modules/2.6.18-1-pve/modules.dep: No such file or directory
Loading kernel module dummy.
FATAL: Could not load /lib/modules/2.6.18-1-pve/modules.dep: No such file or directory
Loading kernel module 8139too.
FATAL: Could not load /lib/modules/2.6.18-1-pve/modules.dep: No such file or directory
Loading kernel module rtl8139.
FATAL: Could not load /lib/modules/2.6.18-1-pve/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/2.6.18-1-pve/modules.dep: No such file or directory
Creating device-mapper devices...unable to continue without /proc/misc and /proc/devices.
Creating device-mapper devices...unable to continue without /proc/misc and /proc/devices.
Loading device-mapper support.
Checking file systems...fsck 1.41.3 (12-Oct-2008)
done.
Setting kernel variables (/etc/sysctl.conf)...done.
Setting kernel variables (/etc/sysctl.d/bindv6only.conf)...done.
Mounting local filesystems...done.
Activating swapfile swap...done.
Running 0dns-down to make sure resolv.conf is ok...done.
Setting up networking....
/etc/network/options still exists and it will be IGNORED! Read README.Debian of netbase. (warning).
Configuring network interfaces...SIOCADDRT: File exists
Failed to bring up venet0.
done.
Starting portmap daemon....
Starting NFS common utilities: statd.
Loading the saved-state of the serial devices...
/dev/ttyS0: No such file or directory
/dev/ttyS0: No such file or directory
Setting sensors limitsNo sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.
No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.
.
Setting console screen modes and fonts.
/etc/rcS.d/S55urandom: line 37: /dev/urandom: Permission denied
Recovering nvi editor sessions...none found.
Setting up X server socket directory /tmp/.X11-unix....
Setting up ICE socket directory /tmp/.ICE-unix....
INIT: Entering runlevel: 2
stty: standard input: Invalid argument
Starting system log daemon....
Starting kernel log daemon....
Starting system message bus: dbus.
Starting portmap daemon....
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Starting enhanced syslogd: rsyslogd.
Starting deferred execution scheduler: atdStarting periodic command scheduler: crond.
Starting Postfix Mail Transport Agent: postfix.
Starting OpenBSD Secure Shell server: sshd.
Starting OpenBSD Secure Shell server: sshd.
Starting portmap daemon....
Starting PostgreSQL 8.3 database server: mainsh: /dev/null: Permission denied
fgets failure: Success
The program "postgres" is needed by pg_ctl but was not found in the
same directory as "/usr/lib/postgresql/8.3/bin/pg_ctl".
Check your installation.
Removed stale pid file. Use of uninitialized value in subroutine entry at /usr/bin/pg_ctlcluster line 323. Use of uninitialized value in subroutine entry at /usr/bin/pg_ctlcluster line 324. Error: could not exec /usr/lib/postgresql/8.3/bin/pg_ctl /usr/lib/postgresql/8.3/bin/pg_ctl start -D /var/lib/postgresql/8.3/main -l /var/log/postgresql/postgresql-8.3-main.log -s -o -c config_file="/etc/postgresql/8.3/main/postgresql.conf" : failed!
failed!
SpamAssassin Mail Filter Daemon: disabled, see /etc/default/spamassassin
Starting serpento: dictd.
Starting DirMngr: dirmngr.
Not starting fancontrol; run pwmconfig first. (warning).
Starting printer spooler: lpd.
Starting Mailman master qrunner: mailmanctl.
Starting MySQL database server: mysqld ..
Checking for corrupt, not cleanly closed and upgrade needing tables..
Starting NFS common utilities: statd.
FATAL: Could not load /lib/modules/2.6.18-1-pve/modules.dep: No such file or directory
Not starting NFS kernel daemon: no support in current kernel. (warning).
Starting internet superserver: inetd.
Starting Postfix Mail Transport Agent: postfix.
rsync daemon not enabled in /etc/default/rsync, not starting... (warning).
Starting Samba daemons: nmbd smbd.
saned disabled; edit /etc/default/saned
To enable saslauthd, edit /etc/default/saslauthd and set START=yes (warning).
Starting serpento: serpento.
Setting up X font server socket directory /tmp/.font-unix...done.
Starting X font server: xfs.
Starting Xprint servers: Xprt.
Traceback (most recent call last):
File "/usr/lib/serpento/serpento.py", line 365, in ?
server = TCPServer(address, DictServer)
File "/usr/lib/python2.4/SocketServer.py", line 330, in __init__
self.server_bind()
File "/usr/lib/serpento/serpento.py", line 346, in server_bind
self.socket.bind(self.server_address)
File "<string>", line 1, in bind
socket.error: (98, 'Address already in use')
/etc/rc2.d/S20xprint: ## ERROR: Can't find "/usr/X11R6/bin/Xprt".
Zope starting all instances....
'titaga' is an old/purged instance, not started
Starting file alteration monitor: FAM.
Can't start Hardware abstraction layer - sysfs not mounted on /sys failed!
Starting deferred execution scheduler: atdStarting periodic command scheduler: crond failed!
Starting web server: apache2.
INIT: no more processes left in this runlevel

Hm, da funktioniert also noch einiges nicht.

Aha, zumindest eines habe ich noch gar nicht gemacht: “Disable services that are no longer needed on a VM”, also

for SERVICE in checkfs.sh checkroot.sh console-screen.sh hwclock.sh hwclockfirst.sh lm-sensors udev udev-mtab keymap.sh do

update-rc.d  -f SERVICE remove

15 Uhr. Oh je! Jetzt habe ich das Obige versehentlich auf proxmox statt auf mops gemacht! Das habe ich zwar zum Glück dann gemerkt und für jeden Service ein update-rc.d SERVICE default gemacht, aber das hat nichts gebracht. Nach dem Restart meldet sich proxmox nicht mehr. Weder das Web-Interface noch sshd. Jetzt muss ich also zuerst mal Proxmox neu installieren (d.h. vorher den Rechner aus dem Schrank ausbauen und eine Konsole anschließen…). Nein… ich hab keine Lust!

Tastatur und Bildschirm angeschlossen und Neustart: in der Tat, da sind lauter “failed!” im Bootlog. Und er kommt auch mit Konsole gar nicht bis zum Login. Ja, das Effizienteste ist jetzt, nochmal ganz von vorne zu beginnen: Proxmox-Installations-CD rein und booten.

Meine Installations-CD ist eine Version 1.5 von Januar 2010, also schon recht alt. Aber ich werde ja keine neue CD brennen solange ich mit der alten Version noch an keine Grenzen gestoßen bin.

Oh, ein Problem scheint wohl damit zu tun zu haben: ich kann keine Templates runterladen. Oder zumindest nicht das von Debian 6, das mich interessiert.

Er sagt:

download finished     Abort
starting download: debian-6.0-standard_6.0-1_i386.tar.gz
--2011-05-20 15:51:15-- http://download.proxmox.com/appliances/system/debian-6.0-standard_6.0-1_i386.tar.gz
Resolving download.proxmox.com... 188.165.145.222
Connecting to download.proxmox.com|188.165.145.222|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-05-20 15:51:15 ERROR 404: Not Found.

Ich nehme an, dass die Liste der Standard-Templates Teil der Proxmox-Version ist, und dass sich inzwischen Dateinamen geändert haben. In der Section ‘system’ gibt es folgende Auswahl:

Description

Version

Type

Package name

CentOS 4 (standard)

4.7-1

openvz

centos-4-standard

CentOS 5 (standard)

5.2-1

openvz

centos-5-standard

Debian 4.0 (standard)

4.0-5

openvz

debian-4.0-standard

Debian 5.0 (standard)

5.0-2

openvz

debian-5.0-standard

Debian 6.0 (standard)

6.0-1

openvz

debian-6.0-standard

Fedora 9 (standard)

9-2

openvz

fedora-9-standard

Ubuntu Hardy (standard)

8.04-3

openvz

ubuntu-8.04-standard

Also mal ein dist-upgrade des Servers probieren. ssh root@192.168.1.160 und dann:

proxmox:~# aptitude update dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be installed:
  libbind9-50{a} libdns58{a} libisc50{a} libisccc50{a} libisccfg50{a} liblwres50{a} pve-kernel-2.6.18-6-pve{a}
The following packages will be upgraded:
  apache2 apache2-mpm-prefork apache2-utils apache2.2-common apt apt-utils base-files bind9-host bzip2 cpio
  debian-archive-keyring dhcp3-client dhcp3-common dnsutils dpkg gzip iputils-ping libapache2-mod-perl2 libapr1
  libaprutil1 libbind9-40 libbz2-1.0 libc6 libc6-i386 libdns45 libexpat1 libfreetype6 libgd2-noxpm libgnutls26
  libhtml-parser-perl libisc45 libisccc40 libisccfg40 libkrb53 libldap-2.4-2 liblwres40 libmysqlclient15off
  libnewt0.52 libperl5.10 libpng12-0 libpq5 libpve-storage-perl libsmbclient libssl0.9.8 libwbclient0 libwww-perl
  libxext6 libxml2 locales login lvm2 man-db mysql-common nano nfs-common ntp open-iscsi openssl passwd perl
  perl-base perl-modules perl-suid postfix proxmox-ve-2.6.18 pve-firmware pve-manager pve-qemu-kvm-2.6.18 python2.5
  python2.5-minimal qemu-server samba-common smbfs tar tzdata usbutils vzctl vzdump vzprocps w3m wget whiptail
The following packages are RECOMMENDED but will NOT be installed:
  ca-certificates libapache2-reload-perl libbsd-resource-perl libfribidi0 libhtml-format-perl xml-core
82 packages upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 93.3MB of archives. After unpacking 767kB will be used.

Das aktualisiert zwar meinen Proxmox auf die Version 1.8, aber ändert nichts daran, dass ich das Template für Debian 6.0 nicht runterladen kann.

Aha: Debian 5.0 geht wohl. Das hatte ich vor dem dist-upgrade nicht probiert. Na gut, dann nehmen wir eben Lenny statt Squeeze, das ist mir ja egal, ich mach ja sowieso nur einen Dummy.

Na wer sagts denn. So schlimm war es gar nicht. Von Null bis zum ersten großen rsync hat es ja jetzt gar nicht mehr lange gedauert, ich kriege mittlerweile Routine…

Aber jetzt hat er 5 Stunden zu tun, und ich habe viel Arbeit im Garten.