Problem mit jail nach reboot

suicide

Trucker Horst
Hi,
Hab mir ein jail gebaut, strengstens nach manpage.

Wenn ich es nun starte funktioniert alles bestens, ich richte es also fertig ein und starte es mit der erweiterung /etc/rc.
Auch das funktioniert bestens, ich kann mich im LAN via ssh auf das jail connecten, eiloggen usw.

Wenn ich nun aber meinen rechner reboote und danach das jail nochmal starte (ja, auch /usr/jail/proc ist gemountet) und dann aus dem LAN heraus den jail - sshd connecte, und mich als user anmelde kommt nach dem login folgendes:

Server refused to allocate pty

Das war's dann, bekomme keine shell und somit komm ich auch nicht auf's jail :(

ohne /etc/rc kann ich aber lokal noch auf das jail.

Weiß jemand woran das liegen könnte und hat evtl ne Lösung?

Danke schonmal im Vorraus.
 
Da ich bis jetzt keine Antworten erhalten habe, dachte ich ich paste mal den output nach dem starten des jails, die alias IP Addresse für das jail ist natürlich gesetzt worden.

Hier der Output:

bi0nic# mount -t procfs proc /usr/jail/proc/
bi0nic# jail /usr/jail/ playground 192.168.11.100 /bin/sh /etc/rc
Loading configuration files.
Entropy harvesting:sysctl: kern.random.sys.harvest.interrupt: Operation not perm
itted
interruptssysctl: kern.random.sys.harvest.ethernet: Operation not permitted
ethernetsysctl: kern.random.sys.harvest.point_to_point: Operation not permitted
point_to_point.
ps: bad namelist
ps: bad namelist
Fast boot: skipping disk checks.
mount: /: unknown special file or file system
Additional routing options:.
hw.bus.devctl_disable: 1 -> 1
Mounting NFS file systems:.
Starting syslogd.
syslogd: child pid 33871 exited with return code 1
ELF ldconfig path: /usr/lib /usr/lib/compat /usr/local/lib
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout
Starting local daemons:.
Updating motd.
Starting sshd.
ps: bad namelist
Initial i386 initialization:.
Additional ABI support:.
Starting cron.
Local package initialization:.
Additional TCP options:.
ps: bad namelist
Starting background file system checks in 60 seconds.

Wed Oct 1 23:33:01 CEST 2003
bi0nic#

vielleicht hilft das ja irgendwie weiter
 
4.x oder 5.x?
Aus dem hohlen Bauch tippe ich jetzt mal auf 5.x.
Hast Du auch dvfs gemountet?
Code:
mount_devfs devfs ${Jail_root}/dev

Sollte es 4.x sein, so kann das ein Problem mit pty sein.
Was steht denn in /var/log/messages? In etwa sowas:
Code:
March 15 23:44:34 jail sshd[565]: error: openpty: No
such file or directory
March 15 23:44:34 jail sshd[566]: error:
session_pty_req: session 4 alloc failed

Dies könnte dann für einen bug in pty sprechen.
Folgendes ausprobieren:

Kernel:
Code:
maxusers        512
pseudo-device   pty     256             # Pseudo-ttys (telnet etc)

Und für jedes pty unter dev des base system und in der Jail:
Code:
cd /dev
for i in 1 2 3 4 5 6 7 ; do sh MAKEDEV pty$i ; done

Ich glaube es gab unter 4.4 Probleme damit und unter 4.8, wenn ich nicht irre. Evtl. würde dann auch ein update des System weiterhelfen, oder mal die PRs durchforsten.
 
Zurück
Oben