Date: Mon, 09 Jan 2023 18:28:30 +0100 From: Mathias Picker <Mathias.Picker@virtual-earth.de> To: freebsd-current@freebsd.org Subject: Trying to switch to 14-CURRENT for linuxulator netlink, now sudo hanging in sbwait in linux jail Message-ID: <86eds3sdy3.fsf@virtual-earth.de>
next in thread | raw e-mail | index | archive | help
Hi all, I was not sure if I should go with this to -current or -emulation,=20 I threw a coin and landed here :) Tell me if I need to take this to -emulation. I=E2=80=99m testing a few linux triplestore in a linux jail, and used 13.1= =20 which worked fine most of the time. Now one of the stores shows dropped connections with many clients,=20 and as I can see logs of netlink errors in the logs, I thought I=E2=80=99d= =20 try -CURRENT. I haven=E2=80=99t been on current for years, and have to say, beinstall.sh= =20 is a very nice tool and a comfortable way to do this, especially=20 if one is on a remote server. With bectl activate -t this feels=20 quite safe. So, thanks to whoever did this! Sadly, my linux jail (Ubuntu 16.04.7) now shows an irritating=20 behaviour, some programs seem to hang indefinitely waiting for=20 name resolution: Inside the jail: Working version with ping root@bayerlinux:/home/mathiasp/triplestore-analysis/tmp# ping=20 google.de WARNING: setsockopt(ICMP_FILTER): Protocol not available PING google.de (172.217.16.131) 56(84) bytes of data. Outside: root@kap:/usr/home/mathiasp # tcpdump -ni bayerlinux_b tcpdump: verbose output suppressed, use -v or -vv for full=20 protocol decode listening on bayerlinux_b, link-type EN10MB (Ethernet), capture=20 size 262144 bytes 20:17:10.852625 IP 192.168.100.10.13809 > 192.168.100.1.53: 3191+=20 [1au] A? google.de. (38) 20:17:10.852668 IP 192.168.100.1.53 > 192.168.100.10.13809: 3191=20 1/0/1 A 172.217.16.131 (54) Non-working with wget (same for curl and others) Inside the jail: root@bayerlinux:/home/mathiasp/triplestore-analysis/tmp# wget=20 http://google.de/ --2023-01-09 19:21:58-- http://google.de/ Resolving google.de (google.de)...=20 (waitet for max 5 minutes, no change) Outside the jail: root@kap:/usr/home/mathiasp # tcpdump -ni bayerlinux_b tcpdump: verbose output suppressed, use -v or -vv for full=20 protocol decode listening on bayerlinux_b, link-type EN10MB (Ethernet), capture=20 size 262144 bytes 20:17:02.738570 IP 192.168.100.10.60967 > 192.168.100.1.53: 30219+=20 A? google.de. (27) 20:17:02.738893 IP 192.168.100.1.53 > 192.168.100.10.60967: 30219=20 1/0/0 A 172.217.16.131 (43) So, this tcpdump looks pretty much as if both got answers from=20 unbound. Why is wget (and host, and curl, and sudo) not =E2=80=9Cgetting=E2=80=9D th= is=20 answer? Any ideas where to look or questions about my setup welcome! This is on a current from around 4p.m. CET: FreeBSD kap.virtual-earth.de 14.0-CURRENT FreeBSD 14.0-CURRENT #0=20 main-n259979-9408f36627b7: Mon Jan 9 16:36:51 CET 2023=20 root@kap.virtual-earth.de:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG= =20 amd64 /etc/jail.conf looks like this: $iface=3D"igb0"; $j=3D"/jail"; path=3D"/jails/$name"; mount.devfs; exec.clean; exec.start=3D"sh /etc/rc"; exec.stop=3D"sh /etc/rc.shutdown"; exec.prestart=3D"logger starting jail $name ..."; exec.poststart=3D"logger jail $name has started"; exec.prestop=3D"logger shutting down jail $name"; exec.poststop=3D"logger jail $name has shut down"; # generic hostnames host.hostname=3D"$name.kap.local"; # vnet jails vnet; vnet.interface=3D"${name}_j"; exec.prestart+=3D"/usr/local/sbin/jailtobridge $name jailbridge0"; exec.poststop+=3D"/sbin/ifconfig jailbridge0 deletem=20 ${name}_b;/sbin/ifconfig ${name}_b destroy"; exec.consolelog=3D"/var/log/jails/$name-console.log"; # virtual earth vnet jails # linux jails # needs FreeBSD ifconfig and route from /rescue to work! bayerlinux { mount.fstab=3D"/jails/fstabs/bayerlinux"; allow.mount; allow.raw_sockets; allow.read_msgbuf; allow.socket_af; sysvmsg; sysvsem; sysvshm; #mount.devfs; exec.start =3D "/etc/init.d/rc 3"; exec.stop =3D "/etc/init.d/rc 0"; persist; } Thanks, Mathias --=20 Mathias Picker=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 Gesch=C3=A4ftsf=C3=BChrer Mathias.Picker@virtual-earth.de virtual earth Gesellschaft f=C3=BCr Wissens re/pr=C3=A4 sentation mbH http://www.virtual-earth.de/ HRB126870 support@virtual-earth.de Westendstr. 142 089 / 1250 3943=20=20=20=20=20=20=20=20=20=20=20=20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86eds3sdy3.fsf>