Skip to content

freebsd-vm-image: also DHCP re0#22

Open
svmhdvn wants to merge 1 commit intomarkjdb:master-pythonfrom
svmhdvn:push-tzunlpqxqrvs
Open

freebsd-vm-image: also DHCP re0#22
svmhdvn wants to merge 1 commit intomarkjdb:master-pythonfrom
svmhdvn:push-tzunlpqxqrvs

Conversation

@svmhdvn
Copy link
Copy Markdown
Contributor

@svmhdvn svmhdvn commented Apr 6, 2026

No description provided.

@markjdb
Copy link
Copy Markdown
Owner

markjdb commented Apr 8, 2026

Two comments:

  • You can get equivalent functionality by setting ifconfig_DEFAULT=SYNCDHCP in rc.conf.
  • If I recall correctly, setting this causes some spurious test failures. I'm not sure if that's the case. Did you successfully run the test suite on amd64 with this change?

@svmhdvn
Copy link
Copy Markdown
Contributor Author

svmhdvn commented Apr 8, 2026

I tried the ifconfig_DEFAULT=SYNCDHCP approach and kept getting log messages like this:

Apr  8 10:55:29 freebsd dhclient[77280]: lagg0: not found
Apr  8 10:55:05 freebsd dhclient[54840]: vmnet0: not found
...

This happens constantly across all tests that spin up interfaces.

@markjdb
Copy link
Copy Markdown
Owner

markjdb commented Apr 10, 2026

I tried the ifconfig_DEFAULT=SYNCDHCP approach and kept getting log messages like this:

Apr  8 10:55:29 freebsd dhclient[77280]: lagg0: not found
Apr  8 10:55:05 freebsd dhclient[54840]: vmnet0: not found
...

This happens constantly across all tests that spin up interfaces.

Right, devd is spinning up dhclient instances each time a test creates an interface, I guess.

What interface gets created with RVVM? I know it's hacky, but for now I slightly prefer to just hardcode that interface name too, instead of putting extra magic into rc.local that might be surprising later.

@svmhdvn
Copy link
Copy Markdown
Contributor Author

svmhdvn commented Apr 10, 2026

What interface gets created with RVVM?

It seems to be re0, although it might be different on your system if your host doesn't have an re0 when invoking RVVM.

@svmhdvn svmhdvn force-pushed the push-tzunlpqxqrvs branch from c1e4bc6 to 5aea069 Compare April 10, 2026 15:28
@svmhdvn svmhdvn changed the title freebsd-vm-image: attempt to DHCP all ethernet interfaces freebsd-vm-image: also DHCP re0 Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants