AlmaLinux / AlmaLinux/bootc-images
[BUG]: NetworkManager fails as no dhcp is available
- 主要语言
- Dockerfile
- 星标
- 50
- 派生
- 16
- PR 合并指标
- 30 天内没有已合并 PR
描述
### Is there an existing issue for this?
- [x] 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
```Dockerfile
FROM quay.io/almalinuxorg/almalinux-bootc:9
```
2. generate disk image with imagebuilder
3. 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
贡献指南
评估
这个 Issue 还没有评估数据。