UML (User Mode Linux) Fehlermeldung->readonly

FreeBSD, Gentoo, openSUSE, CentOS, Ubuntu, Debian
georgkroeber
Posts: 8
Joined: 2002-10-20 17:45
Location: Bad Kissingen
 

UML (User Mode Linux) Fehlermeldung->readonly

Post by georgkroeber »

Hallo,

ich habe mich nun in UML eingelesen und dies auch gleich ausprobiert,
leider kann ich wenn ich ein Filesystem boote dann nichts verändern, da dies im readonly modus arbeitet, hat jemand eine Lösung für mich parat?

MfG

Georg
daniel_p
Posts: 34
Joined: 2003-11-15 16:24
 

Re: UML (User Mode Linux) Fehlermeldung->readonly

Post by daniel_p »

Hi,

vielleicht. Aber erzähl doch vielleicht auch ein bischen mehr, damit dir geholfen weden kann. OS? Kernel? DateiRechte korrekt?
georgkroeber
Posts: 8
Joined: 2002-10-20 17:45
Location: Bad Kissingen
 

Re: UML (User Mode Linux) Fehlermeldung->readonly

Post by georgkroeber »

daniel_p wrote:Hi,

vielleicht. Aber erzähl doch vielleicht auch ein bischen mehr, damit dir geholfen weden kann. OS? Kernel? DateiRechte korrekt?
Hallo,

schon mal vielen Dank für die Hilfe,
hier sind nun ein Paar Infos.

Der Server wird mit der stable-Version von Debian betrieben.
Als UML habe ich einfach die UML mit apt-get install user-mode-linux installiert.

Die folgende Meldung erscheint, wenn ich z.B. das Debian-Filesystem starte:

Code: Select all

tracing thread pid = 15703
Linux version 2.4.18-17um (mdz@mizar) (gcc version 2.95.4 20011002 (Debian prerelease)) #1 Sat Apr 13 18:16:55 EDT 2002
On node 0 totalpages: 8192
zone(0): 0 pages.
zone(1): 8192 pages.
zone(2): 0 pages.
Kernel command line: ubd0=./Debian-3.0r0.ext2 devfs=nomount root=/dev/ubd0
Calibrating delay loop... 2760.80 BogoMIPS
Memory: 32244k available
Dentry-cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode-cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
Checking for host processor cmov support...Yes
Checking for host processor xmm support...No
Checking that ptrace can change system call numbers...OK
Checking that host ptys support output SIGIO...Yes
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Diskquotas version dquot_6.4.0 initialized
Journalled Block Device driver loaded
devfs: v1.10 (20020120) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
pty: 256 Unix98 ptys configured
block: 64 slots per queue, batch=16
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 2048)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Initializing stdio console driver
Initializing software serial port version 1
mconsole (version 1) initialized on /root/.uml/MuZsr1/mconsole
[b]VFS: Mounted root (ext2 filesystem) readonly.[/b]
INIT: version 2.84 booting
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):~#
olaf.dietsche
Posts: 401
Joined: 2002-12-19 02:06
Location: Siegburg
 

Re: UML (User Mode Linux) Fehlermeldung->readonly

Post by olaf.dietsche »

Das sieht so aus, als ob du kein rootfs konfiguriert hast. Vielleicht hilft dir ein Blick in's HOWTO http://user-mode-linux.sourceforge.net/ ... WTO-3.html
sorc
Posts: 10
Joined: 2003-03-06 19:15
 

Re: UML (User Mode Linux) Fehlermeldung->readonly

Post by sorc »

Hi,
habe auch mit apt-get installiert und der Aufruf
"linux ubd0=Debian-3.0r0.ext2" liefert obiges Problem. Ist ein rootfs direkt von der Seite... :(
Tips? Wie mache ich das sonst selber?
wirsing
Posts: 604
Joined: 2002-11-20 21:32
Location: Vaihingen und Karlsruhe
 

Re: UML (User Mode Linux) Fehlermeldung->readonly

Post by wirsing »

Selber machen:
- mit dd Datei anlegen, beachte den Parameter seek
- mit mkfs -t <fs> <Datei> ein Dateisystem darauf erzeugen
- mit mount -oloop mounten
- mit debootstrap ein Debian aufspielen
Steht auch in diversen Howtos.

Aber irgendwie glaube ich, dass das Dateisystem nicht dem richtigen Benutzer (=der, unter dem die virtuelle Maschine läuft) gehört.

Wenn du willst, kann ich dir auch mal mein Debian-root_fs+Kernel 2.6.3-um geben. (PN)
sorc
Posts: 10
Joined: 2003-03-06 19:15
 

Re: UML (User Mode Linux) Fehlermeldung->readonly

Post by sorc »

Hi,
ich habe es jetzt so wie es in
http://www.sauter-online.de/files/howto ... debian.php
steht gemacht, wobei ich jedoch kein tuntap habe. Habe nur verwendet, wir man das Dateisystem erstellt und woody genommen. Nun habe ich diese Ausgabe beim Aufruf mit "linux con0=fd:0,fd:1 con=pty":

Code: Select all

tracing thread pid = 10346
Linux version 2.4.18-17um (mdz@mizar) (gcc version 2.95.4 20011002 (Debian prerelease)) #1 Sat Apr 13 18:16:55 EDT 2002
On node 0 totalpages: 8192
zone(0): 0 pages.
zone(1): 8192 pages.
zone(2): 0 pages.
Kernel command line: con0=fd:0,fd:1 con=pty root=/dev/ubd0
Calibrating delay loop... 1632.98 BogoMIPS
Memory: 32244k available
Dentry-cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode-cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
Checking for host processor cmov support...Yes
Checking for host processor xmm support...No
Checking that ptrace can change system call numbers...OK
Checking that host ptys support output SIGIO...Yes
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Diskquotas version dquot_6.4.0 initialized
Journalled Block Device driver loaded
devfs: v1.10 (20020120) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
pty: 256 Unix98 ptys configured
block: 64 slots per queue, batch=16
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 2048)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Initializing stdio console driver
Initializing software serial port version 1
mconsole (version 1) initialized on /home/test/.uml/tHLIRY/mconsole
VFS: Mounted root (ext2 filesystem) readonly.
INIT: version 2.84 booting
Loading /etc/console/boottime.kmap.gz
Couldnt get a file descriptor referring to the console
Activating swap.
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
System time was Fri Mar  5 13:37:48 UTC 2004.
Setting the System Clock using the Hardware Clock as reference...
Virtual console 1 assigned device '/dev/ptyp0'
hwclock is unable to get I/O port access:  the iopl(3) call failed.
System Clock set. System local time is now Fri Mar  5 13:37:48 UTC 2004.
Calculating module dependencies... done.
Loading modules: 
Checking all file systems...
fsck 1.27 (8-Mar-2002)
Setting kernel variables.
Loading the saved-state of the serial devices... 
Mounting local filesystems...
nothing was mounted
Running 0dns-down to make sure resolv.conf is ok...done.
Cleaning: /etc/network/ifstate.
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces: SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
eth0: ERROR while getting interface flags: No such device
Ignoring unknown interface eth0:1=eth0:1.
done.

Setting the System Clock using the Hardware Clock as reference...
hwclock is unable to get I/O port access:  the iopl(3) call failed.
System Clock set. Local time: Fri Mar  5 14:37:49 CET 2004

Cleaning: /tmp /var/lock /var/run.
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.

tja und dann passiert nichts mehr... :(
Habe jetzt auch schon einige Anleitungen gelesen, aber in jeder stand etwas anderes. :(

EDIT: Mein Hauptsystem ist Debian woody mit 2.4.20 Kernel ohne irgendwelche Patches (kein tuntap). Welches "System" das UML hat, ist mir fast egal. :)
wirsing
Posts: 604
Joined: 2002-11-20 21:32
Location: Vaihingen und Karlsruhe
 

Re: UML (User Mode Linux) Fehlermeldung->readonly

Post by wirsing »

Code: Select all

Virtual console 1 assigned device '/dev/ptyp0'
Dann solltest du als nächstes ein Terminalprogramm auf /dev/ptyp0 ansetzen und dich einloggen.
http://user-mode-linux.sourceforge.net/input.html
sorc
Posts: 10
Joined: 2003-03-06 19:15
 

Re: UML (User Mode Linux) Fehlermeldung->readonly

Post by sorc »

Ah, es lebe con1=pts und dann mit screen aufrufen. dann klappt es auch. jetzt teste ich mal rum. :)