PVE虚拟机必装工具:QEMU Guest Agent | 解决内存显示、IP获取、备份一致性难题

https://pve.proxmox.com/wiki/Upgrade_from_8_to_9#VM_Memory_Consumption_Shown_is_Higher

VM Memory Consumption Shown is Higher
In some situations you might see that the Memory usage of a VM is higher after the upgrade. Maybe even a bit over 100%.

If the VM does not report detailed memory usage, Proxmox VE will show the host’s view of the memory usage. With Proxmox VE 9, the accounting of the memory usage on the host has been adapted and takes the memory overhead of the VM into account. Therefore, the percentage may spike to over 100% in some cases.

If the new Host memory usage field is the same as the Memory Usage field in the VM’s summary panel, then Proxmox VE was unable to gather the VM’s internal memory usage information.

This happens if one of the following conditions applies:

The Ballooning Device has been disabled in the advanced memory settings of the VM.
This removes the communication channel to gather the guest’s internal memory usage information.
The guest does not report back any detailed memory usage information.
For example, FreeBSD is known to not report memory usage details, which includes popular firewalls like pfSense or OPNsense.
If the BalloonService on a Windows guest is not installed or not running.

翻译后

虚拟机内存占用显示值升高
在某些情况下,您可能会发现升级后虚拟机的内存使用量显示更高,甚至可能略微超过100%。

若虚拟机未报告详细内存使用情况,Proxmox VE将显示主机视角的内存使用量。在Proxmox VE 9中,主机内存占用的统计方式已调整,将虚拟机的内存开销纳入计算范围,因此在某些情况下百分比可能飙升超过100%。

若”主机内存使用量”新字段与虚拟机摘要面板的”内存使用量”字段数值相同,则表明Proxmox VE无法获取该虚拟机内部的内存使用信息。

此现象在以下任一条件成立时会出现:

  1. 虚拟机的”高级内存设置”中禁用了Ballooning驱动设备
    • 此举移除了获取客户机内部内存使用信息的通信通道
  2. 客户机未反馈任何详细内存使用信息
    • 例如已知FreeBSD系统不会报告内存使用详情(包括pfSense或OPNsense等常用防火墙系统)
  3. Windows客户机未安装或未运行BalloonService驱动服务
Debian,飞牛安装Qemu-guest-agent:
sudo -i
apt update
apt install qemu-guest-agent
qm guest cmd <vmid> <command>  #向虚拟机内Guest Agent发送命令
qm guest exec-status <vmid> <pid>  #在虚拟机内执行命令
qm guest passwd <vmid> <username> [OPTIONS]  #修改虚拟机内指定用户的密码
qm guest exec <vmid> [<extra-args>] [OPTIONS]  #检查虚拟机内进程状态
Win安装Qemu-guet-agent:
https://alist.geekxw.top/%E7%B3%BB%E7%BB%9F%E9%95%9C%E5%83%8F/virtio-win-0.1.271.iso

微信扫一扫打赏
微信打赏二维码
感谢您的支持!让我有持续更新的动力
© 版权声明
THE END
点赞1打赏作者 分享
评论 共1条
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片快捷回复
    • 头像jim0