Coder Social home page Coder Social logo

Comments (7)

grembo avatar grembo commented on September 15, 2024 1

My issue is some systems show em0 within mfsBSD, and then when booted, the system sees igb0 and has no network. It was the same with bsdinstall or unattended install script.

Yeah, it's em0, because that's what qemu emulates (it's not passing the actual hardware to you).

What do you suggest on firstboot side?

A script that detects the primary interface (either automatically based on a priority list or based on a stored value we passed in when running qemu [e.g., a mac address to find it]). Automatic based on priority should be fine for a start (igb0, em0, bge0...).

Once detected, it will run the proper ifconfig commands to rectify the situation and modify /etc/rc.conf to persist the change (basically removing ifconfig_whatever_name=untrusted and setting ifconfig_detected_name=untrusted).


Alternative dirty hack on install:

sysrc ifconfig_em0_name=untrusted
sysrc ifconfig_igb0_name=untrusted
sysrc ifconfig_bge0_name=untrusted

Which will work, until you encounter a system with multiple network interfaces using different drivers ;)

from depenguin-run.

grembo avatar grembo commented on September 15, 2024

Driver detection includes a of PCI ids, in case of intel, also some inspection of the mac potentially to decide if it's em or igb. Then there's the question of device ordering. Seems like a lot of work.

Maybe it makes more sense to provide some sort of firstboot rc script that corrects the issue automatically the first time the bare metal server boots?

from depenguin-run.

bretton avatar bretton commented on September 15, 2024

It affects me for unattended install. I'm passing in an interface name in depenguin_settings.sh that has to be setup.

The value defaults to igb0 here

conf_interface="igb0"

Whatever is passed in gets renamed to untrusted as part of INSTALLERCONFIG

sysrc ifconfig_%%interface%%_name="untrusted"

My issue is some systems show em0 within mfsBSD, and then when booted, the system sees igb0 and has no network. It was the same with bsdinstall or unattended install script.

One server I had to change to em0 and the other back to igb0. So the info is useful at the mfsbsd stage.

What do you suggest on firstboot side?

from depenguin-run.

bretton avatar bretton commented on September 15, 2024

is ifconfig_DEFAULT always applicable to the plugged in NIC, or a DHCP thing?

from depenguin-run.

grembo avatar grembo commented on September 15, 2024

is ifconfig_DEFAULT always applicable to the plugged in NIC, or a DHCP thing?

Nope, it's for everything, so not useful for this purpose.

from depenguin-run.

grembo avatar grembo commented on September 15, 2024

I think the easiest way is to go the firstboot approach, should be fairly easy to accomplish. I can help you with it, just need to find a good place to test this.

from depenguin-run.

bretton avatar bretton commented on September 15, 2024

just need to find a good place to test this.

I can test with a hetzner host

from depenguin-run.

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.