Comments (7)
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.
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.
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.
is ifconfig_DEFAULT
always applicable to the plugged in NIC, or a DHCP thing?
from depenguin-run.
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.
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.
just need to find a good place to test this.
I can test with a hetzner host
from depenguin-run.
Related Issues (20)
- Test Report: Hetzner AX41 (2 x 2TB spindle disks) HOT 2
- Default ZFS datasets are very limited HOT 14
- Please provide ansible playbook HOT 8
- Test request: OVH Baremetal servers HOT 16
- Test request: IONOS Dedicated Servers
- Test request: Servers.com Dell Servers
- Test request: Scaleway Dedibox HOT 1
- Test request: Leaseweb Dedicated Servers HOT 2
- Test request: Equinix Metal
- Add more than two drives? HOT 5
- mkisofs not found HOT 4
- Test Request: IBM Cloud deprecating FreeBSD HOT 1
- Test request: Hetzner EX43 HOT 7
- Support more than 2 drives HOT 8
- ovmf package missing on Debian 10 HOT 2
- Test request: Hivelocity dedicated servers
- Testing Hetzner EX44 (NVMe) HOT 1
- Test request: Hetzner AX52 HOT 6
- Please provide a 13.3 ISO HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from depenguin-run.