Host is 13.2-RELEASE-p4
I have created a 32-bit jail with FreeBSD-13.2-RELEASE-i386. Network seems to work (ping'ing IP addresses and such), but host name lookup doesn't. In my other amd64 jails it works flawlessly.
Here is what I did to create the base:
Then I copied resolve.conf from my host into the jail:
Then I updated the jail.conf as follows:
Note: I am using pf(4) to route traffic from a loopback device
Then I started the jail and entered it:
Commands like
I have another jail that is setup in exactly the same way. The only difference is that that jail uses standard amd64 FreeBSD, whereas my new jail uses i386 FreeBSD.
By the way: My original goal is to start and old Win32 application using the 32-bit version of emulators/wine.
Any ideas?
I have created a 32-bit jail with FreeBSD-13.2-RELEASE-i386. Network seems to work (ping'ing IP addresses and such), but host name lookup doesn't. In my other amd64 jails it works flawlessly.
Here is what I did to create the base:
Code:
# mkdir /jail/bsd-wine32
# cd /jail/bsd-wine32
# fetch http://ftp.freebsd.org/pub/FreeBSD/releases/i386/i386/13.2-RELEASE/base.txz
# tar xpf base.txz
Then I copied resolve.conf from my host into the jail:
Code:
cp /etc/resolve.conf /jail/bsd-wine32/etc/
Then I updated the jail.conf as follows:
Code:
...
bsd-wine32 {
host.hostname="bsd-wine32.schattenwelt.org";
ip4.addr="lo1|10.10.0.7/24";
path="/jail/bsd-wine32";
mount.devfs;
devfs_ruleset=10;
allow.raw_sockets=1;
exec.clean;
exec.start="sh /etc/rc";
exec.stop="sh /etc/rc.shutdown";
mount.fstab="/jail/bsd-wine32/etc/fstab.jail";
}
Note: I am using pf(4) to route traffic from a loopback device
lo1
to my host's network.Then I started the jail and entered it:
Code:
# service jail onestart bsd-wine32
# jexec bsd-wine32 sh
Commands like
pkg update
inside the jail all give a host-lookup error, although resolve.conf is there and has the correct content. Ping'ing explicit IP-addresses works, though.I have another jail that is setup in exactly the same way. The only difference is that that jail uses standard amd64 FreeBSD, whereas my new jail uses i386 FreeBSD.
By the way: My original goal is to start and old Win32 application using the 32-bit version of emulators/wine.
Any ideas?