Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
UML: Login per uml_mconsole nicht möglich
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
knabinger
n00b
n00b


Joined: 21 Apr 2005
Posts: 3

PostPosted: Thu Apr 21, 2005 9:08 am    Post subject: UML: Login per uml_mconsole nicht möglich Reply with quote

Hallo allerseits,
ich bin nun aufgrund eines Tipps von einem Bekannten seit ca. 6 Wochen von Suse auf Gentoo umgestiegen, und ich muss sagen ich bin begeistert 8O
Die Installation hat ja aufgrund der hervorragenden Installationsanleitung problemlos geklappt, ein großes Dankeschön an dieser Stelle an die Autoren :D

Nun möchte ich gern auf meinem System ein UML-Linux einbauen, auf dem dann nur die Firewall laufen soll. Ich habe mich dabei an die offizielle Anleitung auf gentoo.org (http://www.gentoo.org/doc/en/uml.xml) und auf http://www.cargal.org/drupal/node.php?id=325 gehalten . Das ging dann auch bis zum 3. Kapitel (Networking) alles mehr oder weniger gut. Auch das UML-Sytem scheint fehlerfrei zu starten:

Code:

homeserver root # linux ubd0=root_fs_slack8.1 ubd1=swap_fs umid=Slack
Checking for the skas3 patch in the host...not found
Checking for /proc/mm...not found
Checking PROT_EXEC mmap in /tmp...OK
tracing thread pid = 9417
Linux version 2.6.10 (root@homeserver) (gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)) #1 SMP Wed Apr 20 21:43:10 CEST 2005
Built 1 zonelists
Kernel command line: ubd0=root_fs_slack8.1 ubd1=swap_fs root=98:0
PID hash table entries: 256 (order: 8, 4096 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 28320k available
Mount-cache hash table entries: 512 (order: 0, 4096 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 syscall emulation patch for ptrace...missing
Checking that host ptys support output SIGIO...Yes
Checking that host ptys support SIGIO on close...No, enabling workaround
Checking for /dev/anon on the host...Not available (open failed with errno 2)
Brought up 1 CPUs
NET: Registered protocol family 16
mconsole (version 2) initialized on /root/.uml/Slack/mconsole
audit: initializing netlink socket (disabled)
audit(300.250:0): initialized
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 2048)
ip_conntrack version 2.1 (221 buckets, 1768 max) - 304 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>.  http://snowman.net/projects/ipt_recent/
arp_tables: (C) 2002 David S. Miller
NET: Registered protocol family 1
NET: Registered protocol family 17
Initializing stdio console driver

homeserver root #




1. Problem:
wenn ich mich dann jedoch per uml_mconsole ins UML-System einloggen will kommt folgende Fehlermeldung

Code:
homeserver root # uml_mconsole Slack
Warning: couldn't stat file: /root/.uml/Slack/mconsole - No such file or directory
Warning: couldn't stat file: /tmp/uml/Slack/mconsole - No such file or directory
Warning: couldn't stat file: Slack - No such file or directory
([None])


ich hab mal nachgeschaut, das Verzeichnis /root/.uml gibt es, es ist aber leer; /tmp/uml exitiert überhaupt nicht :(
Eigentlich sollte doch beim UML-Start in diesem Falle /root/.uml/Slack/mconsole angelegt werden, oder??? Woran könnte das liegen dass er das nicht tut?

2. Problem:

Als relativer Newbie in Sachen Linux hab ich ein bissel Probleme, den folgenden Satz aus der offiziellen UML-Anleitung zu interpretieren:

Quote:
User-mode linux uses xterms for the virtual consoles that are run at boot time, so you need to make sure that the terminal from which you run user-mode linux has $DISPLAY properly set (along with proper xhost/xauth permissions)


Kann mir das einer bitte mal näher erklären, wo hier $DISPLAY gesetzt werden muss? Liegt Problem Nr.1 eventuell an Problem Nr. 2????? :roll:

Vielen Dank schonmal für Eure Hilfe
knabinger

Achja, Kernel verwende ich folgende:
Host 2.6.10-hardened-r3
UML vanilla 2.6.10-r1
Back to top
View user's profile Send private message
TheSmallOne
Guru
Guru


Joined: 22 Jan 2005
Posts: 467
Location: Germany

PostPosted: Thu Apr 21, 2005 9:35 am    Post subject: Re: UML: Login per uml_mconsole nicht möglich Reply with quote

knabinger wrote:

ich hab mal nachgeschaut, das Verzeichnis /root/.uml gibt es, es ist aber leer; /tmp/uml exitiert überhaupt nicht :(
Eigentlich sollte doch beim UML-Start in diesem Falle /root/.uml/Slack/mconsole angelegt werden, oder??? Woran könnte das liegen dass er das nicht tut?


Wie diese Zeile aus deiner Ausgabe zeigt tut er es auch:
Code:
mconsole (version 2) initialized on /root/.uml/Slack/mconsole


Es kommt auch keine Fehlermeldung, also hat die Datei da zu sein. Wenn sie weg ist, dann bedeuted dies, dass auch die UML nicht mehr am Laufen ist...

Quote:
Kann mir das einer bitte mal näher erklären, wo hier $DISPLAY gesetzt werden muss? Liegt Problem Nr.1 eventuell an Problem Nr. 2????? :roll:

In der Shell, in der du die UML startest soll die Variable gesetzt sein... hat aber mit deinem anderen Problem eigentlich nicht zu tun.
Back to top
View user's profile Send private message
knabinger
n00b
n00b


Joined: 21 Apr 2005
Posts: 3

PostPosted: Thu Apr 21, 2005 10:32 am    Post subject: Reply with quote

danke erstmal für deine antwort :)

Quote:
Es kommt auch keine Fehlermeldung, also hat die Datei da zu sein.


das wundert mich ja auch, warum das verzeichnis leer ist.
wenn ich aufn anderen putty "top" beobachte, tauchen auch während des starts kurz mehrere prozesse mit namen "linux" auf, die dann kurz danach aber wieder verschwinden...ist es möglich, den UML-Kernel mit ner Log/Verbose-Option zu starten, um mal ein paar mehr Informationen zu erhalten? Weil es ist schon merkwürdig, warum sich die UML einfach so mirnichtsdirnichts beendet....

PS: manchmal erhalte ich auch beim Starten der UML folgendes (das tritt aber nur hin und wieder auf und ist IMHO nicht reproduzierbar, aber vielleicht hilft es):


Code:
homeserver root # linux ubd0=root_fs_slack8.1 ubd1=swap_fs umid=Slack
Checking for the skas3 patch in the host...not found
Checking for /proc/mm...not found
Checking PROT_EXEC mmap in /tmp...OK
tracing thread pid = 28969
Linux version 2.6.10 (root@homeserver) (gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)) #1 SMP Wed Apr 20 21:43:10 CEST 2005
Built 1 zonelists
Kernel command line: ubd0=root_fs_slack8.1 ubd1=swap_fs root=98:0
PID hash table entries: 256 (order: 8, 4096 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 28320k available
Mount-cache hash table entries: 512 (order: 0, 4096 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 syscall emulation patch for ptrace...missing
Checking that host ptys support output SIGIO...Yes
Checking that host ptys support SIGIO on close...No, enabling workaround
Checking for /dev/anon on the host...Not available (open failed with errno 2)
Brought up 1 CPUs
NET: Registered protocol family 16
mconsole (version 2) initialized on /root/.uml/Slack/mconsole
audit: initializing netlink socket (disabled)
audit(300.240:0): initialized
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Kernel panic - not syncing: read of switch_pipe failed, errno = 9
 <6>Stopping all CPUs...done

EIP: 0073:[<a01f38b7>] CPU: 0 Not tainted ESP: 007b:a09186ac EFLAGS: 00000246
    Not tainted
EAX: 00000000 EBX: 00000001 ECX: a0918754 EDX: a09186d4
ESI: 00000008 EDI: 00000000 EBP: a09186bc DS: 007b ES: 007b
Call Trace:
 [<a004302d>] notifier_call_chain+0x2d/0x50
 [<a014b896>] bust_spinlocks+0x46/0x50
 [<a00310d6>] panic+0x76/0x120
 [<a0017940>] copy_from_user_proc+0x0/0x50
 [<a001e803>] switch_to_tt+0x203/0x240
 [<a02361a5>] schedule+0x2f5/0x560
 [<a003448d>] do_exit+0x21d/0x400
 [<a00127e3>] um_execve+0x23/0x60
 [<a0045fea>] ____call_usermodehelper+0x9a/0xe0
 [<a0045f50>] ____call_usermodehelper+0x0/0xe0
 [<a0017028>] run_kernel_thread+0x78/0x80
 [<a0045f50>] ____call_usermodehelper+0x0/0xe0
 [<a0016ff0>] run_kernel_thread+0x40/0x80
 [<a0045f50>] ____call_usermodehelper+0x0/0xe0
 [<a001e9e8>] new_thread_handler+0xe8/0x110
 [<a0045f50>] ____call_usermodehelper+0x0/0xe0
 [<a01f3838>] __restore+0x0/0x8
 [<a01f38b7>] __sigprocmask+0x37/0xa0

 sleeping process 29163 got unexpected signal : 11


Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum