rancher / k3os

Purpose-built OS for Kubernetes, fully managed by Kubernetes.
https://k3os.io
Apache License 2.0
3.5k stars 397 forks source link

dhcp get killed by connman? #724

Closed liyimeng closed 3 years ago

liyimeng commented 3 years ago

Version (k3OS / kernel)

0.21.0-k3s1r0

5.4.72 Architecture

x86_64 Describe the bug

I have ethernet connection on eth0, and have conman/main.conf written at config.yaml file like this

write_files:
- content: |-
    [General]
    AllowHostnameUpdates=false
    PreferredTechnologies=ethernet,wifi
    NetworkInterfaceBlacklist=vmnet,vboxnet,virbr,ifb,docker,veth,cni,flannel,tap,eth1,eth2,eth3,vn
  encoding: ""
  owner: root
  path: /etc/connman/main.conf
  permissions: "0644"

when connman service start, it remove IP address on eth0 and set it some 169.254.x.x

To Reproduce

Actual behavior

Additional context

Should get a proper IP address like the one retrieve via udhcpc

kvm vm

liyimeng commented 3 years ago

it turns out to be my virtual machine problem.

skirsten commented 2 years ago

Hi @liyimeng,

I have the exact same problem. But I don't see how it could be a problem with the virtual machine. Could you please elaborate what the problem was or how you fixed it?

Note: I do not have a custom config file like this example. Version v0.20.7-k3s1r0