所以我在某处运行虚拟机,想知道主机正在运行什么管理程序。有什么方法可以检查它是在运行 KVM 还是在容器中?
虚拟机正在运行 Ubuntu
有 5 个进程不能被杀死kill -9 $PID
,执行cat /proc/$PID/cmdline
将挂起当前会话。也许它们是僵尸进程。
执行ps -ef or htop
也会挂起当前会话。但是top
并且ps -e
工作正常。
所以看起来文件系统没有响应有两个问题。
这是一台运行虚拟机的生产机器,因此无法重新启动。
以下进程 ID 不起作用:16181 16765 5985 7427 7547
这些进程的父进程是 init
??collectd(16765)???{collectd}(16776)
? ??{collectd}(16777)
? ??{collectd}(16778)
? ??{collectd}(16779)
? ??{collectd}(16780)
? ??{collectd}(16781)
??collectd(28642)???{collectd}(28650)
??collectd(29868)???{collectd}(29873)
? ??{collectd}(29874)
? ??{collectd}(29875)
? ??{collectd}(29876)
Run Code Online (Sandbox Code Playgroud)
并且 qemu 进程之一不起作用
|-qemu-system-x86(16181)-+-{qemu-system-x86}(16232)
| |-{qemu-system-x86}(16238)
| |-{qemu-system-x86}(16803)
| |-{qemu-system-x86}(17990)
| |-{qemu-system-x86}(17991)
| |-{qemu-system-x86}(17992)
| |-{qemu-system-x86}(18062)
| |-{qemu-system-x86}(18066)
| |-{qemu-system-x86}(18072)
| |-{qemu-system-x86}(18073)
| |-{qemu-system-x86}(18074)
| |-{qemu-system-x86}(18078)
| |-{qemu-system-x86}(18079)
| …
Run Code Online (Sandbox Code Playgroud)