Code Monkey home page Code Monkey logo

Comments (4)

ThomasWaldmann avatar ThomasWaldmann commented on August 15, 2024

Same thing happens with the generic/freebsd14 box:

tw@server:~/w/borg$ vagrant up freebsd64
Bringing machine 'freebsd64' up with 'virtualbox' provider...
==> freebsd64: Importing base box 'generic/freebsd14'...
==> freebsd64: Matching MAC address for NAT networking...
==> freebsd64: Checking if box 'generic/freebsd14' version '4.3.12' is up to date...
==> freebsd64: Setting the name of the VM: borg_freebsd64_1719939451630_2307
==> freebsd64: Fixed port collision for 22 => 2222. Now on port 2200.
==> freebsd64: Clearing any previously set network interfaces...
==> freebsd64: Preparing network interfaces based on configuration...
    freebsd64: Adapter 1: nat
==> freebsd64: Forwarding ports...
    freebsd64: 22 (guest) => 2200 (host) (adapter 1)
==> freebsd64: Running 'pre-boot' VM customizations...
==> freebsd64: Booting VM...
==> freebsd64: Waiting for machine to boot. This may take a few minutes...
    freebsd64: SSH address: 127.0.0.1:2200
    freebsd64: SSH username: vagrant
    freebsd64: SSH auth method: private key
    freebsd64: Warning: Connection reset. Retrying...
    freebsd64: 
    freebsd64: Vagrant insecure key detected. Vagrant will automatically replace
    freebsd64: this with a newly generated keypair for better security.
    freebsd64: 
    freebsd64: Inserting generated public key within guest...
    freebsd64: Removing insecure key from the guest if it's present...
    freebsd64: Key inserted! Disconnecting and reconnecting using new SSH key...
==> freebsd64: Machine booted and ready!
==> freebsd64: Installing rsync to the VM...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

pkg install -y rsync

Stdout from the command:

Updating FreeBSD repository catalogue...
Fetching meta.conf: . done
Unable to update repository FreeBSD
Error updating repositories!


Stderr from the command:

pkg: No SRV record found for the repo 'FreeBSD'
pkg: packagesite URL error for pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest/data.pkg -- pkg+:// implies SRV mirror type
pkg: packagesite URL error for pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest/data.txz -- pkg+:// implies SRV mirror type
pkg: packagesite URL error for pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest/packagesite.pkg -- pkg+:// implies SRV mirror type
pkg: packagesite URL error for pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest/packagesite.txz -- pkg+:// implies SRV mirror type

from borg.

ThomasWaldmann avatar ThomasWaldmann commented on August 15, 2024

Ehrm, it can be resolved by using a different nameserver in resolv.conf inside that box.

After that, pkg install -y rsync works.

By default, it was some internal IP 10.0.2.x set up by vagrant and looks like that nameserver answered in a different way.

This should work inside the box:

# host -t SRV _http._tcp.pkg.FreeBSD.org
_http._tcp.pkg.FreeBSD.org has SRV record 50 10 80 pkg0.sjb.freebsd.org.
_http._tcp.pkg.FreeBSD.org has SRV record 10 10 80 pkgmir.geo.freebsd.org.
_http._tcp.pkg.FreeBSD.org has SRV record 50 10 80 pkg0.fmt.freebsd.org.
_http._tcp.pkg.FreeBSD.org has SRV record 50 10 80 pkg0.fra.freebsd.org.
_http._tcp.pkg.FreeBSD.org has SRV record 50 10 80 pkg0.nyi.freebsd.org.
_http._tcp.pkg.FreeBSD.org has SRV record 50 10 80 pkg0.tuk.freebsd.org.

from borg.

ThomasWaldmann avatar ThomasWaldmann commented on August 15, 2024
[vagrant@freebsd13 ~]$ host -a _http._tcp.pkg.FreeBSD.org 10.0.2.3
Trying "_http._tcp.pkg.FreeBSD.org"
;; Truncated, retrying in TCP mode.
Using domain server:
Name: 10.0.2.3
Address: 10.0.2.3#53
Aliases: 

Host _http._tcp.pkg.FreeBSD.org not found: 3(NXDOMAIN)
Received 44 bytes from 10.0.2.3#53 in 1 ms
[vagrant@freebsd13 ~]$ host -a _http._tcp.pkg.FreeBSD.org 8.8.8.8
Trying "_http._tcp.pkg.FreeBSD.org"
;; Truncated, retrying in TCP mode.
Using domain server:
Name: 8.8.8.8
Address: 8.8.8.8#53
Aliases: 

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6072
;; flags: qr rd ra; QUERY: 1, ANSWER: 7, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;_http._tcp.pkg.FreeBSD.org.    IN      ANY

;; ANSWER SECTION:
_http._tcp.pkg.FreeBSD.org. 188 IN      SRV     50 10 80 pkg0.sjb.freebsd.org.
_http._tcp.pkg.FreeBSD.org. 188 IN      SRV     50 10 80 pkg0.nyi.freebsd.org.
_http._tcp.pkg.FreeBSD.org. 188 IN      SRV     50 10 80 pkg0.fmt.freebsd.org.
_http._tcp.pkg.FreeBSD.org. 188 IN      SRV     50 10 80 pkg0.fra.freebsd.org.
_http._tcp.pkg.FreeBSD.org. 188 IN      SRV     10 10 80 pkgmir.geo.freebsd.org.
_http._tcp.pkg.FreeBSD.org. 188 IN      SRV     50 10 80 pkg0.tuk.freebsd.org.
_http._tcp.pkg.FreeBSD.org. 188 IN      RRSIG   SRV 8 5 300 20240707183338 20240623204204 33691 freebsd.org. mJIP/qaF2FOAxiejmIA2Q+eligyC34d0jcfwY02GbjV1IFIjFti1xhZmExjErZehN+fT7IpQ+75TCvE/EXIJCF+Hf7QI4qKe2rnJKlzLj0hrBe2L1Olyh25BMbS+rsxp55liuRXfEpUU0CJu6DFX+zAdZywmRW3ieAw3UEWWKFiq4nBxf1VjOOeOQ9DoUDW2xBosZJZpAXpLpugVUQgk/ZxS0DIWSvHpzBW1MIG8cxL7b/GkZa4z7kyIS0cOeJByf4l067alC/KqJbHOXEiuCViuWUcPgGjNzDRkAUbIu05rLnLNrG2cqPZVrCkn3hxVqeBgD1CmhWzln2bdRWbMnQ==

Received 585 bytes from 8.8.8.8#53 in 34 ms

from borg.

ThomasWaldmann avatar ThomasWaldmann commented on August 15, 2024

On the host machine, there was an issue: /etc/resolv.conf was a broken symlink, pointing to /run/... and that didn't exist.

After installing systemd-resolved, it works now.

from borg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.