GithubHelp home page GithubHelp logo

Comments (24)

votdev avatar votdev commented on June 12, 2024 1

The installation of systemd-resolved / netplan as dependencies seems to be linked to this issue : my network interface was installed and configured inside /etc/network/interfaces which seems to be deprecated (Wow !)

netplan and systemd are used for networking since OMV6. Nothing new for OMV7.

For-now my workaround is to set my DNS inside /etc/systemd/resolved.conf and i'll try to figured-out how to setup network interfaces with netplan + preseed.

Hmmm, why are you doing that? You can configure them via the UI.

i'll try to figured-out how to setup network interfaces with netplan + preseed.

Why are you using OMV if you are doing all on your own?

from openmediavault.

ryecoaaron avatar ryecoaaron commented on June 12, 2024 1

is this script good to use on x86 installation ?

It works on all architectures. It is typically used for non-amd64 installs or amd64 installs not using the OMV iso.
https://github.com/OpenMediaVault-Plugin-Developers/installScript
Documented at omv-extras.org

from openmediavault.

votdev avatar votdev commented on June 12, 2024

Hmmm, that's strange because i've set up dozens of systems via Vagrant without problems.

The only thing OMV is doing is:

The only thing that comes to my mind is that the network interface import is not working on every system. Right now only configs from /etc/network/interfaces is supported. But that was no problem until now.

As a fallback users can use omv-firstaid to reconfigure the network from CLI.

from openmediavault.

knghtbrd avatar knghtbrd commented on June 12, 2024

I did a little digging and there's a whole host of resolv.conf issues that seem to trip people up with Debian 12. None of them are terribly difficult to fix, but I didn't expect to run into one starting from Debian 12. I'd suggest adding a note that this can happen due to a Debian issue to the final documentation for 7.x and mark this resolved.

from openmediavault.

votdev avatar votdev commented on June 12, 2024

I did a little digging and there's a whole host of resolv.conf issues that seem to trip people up with Debian 12.

What resolv.conf problems are you talking about? Without having references such information is useless.

None of them are terribly difficult to fix

What exact issues could be fixed easily? References or examples please.

from openmediavault.

travnick avatar travnick commented on June 12, 2024

@knghtbrd I had also issues with network when installing on top of debian. resolv (dns) was also broken, dhcp too.

What is the output of ifconfig -a?

from openmediavault.

votdev avatar votdev commented on June 12, 2024

What is the output of ifconfig -a?

That does not work, ifconfig has been replaced by ip many years ago. The ifconfig Debian package is not installed by OMV.

What is the output of

# resolvectl status
# journalctl -u systemd-resolved

from openmediavault.

travnick avatar travnick commented on June 12, 2024

I have one, and it works (provided by net-tools package). but anyway, use any working tool to list all available network adapters.
Also, dmesg |grep -i eth may give some hints (I'm thinking about network interface renaming issues I faced recently)


edit:
journalctl -b |grep -i eth would also reveal some things

from openmediavault.

Ijokoedih avatar Ijokoedih commented on June 12, 2024

Hi,

I'm experiencing the same issue :

  1. Install Debian 12.5 using the Debian netinst image ( preseed installation )
  2. Followed : this doc
  3. resolution stopped working

resolvctl status / resolvctl monitor / netplan status commands helped me to understand what was going wrong : the dns configured inside /etc/network/interfaces seems to be ignored.

The installation of systemd-resolved / netplan as dependencies seems to be linked to this issue : my network interface was installed and configured inside /etc/network/interfaces which seems to be deprecated (Wow !)

For-now my workaround is to set my DNS inside /etc/systemd/resolved.conf and i'll try to figured-out how to setup network interfaces with netplan + preseed.

Hope it will help...

from openmediavault.

Ijokoedih avatar Ijokoedih commented on June 12, 2024

I'm doing an headless and minimal installation, then i'm using ssh to install OMV7 with ansible.
Because i'm doing a minimal installation, debian is using /etc/network/interface instead the networkmanager/netplan to setup my network..

I assume we should be able to install OMV7 on a minimalist debian no?

from openmediavault.

ryecoaaron avatar ryecoaaron commented on June 12, 2024

minimalist debian is recommended. Using netplan is not a non-minimalist idea. Are you writing a playbook for fun? I don't understand using ansible for installing OMV. If you were to run that playbook more than once, it might change settings that OMV is using saltstack for config management.

I already wrote a script to install omv. So, you are kind of re-inventing the wheel unless you are bulk provisioning OMV.

from openmediavault.

Ijokoedih avatar Ijokoedih commented on June 12, 2024

Nop, you should forget the "playbook" information : it is only a wrapper who will execute the supported way to install OMV7. (+ others things outside of the scope of this topic)

The official way to install OMV7 seems to be documented here :

I was not aware of any script before you talked about it... is this script good to use on x86 installation ?
My understanding of the official documentation , is to go on your script for "Raspberry Pi OS" :
https://docs.openmediavault.org/en/latest/installation/on_debian.html#installation-on-debian

On [Raspberry Pi OS](https://www.raspberrypi.org/software/operating-systems/) the below instructions only partially work. Please refer to a specific [installation script](https://github.com/OpenMediaVault-Plugin-Developers/installScript)

from openmediavault.

Ijokoedih avatar Ijokoedih commented on June 12, 2024

Is this way install-omv7-on-debian-12-bookworm worse than the script ? does the script take care about the network configuration with netplan/resolved ?

from openmediavault.

ryecoaaron avatar ryecoaaron commented on June 12, 2024

Worse? No. The install script just does more and makes sure issues common encountered on the forum are taken care of. The script does not configure networking on amd64 or i386. It uses the existing network setup and gets the web interface working. Then you can do the network config from the web interface. The wiki should explain everything - https://wiki.omv-extras.org/doku.php?id=omv7:alternate_amd64_install

from openmediavault.

knghtbrd avatar knghtbrd commented on June 12, 2024

@knghtbrd I had also issues with network when installing on top of debian. resolv (dns) was also broken, dhcp too.

What is the output of ifconfig -a?

Didn't keep the installation because I'm legally blind and COULD NOT SEE THE SCREEN with an 8x16 font without a magnifier and because I did not realize I would be locked out of ssh the moment I installed OMV until I got to editing group permissions. (Didn't know I'd need to do that yet…) Either way, ip addr show/ifconfig -a output wouldn't have helped fix this because the LAN connection was there, just refusing to allow logins over ssh.

The most common problem people seem to be having is that /etc/resolv.conf is missing entirely or is a dead symlink. With systemd-resolved installed, your /etc/resolv.conf should be a symlink to /run/systemd/resolve/stub-resolv.conf which should say something like this:

nameserver 127.0.0.53
options edns0 trust-ad
search .

If it doesn't, if the target on /run isn't there for some reason, if resolved isn't running, or if something munged nsswitch.conf … all of those things could have been it. But I just did a basic Debian installation onto LUKS/LVM, set up to not allow a direct root login, renaming some crypttab entries, and installing some tools like htop, pydf, git, neovim, that sort of thing. Just standard /etc/network/interfaces config out of the box, no network-manager or anything like that, even going out of my way to reject installing X11-related things since it seems OMV typically ignores recommends and makes anything it needs an explicit dependency.

I am SO building a pikvm so I can do this stuff where I can see what I'm doing from now on. ANY of the above problems should've been an easy fix. But as I said, I wasn't far into the process and I figured it was easier to approach from the other end, so I just reinstalled using the OMV installer image. Easy enough to boot rescue media and juggle some partitions and rebuild grub's notion of what was where. So I can't really debug the problem anymore.

I wonder if the initial installation of Debian somehow didn't include systemd-resolved and installing it broke DNS? Hmm, I'm likely to do a fresh Debian base install on a resurrected rem in a day or so—I'll see if I can replicate on that machine.

from openmediavault.

Ttdussart avatar Ttdussart commented on June 12, 2024

Hmmm, that's strange because i've set up dozens of systems via Vagrant without problems.

The only thing OMV is doing is:

The only thing that comes to my mind is that the network interface import is not working on every system. Right now only configs from /etc/network/interfaces is supported. But that was no problem until now.

As a fallback users can use omv-firstaid to reconfigure the network from CLI.

Had the same problem. Omv-firstaid helped, but not really.
Thanks to this I was able to reconnect in SSH but it now asks me to confirm changes on OMV. When I press "validate", the system crashes.

from openmediavault.

votdev avatar votdev commented on June 12, 2024

I've currently tested a Debian 12.5 installation using the Netinst ISO. Did a normal setup, installed OMV as mentioned in the docs and was able to access the UI finally.

The only thing that seems to have changed in Debian is that user accounts are not added to the SSH group by default (i think that was done in the past), therefore the default user created during the installation is not able to log in via SSH after OMV has been installed. This is because OMV only allows users that are assigned to the _ssh group or the root user to log in. The later is only for fallback when the UI does not work and users should deny root as soon as possible.

from openmediavault.

oliv99 avatar oliv99 commented on June 12, 2024

testing omv7 on VM in proxmox 8

I have installed debian bookworm (minimal net-install) on 4 virtual disks in raid1 configuration (2 actives, 2 spares) with DHCP virtio network
I have installed omv as per official forum post
Original IP is preserved but DNS is lost

re-configuring IPv4 network via omv-firstaid solve the DNS issue
everything is working as expected

from openmediavault.

henriquedesousa avatar henriquedesousa commented on June 12, 2024

Had a similar issue that, when using the automated script the network fails in the end, but using instructions from https://forum.openmediavault.org/index.php?thread%2F50222-install-omv7-on-debian-12-bookworm%2F= I get an error
image
when I reboot (if I don't reboot the webGUI from works perfectly). Bookwork Raspberry PI OS Bookworm 64bits Lite on Rpi zero 2w.

from openmediavault.

ryecoaaron avatar ryecoaaron commented on June 12, 2024

The install script does some special things for an RPi but probably doesn't do some things correctly on a zero 2w since it doesn't have a wired connection and I don't own one to test with.

from openmediavault.

henriquedesousa avatar henriquedesousa commented on June 12, 2024

Got it. Most notably, the local user I used to connect to the box stopped accepting ssh connections. I had to add the user to the new _ssh group. Also somehow, the webGUI also started working in the meantime.

from openmediavault.

ryecoaaron avatar ryecoaaron commented on June 12, 2024

The _ssh group change in Debian 12 is known. The script tries to change for it for the user running the script.

from openmediavault.

github-actions avatar github-actions commented on June 12, 2024

This issue has been automatically marked as stale because it
has not had any activity for 60 days. It will be closed if no further
activity occurs for another 30 days.

from openmediavault.

knghtbrd avatar knghtbrd commented on June 12, 2024

FWIW, I reported the bug on an amd64 system with wired ethernet, so if there is some magic on the RPi, it's not related.

from openmediavault.

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.