cbsd icon indicating copy to clipboard operation
cbsd copied to clipboard

Unable to install pkg from pkglist with vnet and DHCP

Open alvistar opened this issue 10 months ago • 2 comments

Mandatory info for bug reports:

FreeBSD version ( uname -a ): 14.0-RELEASE

CBSD version ( cbsd version ):

14.0.7

Hello, With vnet=1 and ip4_addr="REALDHCP", I can't manage to install pkg from pkglist.

It has some resolution issue:

pkg install, attempt: 1/2 pkg: Error fetching http://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly/Latest/pkg.txz: Host does not resolve Address resolution failed for http://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly. Consider changing PACKAGESITE. Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly, please wait... Trying to pkg update.. pkg: Error fetching http://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly/Latest/pkg.txz: Host does not resolve Address resolution failed for http://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly. Consider changing PACKAGESITE. Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly, please wait... pkg install, attempt: 2/2 pkg: Error fetching http://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly/Latest/pkg.txz: Host does not resolve Address resolution failed for http://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly. Consider changing PACKAGESITE. Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly, please wait...

Interestingly if I don't add pkgs machines starts correctly with correct ip from dhcp server. Anyway if I try to bootstrap pkg from within the jail it doesn't work, it complains that pkg is already installed. I had to resort to boostrap using pkg-static.

Now if ip4_addr=0 everything works, but then I have to dhclient eth0 inside the jail. Or to change ip4_addr="REALDHCP" after the jail creation.

I am not familiar with CBSD and I am trying to migrate from iocage so perhaps I am missing something, but I have tried to go through docs and issues before reporting.

Thanks, Alessandro

alvistar avatar Apr 22 '24 17:04 alvistar