在创建 LXC 的时候选择了 DHCP ,但是启动完后,eth0 是 DOWN 的状态
[root@arch-template ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0@if44: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 9a:33:b8:9d:ce:2b brd ff:ff:ff:ff:ff:ff link-netnsid 0
手动 ip link set dev eth0 up
后,也没有自动获取网络配置。
LXC 模板用的 archlinux 。
[root@arch-template ~]# systemctl status NetworkManager.service
× NetworkManager.service - Network Manager
Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/NetworkManager.service.d
└─NetworkManager-ovs.conf
Active: failed (Result: exit-code) since Sat 2022-01-08 13:34:24 UTC; 11s ago
Docs: man:NetworkManager(8)
Process: 126 ExecStart=/usr/bin/NetworkManager --no-daemon (code=exited, status=226/NAMESPACE)
Main PID: 126 (code=exited, status=226/NAMESPACE)
CPU: 839us
Jan 08 13:34:24 arch-template systemd[1]: NetworkManager.service: Failed with result 'exit-code'.
Jan 08 13:34:24 arch-template systemd[1]: Failed to start Network Manager.
Jan 08 13:34:24 arch-template systemd[1]: NetworkManager.service: Scheduled restart job, restart coun>
Jan 08 13:34:24 arch-template systemd[1]: Stopped Network Manager.
Jan 08 13:34:24 arch-template systemd[1]: NetworkManager.service: Start request repeated too quickly.
Jan 08 13:34:24 arch-template systemd[1]: NetworkManager.service: Failed with result 'exit-code'.
Jan 08 13:34:24 arch-template systemd[1]: Failed to start Network Manager.
Jan 08 13:34:30 arch-template systemd[1]: NetworkManager.service: Start request repeated too quickly.
Jan 08 13:34:30 arch-template systemd[1]: NetworkManager.service: Failed with result 'exit-code'.
Jan 08 13:34:30 arch-template systemd[1]: Failed to start Network Manager.
请大家帮忙看下,谢谢
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.