Skip to content

[BUG]: NetworkManager fails as no dhcp is available #11

@gbraad

Description

@gbraad

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Manually configuring works:

$ sudo ifconfig enp1s0 192.168.1.80 netmask 255.255.255.0
$ sudo ifconfig en1ps0 up
$ ping 192.168.1.1

Expected Behavior

Feb 23 05:34:10 localhost systemd[1]: NetworkManager.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://wiki.almalinux.org/Help-and-Support
░░
░░ An ExecStart= process belonging to unit NetworkManager.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Feb 23 05:34:10 localhost systemd[1]: NetworkManager.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://wiki.almalinux.org/Help-and-Support
░░
░░ The unit NetworkManager.service has entered the 'failed' state with result 'exit-code'.
Feb 23 05:34:10 localhost systemd[1]: Failed to start Network Manager.
░░ Subject: A start job for unit NetworkManager.service has failed
░░ Defined-By: systemd
░░ Support: https://wiki.almalinux.org/Help-and-Support
░░
░░ A start job for unit NetworkManager.service has finished with a failure.
░░
░░ The job identifier is 223 and the job result is failed.

Steps To Reproduce

  1. create a oci container image
FROM quay.io/almalinuxorg/almalinux-bootc:9
  1. generate disk image with imagebuilder
  2. run disk.qcow2 with virt-install
$ wget https://github.com/gbraad-dotfiles/upstream/releases/download/250223/almalinux-disk.qcow2 \
     -O base.qcow2
$ sudo virt-install \
    --name almalinux --os-variant fedora-eln \
    --cpu host --vcpus 4 --memory 4096 \
    --import --disk ./base.qcow2,format=qcow2

Ref: https://github.com/gbraad-dotfiles#manual-process-using-virt-install

Anything else?

I have the same setup running with fedora-bootc:41 and centos-bootc:stream9 without this issue. So for some reason I never see as lease in /var/lib/NetworkManager

I have several dev environments defined. AlmaLinux-based is here: https://github.com/gbraad-dotfiles/upstream/tree/main/.devcontainer/almalinux

Search terms

NetworkManager dhcp

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions