cbsd: apt: Command not found ; dkpg command not found ; ip command not found...

FreeBSD version ( uname -a ): 13

CBSD version ( cbsd version ):  13

marietto@marietto:/usr/home/marietto $ su
Password:

root@marietto:/usr/home/marietto # cbsd jcreate jname=deb jprofile=debian_bullseye allow_raw_socket=1 vnet=1

no base dir in: /usr/jails/basejail/base_amd64_amd64_13.0
Select base sources:
 0 .. CANCEL
 a .. build
 b .. extract
 c .. populate
 d .. repo

select_getbase: no valid source
No base data on: /usr/jails/basejail/base_amd64_amd64_13.0

root@marietto:/usr/home/marietto # cbsd jcreate jname=deb jprofile=debian_bullseye allow_raw_socket=1 vnet=1

no base dir in: /usr/jails/basejail/base_amd64_amd64_13.0
Select base sources:
 0 .. CANCEL
 a .. build

nodeippool: 192.168.1.50/32 -> 192.168.1.1/24
Commited

root@marietto:/usr/home/marietto # cbsd jcreate jname=deb jprofile=debian_bullseye allow_raw_socket=1 vnet=1

Please wait: this will take a while...
Applying skel dir template from: /usr/jails/share/FreeBSD-jail-skel

To edit VM properties use: cbsd jconfig jname=deb
To start VM use: cbsd jstart deb
To stop VM use: cbsd jstop deb
To remove VM use: cbsd jremove deb
For attach VM console use: cbsd jlogin deb

Creating deb complete: Enjoy!
jcreate done in 23 seconds

root@marietto:/usr/home/marietto # cbsd jls
JNAME  JID  IP4_ADDR     HOST_HOSTNAME  PATH                  STATUS
deb    0    192.168.1.3  deb.my.domain  /usr/jails/jails/deb  Off

root@marietto:/usr/home/marietto # ifconfig

em0: flags=8963<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=4810099<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,VLAN_HWFILTER,NOMAP>
        ether e0:d5:5e:e2:1f:22
        inet 192.168.1.6 netmask 0xffffff00 broadcast 192.168.1.255
        media: Ethernet autoselect (1000baseT <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:10:ff:b7
        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
        member: tap3 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 7 priority 128 path cost 2000000
        member: tap2 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 6 priority 128 path cost 2000000
        member: tap1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 5 priority 128 path cost 2000000
        member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 4 priority 128 path cost 2000000
        member: em0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 1 priority 128 path cost 2000000
        groups: bridge

jset mode=quiet jname=deb ci_gw4="192.168.2.1"
ci_gw4: 192.168.2.1

root@marietto:/usr/home/marietto # cbsd jstart

List of offline jail
 0 .. CANCEL
 a .. deb on local

create epair: epair1:em0
Default NIC automatically selected: em0
set resource limit: [ ]
jail renice: 1
Starting jail: deb, parallel timeout=5
deb: created
eth0
late_start in progress...
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/local/lib/compat/pkg
32-bit compatibility ldconfig path: /usr/lib32
Starting Network: lo0 eth0.
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 0x1
        inet 127.0.0.1 netmask 0xff000000
        groups: lo
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
eth0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 00:a0:98:4c:b9:da
        hwaddr 02:df:bb:23:7e:0b
        inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255
        groups: epair
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
add host 127.0.0.1: gateway lo0 fib 0: route already in table
route: writing to routing socket: Network is unreachable
add net default: gateway 192.168.2.1 fib 0: Network is unreachable
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Updating /var/run/os-release done.
Creating and/or trimming log files.
Clearing /tmp (X related).
Updating motd:.
Starting syslogd.
Starting cron.

sab 20 nov 2021 20:02:27 CET
jstart done in 9 seconds

root@marietto:/usr/home/marietto # cbsd jls display=jname.vnet

JNAME.VNET
deb.vnet

root@marietto:/usr/home/marietto # cbsd jls

JNAME  JID  IP4_ADDR     HOST_HOSTNAME  PATH                  STATUS
deb    1    192.168.1.3  deb.my.domain  /usr/jails/jails/deb  On

root@marietto:/usr/home/marietto # ping 192.168.1.3

PING 192.168.1.3 (192.168.1.3): 56 data bytes
64 bytes from 192.168.1.3: icmp_seq=0 ttl=64 time=0.132 ms
64 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=0.101 ms
64 bytes from 192.168.1.3: icmp_seq=2 ttl=64 time=0.094 ms
^C
--- 192.168.1.3 ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.094/0.109/0.132/0.016 ms

root@marietto:/usr/home/marietto # uname -a

FreeBSD marietto 13.0-RELEASE-p4 FreeBSD 13.0-RELEASE-p4 #0: Tue Aug 24 07:33:27 UTC 2021
root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

root@marietto:/usr/home/marietto # cbsd jlogin

List of online jail
 0 .. CANCEL
 a .. deb on local

deb:/root@[20:12] # ifconfig

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 0x1
        inet 127.0.0.1 netmask 0xff000000
        groups: lo
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
eth0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 00:a0:98:4c:b9:da
        hwaddr 02:df:bb:23:7e:0b
        inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255
        groups: epair
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

deb:/root@[20:12] # apt update
apt: Command not found.

deb:/root@[20:12] # apt-get update
apt-get: Command not found.

deb:/root@[20:12] # uname -a

FreeBSD deb.my.domain 13.0-RELEASE-p4 FreeBSD 13.0-RELEASE-p4 #0: Tue Aug 24 07:33:27 UTC 2021     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

deb:/root@[20:12] # ip
ip: Command not found.

deb:/root@[20:13] # ping google.it

PING google.it (216.58.208.131): 56 data bytes
ping: sendto: Network is unreachable
ping: sendto: Network is unreachable
ping: sendto: Network is unreachable
ping: sendto: Network is unreachable
^C
--- google.it ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss

deb:/root@[20:13] # ping 192.158.1.3

PING 192.158.1.3 (192.158.1.3): 56 data bytes
ping: sendto: Network is unreachable
ping: sendto: Network is unreachable
ping: sendto: Network is unreachable
^Zping: sendto: Network is unreachable
ping: sendto: Network is unreachable
^C
--- 192.158.1.3 ping statistics ---
5 packets transmitted, 0 packets received, 100.0% packet loss

deb:/root@[20:14] # ls /sys
/sys

deb:/root@[20:14] # ls /sys/class
ls: /sys/class: No such file or directory

deb:/root@[20:18] # route add default 192.168.2.1

route: writing to routing socket: Network is unreachable
add net default: gateway 192.168.2.1 fib 0: Network is unreachable

deb:/root@[20:25] # route add default 192.168.1.1
add net default: gateway 192.168.1.1

deb:/root@[20:25] # apt update
apt: Command not found.

deb:/root@[20:26] # ping google.it
PING google.it (142.250.180.99): 56 data bytes
64 bytes from 142.250.180.99: icmp_seq=0 ttl=115 time=18.950 ms
64 bytes from 142.250.180.99: icmp_seq=1 ttl=115 time=19.081 ms
64 bytes from 142.250.180.99: icmp_seq=2 ttl=115 time=18.819 ms
^Z64 bytes from 142.250.180.99: icmp_seq=3 ttl=115 time=18.856 ms
64 bytes from 142.250.180.99: icmp_seq=4 ttl=115 time=19.150 ms
^Z64 bytes from 142.250.180.99: icmp_seq=5 ttl=115 time=18.975 ms

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (10 by maintainers)

Commits related to this issue

Most upvoted comments

I love you. I know that you like the geeks. And I’m one of them 😃 BTW,13.0.19 ? I see only 13.0.18…

root@marietto:/usr/home/marietto # pkg install cbsd

Updating FreeBSD repository catalogue… Fetching packagesite.pkg: 100% 6 MiB 6.7MB/s 00:01
Processing entries: 100% FreeBSD repository update completed. 31366 packages processed. All repositories are up to date. pkg: kodi has a missing dependency: libdvdcss The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED: cbsd: 13.0.18