AlmaLinux / AlmaLinux/bootc-images

[BUG]: NetworkManager fails as no dhcp is available

Đang mở
#11 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Dockerfile
Star
50
Fork
16
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.