Probleme bei der Erstellung eines vServers auf Debian Etch

derlym

New Member
Hallo,

Ich arbeite seit einiger Zeit mit vServern auf der Basis von Debian Etch (64bit) und der Virtualisierungs-Lösung Linux-vServer.
Bisher liefen alle VM's ohne Probleme (ebenfalls) unter Debian Etch (64bit). Die Installation einer neuen VM erfolgt dabei relativ simpel und ohne Probleme über die Eingabe der folgenden Befehlszeile:

Code:
server:~# newvserver --hostname example --domain example.com --ip 123.123.123.123/24 --interface eth0 --context 2 --dist etch --mirror ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/debian

Nun benötige ich aber ein anderes OS in der VM (in diesem Fall: CentOS5, am besten 32bit) und stehe dabei vor einem Problem.
Die Installation der VM soll - gemäß des linux-vserver.org-Wiki's - mittels eines zuvor heruntergeladenen Images erfolgen:

Code:
vserver example build -m template --context 2 --hostname example.example.com --interface eth0:123.123.123.123/24 --initstyle plain -- -d centos5 -t /etc/vservers/.templates/centos-5-i686-2008-07-09.tar.bz2

Der verwendete Befehl entspricht im Wesentlichen der Template-Installation aus dem Wiki (Punkt 1.3).

Nach einigen Experimenten (u.A. auch mit Punkt 1.1, welcher aber aufgrund der fehlenden Wiki-Seite zur Registration neuer Distributionen ausfiel), versprach diese Methode noch den meisten Erfolg.

Die Installation wird vom Server ohne Murren innerhalb von 2 Minuten ausgeführt (allerdings ohne Rückmeldung), jedoch erhalte ich beim Start der frisch installierten VM folgende Fehlermeldung:
Code:
server:~# vserver example start
vcontext: execvp("/sbin/init"): Exec format error

An error occured while executing the vserver startup sequence; when
there are no other messages, it is very likely that the init-script
(/sbin/init) failed.

Common causes are:
* /etc/rc.d/rc on Fedora Core 1 and RH9 fails always; the 'apt-rpm' build
  method knows how to deal with this, but on existing installations,
  appending 'true' to this file will help.


Failed to start vserver 'example'

Ich vermute mal, dass es am Init-Script liegt, dass CentOS verwenden möchte, Debian aber nicht hat. Aber wie löse ich das Problem?

Noch ein paar Worte zur verwendeten Konfiguration:
In dem Server steckt ein etwas älterer 64bit-Athlon von AMD. Als BS kommt Debian Etch mit dem für linux-vserver modifizierten Kernel zum Einsatz.

Falls irgendwelche Fragen aufkommen: Nur zu. :)
 
Danke für die schnelle Antwort.
Diese Lösung habe ich gleich als erstes probiert. Leider ist CentOS 5 nicht registriert und kann demzufolge nicht installiert werden. Das entsprechende HowTo zum Registrieren neuer Distributionen ist, wie bereits erwähnt, leider nicht erreichbar.

Ein Versuch mit der bereits registrierten Distribution Fedora6 brachte folgendes Ergebnis:
Code:
server:~# vserver example build -m yum --context 10 --hostname example.example.com --interface eth0:123.123.123.123/24 -- -d fc6
You are using a version of yum which is insecure and broken in chroot
related operations; either apply the patches shipped in the 'contrib/'
directory of util-vserver, or ask the author of yum to apply them
(preferred).

In the meantime, 'vyum' will continue with dirty hacks which might not
work when the vserver is running and local DOS attacks are possible.

Execution will continue in 5 seconds...
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/6/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404: Date: Tue, 10 Mar 2009 19:44:25 GMT
Server: Apache
Content-Length: 256
Content-Type: text/html; charset=iso-8859-1
Trying other mirror.
Cannot open/read repomd.xml file for repository: updates
failure: repodata/repomd.xml from updates: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from updates: [Errno 256] No more mirrors to try.

Scheinbar ist die Quelle auch nicht mehr ganz aktuell.
 
Back
Top