惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

aimingoo的专栏
aimingoo的专栏
S
Securelist
博客园 - Franky
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
IT之家
IT之家
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
The Cloudflare Blog
云风的 BLOG
云风的 BLOG
N
News and Events Feed by Topic
AI
AI
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Schneier on Security
Schneier on Security
Attack and Defense Labs
Attack and Defense Labs
Vercel News
Vercel News
腾讯CDC
Google DeepMind News
Google DeepMind News
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
M
MIT News - Artificial intelligence
WordPress大学
WordPress大学
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
N
Netflix TechBlog - Medium
量子位
S
Schneier on Security
Hacker News: Ask HN
Hacker News: Ask HN
Cyberwarzone
Cyberwarzone
S
Security Affairs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
N
News and Events Feed by Topic
T
Tenable Blog
PCI Perspectives
PCI Perspectives
MyScale Blog
MyScale Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Cyber Attacks, Cyber Crime and Cyber Security
W
WeLiveSecurity
N
News | PayPal Newsroom
P
Proofpoint News Feed
O
OpenAI News
C
CERT Recently Published Vulnerability Notes
B
Blog
Cisco Talos Blog
Cisco Talos Blog
Microsoft Security Blog
Microsoft Security Blog
V
Visual Studio Blog
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
Y
Y Combinator Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Spread Privacy
Spread Privacy

Linux

Linux 输入法求助 - V2EX 北通手柄 Linux USB 断连排查与修复 - V2EX 请问: Linux 系统下,有没有好用的 [查找重复文件] 的软件? - V2EX [震惊] 用 Firefox 播放一个抖音视频,我的 Linux 系统立马死机 - V2EX 强烈推荐一款性价比极高的 Linux 本搞 vibe coding - V2EX Linux 下有没有可能实现 Listary 的快速跳转 - V2EX V2EX › 登录 大佬们, Linux kernel 漏洞频发需要升级的问题,你们是怎么处理的? - V2EX 为啥 ubuntu 搞个 wayland 这种不兼容的玩意出来 - V2EX Linux 上的游戏网络加速 - V2EX 太好了感动哭了 chrome149 修复了 wayland+nvidia 的硬件加速问题 - V2EX debian+gnome 开机后可以不显示用户列表 只需要输入密码 像 mac 那样么?有什么插件实现么 - V2EX 升级后,发现 USB 相关的设备无法启用,可以查下有没有 usbguard 服务 - V2EX 介绍一下 flatpark - V2EX fctix5 的 Pinyin 输入法怎么没有自动调整词频 - V2EX Linux 服务器有何安全监控软件? - V2EX 腾讯会议 Linux 版使用 nvidia 独显无法驱动视频功能 - V2EX niri 环境用触控板怎么能更好的选择文字 - V2EX 『ArchLinux』简明安装指南(Laptop+Nvidia+Cachyos Kernel +xfs+KDE) 有没有使用 Linux 桌面办公的朋友,我写了一个脚本可以实现快速查单词/翻译句子 国产 Touchpad 在 arch 下偶发无法用手势 《铜豌豆 Linux 》12.14.1 版本发布 wgx 一个以性能优先 把 wireguard 网络转成 socks5 代理的工具 niri 怎么连自动切换显示器都这么难啊 分享 tmux 快捷方式 zen 浏览器在 archlinux 中无法代理 albert 快捷键总是失效 - V2EX crTerm 148.26.0513-build for Linux Linux 平台上 支持垂直标签页的终端 crTerm 苹果最新妙控触摸板和 Linux 适配的好吗? - V2EX ubuntu 24.04 今天点击更新后,蓝牙鼠标不能用了。 升级到 fedora 44 后在 konsole 里打字时 cpu 占用很高的问题有 v 友也遇到了吗? Ubuntu26.04 桌面端配置静态 IP 失败 Gnome 桌面下截图上传到 imgur 的 extension - V2EX Manjaro 真不错 - V2EX 写了个 lottie 动画在 Linux 桌面上顶层播放的小东西 - V2EX LXC veth 桥接网络模式下如何避免发送的数据包被拆成小包? - V2EX 使用 auto-cpufreq 平衡 Linux 性能功耗 我的硬盘 Memblaze Pblaze 5 Linux 下不识别,给 Linux 内核提交了补丁, AI 说有望被合并 - V2EX Linux nfs 客户端如何快速删除大量小文件 写了个 Nautilus Extension: Copy File Path - V2EX Linux /Ubuntu 上如何实现连接两个不同的 wifi 解决实际需求。 - V2EX 115 网盘如何多端稳定挂载? - V2EX Linux 桌面环境 orWM 推荐 - V2EX 如何解决 eBPF sockmap 重定向转发中背压缺失带来的 OOM ? - V2EX 还是要用 ubuntu - V2EX nfs mv 的操作是原子的么? A 节点 move, B 节点要么完全可见,要么完全不可见? - V2EX 求助 Linux 桌面环境软件 - V2EX 请教一个 unraid 的 docker 网络问题 - V2EX Linux 格式化 fat32/exfat 分区避坑 - V2EX Linux 服务器上有多个 ip,程序本身不能指定接口,有第三方程序可以强制让程序使用指定接口吗? - V2EX Ubuntu 26.04 LTS 关键变化解读 - V2EX win11 对比 ubuntu,是真的拉胯 - V2EX 终于把 KeymouseGo 跑在麒麟 9000C + UOS 上了,分享一下 ARM64 适配心得 - V2EX sudo-rs 改变传统 sudo 行为,密码输入不再完全隐藏,即将上线 Ubuntu 26.04 LTS - V2EX Xdmcp 服务问题使用与优化求解 - V2EX 在 2026 年选择 Fedora 前,你应该看看 universal-blue - V2EX Linux 运行 EasyConnect 有成功的大佬么? - V2EX 我有一批工控机,批量内网穿透加群控什么方案合适 - V2EX 求推荐 Linux 桌面 - V2EX Linux 微信怎样避开实名信息录入? - V2EX 再来谈谈我的 ArchLinux 使用体验 - V2EX thinkbook 14+ 2024 Intel 版安装 arch plasma 左右声道声音大小不一样 - V2EX 有没有便宜好用的服务器推荐 - V2EX 能不能改改 networkmanager 中的错别字? - V2EX 《铜豌豆 Linux 》12.13.1 版本发布 2026-01-16 - V2EX Wayland 显示服务下的远控方案 - V2EX 深度科技原 cto 关于西装门的每日锐评 - V2EX 求大佬们分享下跨境组网方案 2026 年了,有没有丝滑一些的 Linux 远程桌面解决方案 Linux 下看电影, dts 音轨声音小,音质破。 华为擎云 W515X 支持运行 openSUSE 等发行版吗 折腾两天还是换回 Manjaro Arch Linux 下微信备份聊天记录的方案? 国内 Linux 服务,安装各种软件有什么好的办法快速安装? 垃圾佬组 Linux 求推荐亮机卡 有个 javac 进程长期占用,是否被挂马了? Linux 漫谈(三) 荣耀笔记本与 Linux - 性能管理 Linux 漫谈(二) 完整启用 Fedora/ Linux 下 GNOME 的硬件加速 Linux 漫谈(一) 铜豌豆 Linux 开源项目 2025 年 12 月捐赠募集
AI 能用来全自动化解决 Linux 系统问题吗? - V2EX
wniming · 2026-07-03 · via Linux

最近遇到一个有点复杂的问题,研究了半天没解决,想试试用 AI 来搞行不行,之前看有 V 友分享 AI 使用方面的一些经验,感觉现阶段的 AI 应该是能解决我遇到的这个问题的,但我预算有限,想在实际开搞之前先让 V 友帮我预估一下搞定这个问题大概要花多少钱。

问题如下:

dnf --installroot=/var/lib/lxc/f43/rootfs --setopt=reposdir=/etc/yum.repos.d/ --releasever=43 install system-release vi vim systemd passwd dnf rootfiles nmap-ncat openssh-server util-linux iproute iputils perl fzf bash-completion

我在 fedora 44 上用以上这条命令创建了一个 fedora 43 的极简 rootfs ,用 LXC 启动时无法进入控制台,会卡在这里:

root@develop:~# lxc-start -F f43
systemd 258.9-1.fc43 running in system mode (+PAM +AUDIT +SELINUX -APPARMOR +IMA +IPE +SMACK +SECCOMP -GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN -IPTC +KMOD +LIBCRYPTSETUP +LIBCRYPTSETUP_PLUGINS +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +BPF_FRAMEWORK +BTF +XKBCOMMON +UTMP +SYSVINIT +LIBARCHIVE)
Detected virtualization lxc.
Detected architecture x86-64.

Welcome to Fedora Linux 43 (Forty Three)!

Queued start job for default target graphical.target.
[  OK  ] Created slice system-container\x2dgetty.slice - Slice /system/container-getty.
[  OK  ] Created slice system-getty.slice - Slice /system/getty.
[  OK  ] Created slice system-modprobe.slice - Slice /system/modprobe.
[  OK  ] Created slice system-sshd\x2dkeygen.slice - Slice /system/sshd-keygen.
[  OK  ] Created slice user.slice - User and Session Slice.
省略一些日志
[  OK  ] Started sshd.service - OpenSSH server daemon.
[  OK  ] Finished systemd-user-sessions.service - Permit User Sessions.
[  OK  ] Started console-getty.service - Console Getty.
[  OK  ] Started [email protected] - Container Getty on /dev/pts/1.
[  OK  ] Started [email protected] - Container Getty on /dev/pts/2.
[  OK  ] Started [email protected] - Container Getty on /dev/pts/3.
[  OK  ] Started [email protected] - Container Getty on /dev/pts/4.
[  OK  ] Reached target getty.target - Login Prompts.
[  OK  ] Started dbus-broker.service - D-Bus System Message Bus.
[  OK  ] Started systemd-logind.service - User Login Management.
[  OK  ] Reached target multi-user.target - Multi-User System.
[  OK  ] Reached target graphical.target - Graphical Interface.

在容器内查看启动日志有报错:

[root@f43-lxc ~]# journalctl -b -o short-monotonic --no-pager
省略一些日志
[23878.264260] f43-lxc sshd[73]: Server listening on 0.0.0.0 port 22.
[23878.264298] f43-lxc sshd[73]: Server listening on :: port 22.
[23878.264404] f43-lxc systemd[1]: Started sshd.service - OpenSSH server daemon.
[23878.269095] f43-lxc systemd[1]: Finished systemd-user-sessions.service - Permit User Sessions.
[23878.270020] f43-lxc systemd[1]: Started console-getty.service - Console Getty.
[23878.271603] f43-lxc systemd[1]: Started [email protected] - Container Getty on /dev/pts/1.
[23878.273357] f43-lxc systemd[1]: Started [email protected] - Container Getty on /dev/pts/2.
[23878.275185] f43-lxc systemd[1]: Started [email protected] - Container Getty on /dev/pts/3.
[23878.275923] f43-lxc systemd[1]: Started [email protected] - Container Getty on /dev/pts/4.
[23878.276071] f43-lxc systemd[1]: [email protected] - Getty on tty1 skipped, unmet condition check ConditionPathExists=/dev/tty0
[23878.276086] f43-lxc systemd[1]: Reached target getty.target - Login Prompts.
[23878.276254] f43-lxc systemd[1]: Started dbus-broker.service - D-Bus System Message Bus.
[23878.281245] f43-lxc dbus-broker-launch[92]: Ready
[23878.294315] f43-lxc systemd-logind[84]: Failed to open /dev/input/event0: No such file or directory
[23878.294420] f43-lxc systemd-logind[84]: New seat seat0.
[23878.294575] f43-lxc systemd[1]: Started systemd-logind.service - User Login Management.
[23878.294641] f43-lxc systemd-logind[84]: Failed to open /dev/input/event15: No such file or directory
[23878.294916] f43-lxc systemd[1]: Reached target multi-user.target - Multi-User System.
[23878.295094] f43-lxc systemd[1]: Reached target graphical.target - Graphical Interface.
[23878.295327] f43-lxc systemd[1]: Startup finished in 536ms.
[23878.297253] f43-lxc systemd-logind[84]: Failed to open /dev/input/event1: No such file or directory
[23878.311089] f43-lxc (agetty)[132]: console-getty.service: Failed to set up standard input: No such file or directory
[23878.311116] f43-lxc (agetty)[132]: console-getty.service: Failed at step STDIN spawning /sbin/agetty: No such file or directory
[23878.311788] f43-lxc systemd[1]: console-getty.service: Deactivated successfully.
[23878.338688] f43-lxc systemd-logind[84]: Failed to open /dev/input/event11: No such file or directory
[23878.349390] f43-lxc systemd-logind[84]: Failed to open /dev/input/event2: No such file or directory
[23878.352076] f43-lxc systemd-logind[84]: Failed to open /dev/input/event12: No such file or directory
[23878.355802] f43-lxc systemd-logind[84]: Failed to open /dev/input/event9: No such file or directory
[23878.356585] f43-lxc systemd-logind[84]: Failed to open /dev/input/event4: No such file or directory
[23878.363069] f43-lxc systemd-logind[84]: Failed to open /dev/input/event10: No such file or directory
[23878.367810] f43-lxc systemd-logind[84]: Failed to open /dev/input/event5: No such file or directory
[23878.463918] f43-lxc systemd[1]: console-getty.service: Scheduled restart job, restart counter is at 1.
[23878.465127] f43-lxc systemd[1]: Started console-getty.service - Console Getty.
[23878.465639] f43-lxc systemd[1]: systemd-vconsole-setup.service - Virtual Console Setup skipped, unmet condition check ConditionPathExists=/dev/tty0
[23878.475216] f43-lxc (agetty)[156]: console-getty.service: Failed to set up standard input: No such file or directory
[23878.475238] f43-lxc (agetty)[156]: console-getty.service: Failed at step STDIN spawning /sbin/agetty: No such file or directory
[23878.475834] f43-lxc systemd[1]: console-getty.service: Deactivated successfully.
[23878.644621] f43-lxc systemd[1]: console-getty.service: Scheduled restart job, restart counter is at 2.
[23878.645588] f43-lxc systemd[1]: Started console-getty.service - Console Getty.
[23878.657089] f43-lxc (agetty)[157]: console-getty.service: Failed to set up standard input: No such file or directory
[23878.657109] f43-lxc (agetty)[157]: console-getty.service: Failed at step STDIN spawning /sbin/agetty: No such file or directory
[23878.657604] f43-lxc systemd[1]: console-getty.service: Deactivated successfully.
[23878.889562] f43-lxc systemd[1]: console-getty.service: Scheduled restart job, restart counter is at 3.
[23878.890736] f43-lxc systemd[1]: Started console-getty.service - Console Getty.
[23878.902112] f43-lxc (agetty)[158]: console-getty.service: Failed to set up standard input: No such file or directory
[23878.902139] f43-lxc (agetty)[158]: console-getty.service: Failed at step STDIN spawning /sbin/agetty: No such file or directory
[23878.902764] f43-lxc systemd[1]: console-getty.service: Deactivated successfully.
[23879.238697] f43-lxc systemd[1]: console-getty.service: Scheduled restart job, restart counter is at 4.
[23879.239842] f43-lxc systemd[1]: Started console-getty.service - Console Getty.
[23879.257111] f43-lxc (agetty)[159]: console-getty.service: Failed to set up standard input: No such file or directory
[23879.257140] f43-lxc (agetty)[159]: console-getty.service: Failed at step STDIN spawning /sbin/agetty: No such file or directory
[23879.257806] f43-lxc systemd[1]: console-getty.service: Deactivated successfully.
[23879.489021] f43-lxc systemd[1]: console-getty.service: Scheduled restart job, restart counter is at 5.
[23879.489166] f43-lxc systemd[1]: console-getty.service: Start request repeated too quickly.
[23879.489172] f43-lxc systemd[1]: console-getty.service: Failed with result 'start-limit-hit'.
[23879.489214] f43-lxc systemd[1]: Failed to start console-getty.service - Console Getty.
[root@f43-lxc ~]# 

lxc 的配置如下:

root@develop:~# cat /var/lib/lxc/f43/config
lxc.include = /usr/share/lxc/config/common.conf

lxc.rootfs.path = dir:/var/lib/lxc/f43/rootfs
lxc.uts.name = f43-lxc

lxc.mount.auto = sys:rw

如果把 lxc.mount.auto = sys:rw 注释掉就能正常进入控制台,但我需要用这个,同样的配置在 fedora 42 容器里是正常的,但 fedora 43, fedora 44 都有一样的问题。