eth0 keeps dissapearing

  • Hi,


    Running OMV 2 with all the updates applied in a VM on ProxMox server.
    I am passing through (with no issues) a SATS SAS Card, a physical network card and an onboard USB device.
    Assigned 2vcpus and 4gb ram as well as a virtual NIC - will use the physical NIC for all traffic and virtual NIC for management only.
    Adding SnapRaid (and configure) + MergerFS (and configure) - all is OK and working as expected.
    However, after the first reboot eth0 just dissapears. While listed under /etc/network/interfaces (with all correct settings for IP, GW, etc) is not up and ifup eth0 al says cant find eth0


    Anyone seen this before? Can it be fixed somehow?


    Thanks

  • When mine started doing this, I added this line to my cron and it worked.
    Then after a couple of reboots, it showed up again. I never figured out what caused it so I can't give you a solution.

    Code
    ifconfig eth0 192.168.X.X netmask 255.255.255.0 up

    but you have already tried the ifup so perhaps ifconfig won't help.
    can you ping the eth0 address from another computer?
    I ran into an excellent guide I followed when mine started doing this: Hope I can find it...http://www.tuxradar.com/conten…network-problems-yourself
    Hope the moderators can help.

    I have donated. have you?
    OMV 2.2 running on HP Gen 8 G1610T server, 16GB RAM + Xeon E3-1220

    Einmal editiert, zuletzt von seanbw ()

  • Thanks for the suggestion. I have tried but my eth0 is really gone I think:


    root@OMV:~# ifconfig eth0 192.168.0.177 netmask 255.255.255.0 up
    SIOCSIFADDR: No such device
    eth0: ERROR while getting interface flags: No such device
    SIOCSIFNETMASK: No such device
    eth0: ERROR while getting interface flags: No such device
    root@OMV:~#


    I will go and read the URL you mentioned...maybe something in there


    Edit: no I cannot ping the IP address of eth0

  • More info from dmesg:



    [ 1.747534] e1000e 0000:02:00.0: eth0: (PCI Express:2.5GT/s:Width x1) xx:xxxx:xx:xx:xx
    [ 1.747535] e1000e 0000:02:00.0: eth0: Intel(R) PRO/1000 Network Connection
    [ 1.747546] e1000e 0000:02:00.0: eth0: MAC: 3, PHY: 8, PBA No: E46981-007
    ...
    [ 3.852242] udevd[465]: renamed network interface eth0 to rename2


    Seems that my physical NIC takes over the eth0 name? But an ifconfig now shows:


    eth1 Link encap:Ethernet HWaddr xx:xxxx:xx:xx:xx
    inet addr:192.168.x.x Bcast:192.168.x.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:46823 errors:0 dropped:0 overruns:0 frame:0
    TX packets:2074 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000


    confused ...according to dmesg the above physical NIC should be eth0 now...but it isn't
    RX bytes:9642132 (9.1 MiB) TX bytes:4618197 (4.4 MiB)

  • I have found a solution in one of the Ubuntu forums


    vi /etc/default/grub
    GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=1 biosdevname=0"
    sudo update-grub
    reboot


    worked fine - got both NICs back and working


    Can someone with more experience than me confirm that I am not doing anything silly by adding the above to Grub?

    • Offizieller Beitrag

    No idea. I don't use proxmox anymore and I never passed the NIC through to the VM.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!