Need some help with vnet jails

ive been following this guide: https://www.cyberciti.biz/faq/configuring-freebsd-12-vnet-jail-using-bridgeepair-zfs/ however i am using 13.2, not 12. so maybe thats where the issue came from, although i did change the commands to 13.2 instead of 12.2. anyways. ive literally followed all of that guide, ive done all this:

Code:
# zfs send -R zroot/jails/fullbasejail@12.2-RELEASE-p2 | zfs receive zroot/jails/mail
# zfs send -R zroot/jails/fullbasejail@12.2-RELEASE-p2 | zfs receive zroot/jails/www
# zfs send -R zroot/jails/fullbasejail@12.2-RELEASE-p2 | zfs receive zroot/jails/db
## CLONE ##
# zfs clone zroot/jails/fullbasejail@12.2-RELEASE-p2 zroot/jails/vpn
and done everything else that the guy has gone through. however, when i try to start the jail, im just met with this:

Code:
root@host:/usr/home/tom # service jail start
Starting jails:demojail: created
jail: demojail: getpwnam root: No such file or directory
jail: demojail: /bin/sh /etc/rc: failed
demojail: removed
this is what comes up when i do ifconfig:

Code:
vtnet0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=4c07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,TXCSUM_IPV6>
        ether de:fe:a1:b9:0c:c3
        inet 10.1.0.134 netmask 0xffffff00 broadcast 10.1.0.255
        media: Ethernet autoselect (10Gbase-T <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
        inet 127.0.0.1 netmask 0xff000000
        groups: lo
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 58:9c:fc:00:56:26
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
        groups: bridge
        nd6 options=9<PERFORMNUD,IFDISABLED>
epair0b: flags=8862<BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 02:74:fe:1a:03:0b
        groups: epair
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
epair0a: flags=8862<BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 02:74:fe:1a:03:0a
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

here's my hosts rc.conf too if it helps:

Code:
ifconfig_vtnet0="inet 10.1.0.134 netmask 255.255.255.0"
defaultrouter="10.1.0.250"
sshd_enable="YES"
dumpdev="AUTO"
zfs_enable="YES"
jail_enable="YES"
jail_parallel_start="YES"
pf_enable="NO"
gateway_enable="YES"
apache24_enable="YES"
hostname="host"
kld_list="if_bridge if_epair"
ifconfig_em0="DHCP"
cloned_interfaces="bridge0 epair0a epair0b"
ifconfig_bridge0="addm re0 up"

Anyone have any ideas as to how I can get this working? Anything would be appreciated
 

jail: demojail: getpwnam root: No such file or directory

This seems to be the problem. Whatever 'getpwnam' is, it's not in $PATH.
 
getpwnam is a libc api not something you would find on your path, I'm not sure what the issue is offhand, maybe your passwd file or your password database is missing in your jail, or your jail path is wrong?
 
Back
Top