PDA

View Full Version : Problema durante l'avvio di UML


fbcyborg
11-05-2006, 11:41
Ieri sera sono riuscito a far funzionare tutto alla perfezione, rete virtuale compresa, quindi potevo installare qualsiasi cosa tramite internet sulla macchina virtuale.
Fino a ieri quindi, con Kernel UML nuovo e filesystem nuovo scaricato dal sito ufficiale funzionava tutto.
Per fare una prova usavo e uso un root_fs che contiene il filesystem di debian. Tutto ha funzionato perfettamente fino a poco fa, nel quale istante ad ogni avvio escono fuori messaggi che non mi spiego:
Activating swap.
Checking root file system...
fsck 1.27 (8-Mar-2002)
fsck.ext2: No such file or directory while trying to open /dev/ubd/0
/dev/ubd/0:
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>


fsck failed. Please repair manually and reboot. Please note
that the root file system is currently mounted read-only. To
remount it read-write:

# mount -n -o remount,rw /

CONTROL-D will exit from this shell and REBOOT the system.

(none):~#
Questo appare dopo un po' che è partito il boot sulla macchina virtuale.
Prima tutto andava liscio, ma adesso non capisco proprio cosa c'entri questo problema.
Descrivo passo passo cosa è successo:
quando funzionava tutto ho deciso di apt-gettare qualcosa, ma dopo qualche errore da parte mia mi si è impallato il sistema (virtuale, debian) così ho deciso di riscaricare l'immagine pronta di debian dal sito http://user-mode-linux.sourceforge.net/dl-sf.html e installarla di nuovo scompattandola. Purtroppo però mi è apparso l'errore che ho riportato quì sopra. Allora ho scaricato una nuova immagine, ma niente.. come prima. Ho provato anche con l'immagine di un'altra distribuzione, la slackware, ma mi da sempre lo stesso problema.
Infine ho pensato di ricompilare il kernel-uml, ma senza risultati.

Per favore, mi sapete dire da cosa potrà mai dipendere questo assurdo errore???
grazie.

EDIT:Nel frattempo ho provato a fare come dice quì (http://article.gmane.org/gmane.linux.uml.user/1905) ma poi alla fine si blocca e nella fase di boot dice:
Checking all file systems...
Checking all file systems...
fsck 1.27 (8-Mar-2002)
Setting kernel variables.
Mounting local filesystems...
nothing was mounted
Running 0dns-down to make sure resolv.conf is ok...done.
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces: done.
Cleaning: /tmp /var/lock /var/runfind: ./crond.reboot: Input/output error
find: ./crond.reboot: Input/output error
find: ./crond.reboot: Input/output error
.
Initializing random number generator... done.
Recovering nvi editor sessions... done.
INIT: Entering runlevel: 2
Starting system log daemon: syslogd.
Starting kernel log daemon: klogd.
Starting internet superserver: inetd.
Starting deferred execution scheduler: atd.
Starting periodic command scheduler: cron.
INIT: Id "1" respawning too fast: disabled for 5 minutes
INIT: Id "2" respawning too fast: disabled for 5 minutes
INIT: Id "0" respawning too fast: disabled for 5 minutes
INIT: Id "c" respawning too fast: disabled for 5 minutes
INIT: no more processes left in this runlevel

fbcyborg
31-05-2006, 23:15
Ho risolto creando un nuovo filesystem e buttando quello difettoso! :D

Adesso però sono vittima di un altro problema:
Ho installato sulla mia Gentoo Box un kernel UML ed ho creato un filesystem con Debian sarge all'interno.
Tutto funziona regolarmente, rete compresa, fino a quando non cerco di avviare kde (dopo averlo installato ovviamente).
Seguendo questa (http://user-mode-linux.sourceforge.net/xtut.html) guida ho provato entrambi i modi descritti anche dopo aver dato uno
xhost +
ma ogni volta che provo a lanciare kde con il comando startx ecco l'errore che appare:

DebianUML:~# startx
hostname: Unknown host
Using authority file /root/.Xauthority
Writing authority file /root/.Xauthority
xauth: (argv):1: bad display name "DebianUML:0" in "list" command
Using authority file /root/.Xauthority
xauth: (stdin):1: bad display name "DebianUML:0" in "add" command

X: warning; process set to priority -1 instead of requested priority 0
XFree86 Version 4.3.0.1 (Debian 4.3.0.dfsg.1-14sarge1 20050901212727 fjp@localho
st.localdomain)
Release Date: 15 August 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.6.8-16.0508-2 i686 [ELF]
Build Date: 02 September 2005

This version of XFree86 has been extensively modified by the Debian
Project, and is not supported by the XFree86 Project, Inc., in any
way. Bugs should be reported to the Debian Bug Tracking System; see
<URL: http://www.debian.org/Bugs/Reporting >.

We strongly encourage the use of the "reportbug" package and command
to ensure that bug reports contain as much useful information as
possible.

Before filing a bug report, you may want to consult the Debian X FAQ:
XHTML version: file:///usr/share/doc/xfree86-common/FAQ.xhtml
plain text version: file:///usr/share/doc/xfree86-common/FAQ.gz

Module Loader present
OS Kernel: Linux version 2.6.16.16-bb1 (root@FlaGentooNb) (gcc version 3.4.5 (Ge
ntoo 3.4.5-r1, ssp-3.4.5-1.0, pie-8.7.9)) #1 Wed May 17 17:43:53 CEST 2006
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.0.log", Time: Wed May 31 21:38:02 2006
(==) Using config file: "/etc/X11/XF86Config-4"

Fatal server error:
xf86OpenConsole: Cannot find a free VT


When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
This can be found in the log file "/var/log/XFree86.0.log".
Please report problems to [email protected].

XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0"
after 0 requests (0 known processed) with 0 events remaining.
xauth: (argv):1: bad display name "DebianUML:0" in "remove" command
Couldnt get a file descriptor referring to the consoleCome posso risolvere????
Come faccio a risolvere il problema del "Cannot find a free VT" ????

TnX :(