Markus Hochholdinger | 1 Jun 01:15 2005
Picon

[uml-user] network bridge between host and uml

Hi,

my problem was, that i don't want to make a routed network between host and 
uml. i want to that the uml is on the same network as the host (i'm trying to 
migrate a few real old hosts to uml-instances). i know that this solution is 
not as secure as a separate routed network. but for my purpose security is 
not as important because the admins (root) of the uml are the same people as 
the admins (root) for the host.

here is my solution for getting the network bridge between host and uml easy 
set up (only for distris supporting /etc/network/interfaces with ifup and 
ifdown scripts like debian woody or better). here is 
my /etc/network/interfaces extract from the host:
-------8<--------------------------------
#auto eth0
#iface eth0 inet static
#       address 192.168.1.20
#       netmask 255.255.255.0
#       network 192.168.1.0
#       broadcast 192.168.1.255
#       gateway 192.168.1.1

auto br0
iface br0 inet static
        address 192.168.1.20
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        bridge_ports eth0 tap0
(Continue reading)

Markus Hochholdinger | 1 Jun 01:46 2005
Picon

[uml-user] uml differences on the same root_fs (ssh, nslookup, pam, ..)

Hi,

i've a problem in my uml: booted with kernel linux-2.4.19-5 
(http://user-mode-linux.sourceforge.net/dl-sf.html) ssh connects to the uml 
work. nslookup work. (the working uml)
booted with my own compiled linux-2.6.11.11 ssh connects to the uml doesn't 
work (Connection closed by IP), nslookup segfaults. (the disfunction uml)

root_fs and command line options are always the same. the root_fs is a debian 
sarge builded with debootstrap. fs mounted after boot of linux-2.6.11.11, 
kernel network ability, lsmod:
# mount
/dev/ubda on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
# dmesg | grep -i net
NET: Registered protocol family 16
Netdevice 0 : TUN/TAP backend - 
NET: Registered protocol family 2
NET: Registered protocol family 15
NET: Registered protocol family 8
NET: Registered protocol family 20
NET: Registered protocol family 1
NET: Registered protocol family 10
# lsmod
Module                  Size  Used by
ipv6                  237504  8 
unix                   23124  10 
(Continue reading)

Markus Hochholdinger | 1 Jun 03:37 2005
Picon

Re: [uml-user] SSH problem

Hi,

Am Mittwoch, 1. Juni 2005 00:50 schrieb Jeff Dike:
> On Tue, May 31, 2005 at 10:33:09PM +0200, Jean-Michel Caricand wrote:
> > I rename /lib/tls to /lib/tls.disabled and reboot my computer but ssh
> > connection is not  possible. Strange !
> I bet it's a mismatch between the pty devices available in the UML and
> the ones that sshd expects to open.
> strace sshd and look for open failures.

have you tried the programm "nslookup" on the machine sshd is not working? 
perhaps you have the same problem as i have?

--

-- 
greetings

eMHa
Jean-Michel Caricand | 1 Jun 08:50 2005
Picon

Re: [uml-user] SSH problem

Jeff Dike a écrit :

>On Tue, May 31, 2005 at 10:33:09PM +0200, Jean-Michel Caricand wrote:
>  
>
>>I rename /lib/tls to /lib/tls.disabled and reboot my computer but ssh 
>>connection is not  possible. Strange !
>>    
>>
>
>I bet it's a mismatch between the pty devices available in the UML and
>the ones that sshd expects to open.
>
>strace sshd and look for open failures.
>
>				Jeff
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by Yahoo.
>Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
>Search APIs Find out how you can build Yahoo! directly into your own
>Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
>_______________________________________________
>User-mode-linux-user mailing list
>User-mode-linux-user <at> lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
>
>  
>
(Continue reading)

Jeff Dike | 1 Jun 15:32 2005

Re: [uml-user] SSH problem

On Wed, Jun 01, 2005 at 08:50:23AM +0200, Jean-Michel Caricand wrote:
> I send to you strace output.

Did you notice that I said to strace sshd?

				Jeff

-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
Blaisorblade | 1 Jun 17:22 2005
Picon

Re: [uml-user] SSH problem

On Wednesday 01 June 2005 08:50, Jean-Michel Caricand wrote:
> Jeff Dike a écrit :
> >On Tue, May 31, 2005 at 10:33:09PM +0200, Jean-Michel Caricand wrote:

> # strace ssh jmcaricand <at> 192.168.3.18
On a completely different problem:
Is it correct that it looks there for libraries?
> open("/home/jm/ACE_wrappers/lib/tls/i686/mmx/cmov/libresolv.so.2",
> O_RDONLY) = -1 ENOENT (No such file or directory)

And surely, it isn't correct that it looks in the current directory for 
libraries... correct your LD_LIBRARY_PATH setting (note that two consecutive 
colons are interpreted in this way, too).
> open("tls/i686/mmx/cmov/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such
> file or directory)

> ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
> ...}) = 0
> open("/home/jm/.ssh/config", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such
> file or directory)
> open("/etc/ssh/ssh_config", O_RDONLY|O_LARGEFILE) = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=1184, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0xb7fe8000
> read(3, "#\t$OpenBSD: ssh_config,v 1.19 20"..., 4096) = 1184
> read(3, "", 4096)                       = 0
> close(3)                                = 0
> munmap(0xb7fe8000, 4096)                = 0
> getpid()                                = 6250
> getpid()                                = 6250
(Continue reading)

Blaisorblade | 1 Jun 17:20 2005
Picon

Re: [uml-user] uml differences on the same root_fs (ssh, nslookup, pam, ..)

On Wednesday 01 June 2005 01:46, Markus Hochholdinger wrote:
> Hi,
>
> i've a problem in my uml: booted with kernel linux-2.4.19-5
> (http://user-mode-linux.sourceforge.net/dl-sf.html) ssh connects to the uml
> work. nslookup work. (the working uml)
> booted with my own compiled linux-2.6.11.11 ssh connects to the uml doesn't
> work (Connection closed by IP), nslookup segfaults. (the disfunction uml)
Ok, before talking to us rename /lib/tls to /lib/tls.away inside the root_fs. 
I've read a lot of the message and this explains every strange syntom you are 
describing. With a 2.4 kernel the ld-linux.so.2 dynamic loader won't try to 
use /lib/tls libraries, which require a 2.6 kernel supporting NPTL (and UML 
doesn't).

Also, search the list for dpkg-divert to find a way to avoid problems when 
upgrading libc.

Bye
--

-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it
(Continue reading)

Blaisorblade | 1 Jun 17:56 2005
Picon

Re: [uml-user] uml differences on the same root_fs (ssh, nslookup, pam, ..)

On Wednesday 01 June 2005 17:33, Markus Hochholdinger wrote:
> Am Mittwoch, 1. Juni 2005 17:20 schrieben Sie:
> > On Wednesday 01 June 2005 01:46, Markus Hochholdinger wrote:
> > > i've a problem in my uml: booted with kernel linux-2.4.19-5
> > > (http://user-mode-linux.sourceforge.net/dl-sf.html) ssh connects to the
> > > uml work. nslookup work. (the working uml)
> > > booted with my own compiled linux-2.6.11.11 ssh connects to the uml
> > > doesn't work (Connection closed by IP), nslookup segfaults. (the
> > > disfunction uml)
> >
> > Ok, before talking to us rename /lib/tls to /lib/tls.away inside the
> > root_fs. I've read a lot of the message and this explains every strange
> > syntom you are describing. With a 2.4 kernel the ld-linux.so.2 dynamic
> > loader won't try to use /lib/tls libraries, which require a 2.6 kernel
> > supporting NPTL (and UML doesn't).
>
> Many thanks :-). This solves the problems. But what does it mean? Can't i
> use tls anymore in uml?

> Or is this only a kernel feature which wasn't there  
> in 2.4 which i can't use with 2.6?
Exactly. 2.6 kernels can use the NPTL version of glibc (NPTL is a replacement 
for LinuxThreads, a thread library; however, a different version of libc is 
used when having NPTL support).

> Are there other programs which 
> need /lib/tls ?
Well, everybody linking to libc will link to /lib/tls on a 2.6 kernel 
normally. The case where there is a real performance difference is with 
heavily threaded applications...
(Continue reading)

Jean-Michel Caricand | 2 Jun 00:23 2005
Picon

Re: [uml-user] SSH problem

Blaisorblade a écrit :

>On Wednesday 01 June 2005 08:50, Jean-Michel Caricand wrote:
>  
>
>>Jeff Dike a écrit :
>>    
>>
>>>On Tue, May 31, 2005 at 10:33:09PM +0200, Jean-Michel Caricand wrote:
>>>      
>>>
>
>  
>
>># strace ssh jmcaricand <at> 192.168.3.18
>>    
>>
>On a completely different problem:
>Is it correct that it looks there for libraries?
>  
>
>>open("/home/jm/ACE_wrappers/lib/tls/i686/mmx/cmov/libresolv.so.2",
>>O_RDONLY) = -1 ENOENT (No such file or directory)
>>    
>>
>
>And surely, it isn't correct that it looks in the current directory for 
>libraries... correct your LD_LIBRARY_PATH setting (note that two consecutive 
>colons are interpreted in this way, too).
>  
(Continue reading)

Dinesh Ahuja | 2 Jun 06:05 2005
Picon

[uml-user] Problem: no more processes left in this runlevel

Hi All,

I am working on Red Hat linux 8.0 and installed an
build the UML kernel, but facing below problem while
booting up UML Kernel.

INIT: Id "c1" respawning too 

fast: disabled for 5 minutes
INIT: Id "c2" respawning too fast: disabled for 5
minutes
INIT: no more processes left in this runlevel

As suggested on some sites, I have modified my inittab
file in guest file system.
**********Original*************
#xdm is now a separate service
x:5:respawn:/etc/X11/prefdm -nodaemon
0:2345:respawn:/sbin/mingetty ttys/0
1:2345:respawn:/sbin/mingetty ttys/1
2:2345:respawn:/sbin/mingetty ttys/2
c:2345:respawn:/sbin/mingetty serial/0

*********Modified*************
# Run xdm in runlevel 5
# xdm is now a separate service
#x:5:respawn:/etc/X11/prefdm -nodaemon
c1:2345:respawn:/sbin/mingetty vc/1
c2:2345:respawn:/sbin/mingetty vc/2
#2:2345:respawn:/sbin/mingetty ttys/2
(Continue reading)


Gmane