诺甘农圆盘

参考资料收集库

用户工具

站点工具


linux:proxmox:alipine

Qemu Guest Agent & Alpine Linux

Alpine linux系统安装了qemu-guest-agent

docker:~# apk add qemu-guest-agent

安装完后就算启动了agent,但是在proxmox的虚拟机管理界面还是看不到,显示No Guest Agent configured

系统里面输入qemu-ga报错如下:

docker:~# qemu-ga
1578518273.999471: critical: error opening channel: No such file or directory
1578518273.999491: critical: error opening channel
1578518273.999495: critical: failed to create guest agent channel
1578518273.999498: critical: failed to initialize guest agent channel

查找了一下这问题主要出现在安装了Virtual版的alipine linux,Standard版本反而没问题,解决方案如下:

alipine里面运行命令:

qemu-ga -p /dev/vport2p1

如果proxmox界面出现了虚拟机的ip地址资料,说明2边通讯上了,有些人需要/dev/vport1p1,根据自己实际情况,确定资料正确后就可以参考下面的配置文件修改系统的qumu-agent配置文件。添加GA_PATH="/dev/vport2p1

docker:~# cat /etc/conf.d/qemu-guest-agent
# Specifies the transport method used to communicate to QEMU on the host side
# Default: virtio-serial
#GA_METHOD="virtio-serial"

# Specifies the device path for the communications back to QEMU on the host
# Default: /dev/virtio-ports/org.qemu.guest_agent.0

GA_PATH="/dev/vport2p1"

然后重启服务后者重启系统就解决问题了。

参考资料:https://forum.proxmox.com/threads/qemu-guest-agent-alpine-linux.43727/

linux/proxmox/alipine.txt · 最后更改: 2021/02/04 10:02 由 packingbox