Ips гостевой агент не запущен
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.
sbazin
New Member
I have a problem with qemu-guest-agent and Windows 2019 Server.
Status Name DisplayName
------ ---- -----------
Running QEMU-GA QEMU Guest Agent
When I test the qemu guest-agent since my proxmox server :
qm agent 119 ping
QEMU guest agent is not running
Proxmox Version : pve-manager/6.1-5/9bf06119 (running kernel: 5.3.13-1-pve)
Windows Version : Windows 2019 Standard 1809
Thanks for your support
marsian
Active Member
Hi, do you have the latest version of the Agent installed? I could fix a couple of these problems by making sure it wa the most recent version running.
ronron555
Member
Proxmox Version : pve-manager/6.1-5/9bf06119 (running kernel: 5.3.13-1-pve)
Windows Version : Windows 2019 Standard 1809
sbazin
New Member
chotaire
Active Member
marsian
Active Member
Works like a charm
sbazin
New Member
Works like a charm
Proxmox Staff Member
Best regards,
Tom
Do you already have a Commercial Support Subscription? - If not, Buy now and read the documentation
ness1602
Well-Known Member
I'm having the same problem with one 2012 R2 standard machine. I've tried everything but it still doesn't work. How can we debug somehow why it is not working?
ronron555
Member
Thanks
, that worked for me.
Windows Server 2019 Standard 1809
Proxmox VE 6.1-5
Jarvar
Member
I'm wondering. Is this Qemu Agent necessary?
I have two VM Servers running. Windows Server 2019 and Windows Server 2016 Essentials.
The WIndows 2019 was backing up okay using the new PVE PBS Beta version.
On the other hand, the Windows 2016 Essentials kept getting an error.
ERROR: PBS backups are not supported by the running QEMU version. Please make sure you've installed the latest version and the VM has been restarted.
ERROR: Backup of VM 100 failed - PBS backups are not supported by the running QEMU version. Please make sure you've installed the latest version and the VM has been restarted.
I tried reinstalling the Qemu Guest Agent as recommended here.
However, I noticed the Windows Server 2019 isn't even running a Qemu Guest Agent even though it is enabled.
Anyways, I shut it down after reinstalling, I though I would start it with Qemu Agent disabled in Proxmox and then restart it enabled afterwards.
Tried backing up when it was disabled and it seems to be running. Paused the VM and kept going on.
Odd behaviour.
Anyways I was trying to reinstall the Qemu Guest Agent, but keep getting an error now.
There is a problem with this Windows Installer Package.A program run as part of the setup did not finish as expected.
Сегодня расскажу как подключить на виртуальную машину (ВМ) в Proxmox утилиту qemu-guest-agent для просмотра IP-адреса через WEB-интерфейс и правильной завершении работы ВМ.
Настройка qemu-guest-agent в Linux
В зависимости от дистрибутива гостевой агент может не запускаться автоматически после установки. Для запуска воспользуемся следующими командами:
Guest
Linux
On Linux you have to simply install the qemu-guest-agent, please refer to the documentation of your system.
We show here the commands for Debian/Ubuntu and Redhat based systems:
on Debian/Ubuntu based systems (with apt-get) run:
and on Redhat based systems (with yum):
Depending on the distribution, the guest agent might not start automatically after the installation.
Start it either directly with
(should work for most distributions) or reboot the guest.
Windows
First you have to download the virtio-win driver iso (see Windows VirtIO Drivers).
Then install the virtio-serial driver:
- Attach the ISO to your windows VM (virtio-*.iso)
- Go to the windows Device Manager
- Look for "PCI Simple Communications Controller"
- Right Click -> Update Driver and select on the mounted iso in DRIVE:\vioserial\\ where is your Windows Version (e.g. 2k12R2 for Windows 2012 R2)
After that, you have to install the qemu-guest-agent:
- Go to the mounted ISO in explorer
- The guest agent installer is in the directory guest-agent
- Execute the installer with double click (either qemu-ga-x86_64.msi (64-bit) or qemu-ga-i386.msi (32-bit)
After that the qemu-guest-agent should be up and running. You can validate this in the list of Window Services, or in a PowerShell with:
If it is not running, you can use the Services control panel to start it and make sure that it will start automatically on the next boot.
На Windows VM
Сначала вы должны скачать драйвер virtio-win iso (см. Windows VirtIO Drivers).
Затем установите драйвер virtio-serial:
- Прикрепите ISO к виртуальной машине Windows (virtio-*.iso)
- Перейдите в Диспетчер устройств Windows
- Найдите «PCI Simple Communications Controller«
- Щелкните правой кнопкой мыши ->Обновить драйвер и выберите на смонтированном iso DRIVE:\vioserial\\ where is your Windows Version — ваша версия Windows (например, W7 для Windows 7)
После этого необходимо установить qemu-guest-agent:
- Перейти к смонтированному ISO в проводнике
- Установщик гостевого агента находится в каталоге гостевой агент
- Запустите установщик двойным щелчком (либо qemu-ga-x86_64.msi (64-разрядная версия), либо qemu-ga-i386.msi (32-разрядная версия)
После этого qemu-guest-agent должен быть запущен.
Если он не запущен, вы можете использовать панель управления Службами, чтобы запустить его и убедиться, что он запустится автоматически при следующей загрузке.
Installation
You have to install guest-agent in each VM and then enable it, you can do that in the Proxmox VE Webinterface (GUI)
or via CLI: qm set VMID --agent 1
На Linux VM
В Linux вам нужно просто установить qemu-guest-agent.
Здесь мы покажем команды для систем на базе Debian/Ubuntu и Redhat:
В системах на Debian/Ubuntu выполняем следующие команды:
На системах на базе Redhat:
На Proxmox
Вы должны установить гостевой агент в каждой виртуальной машине, а затем включить его, вы можете сделать это в веб-интерфейсе Proxmox VE (GUI).
Установка qemu-guest-agent
1. Ballooning
Для эффективного использования ресурсов Proxmox поддерживает технологию ballooning.
Ballooning – это динамическое управление памятью. Другими словами, вы прописываете в настройках виртуальной машины минимальный и максимальный объем памяти, выделяемой этой машине, а далее Proxmox сам распределяет необходимые ресурсы. Таким образом уменьшается влияние гостевой системы на весь хост.
Для начала выставим желательные параметры в настройках машины.
Чтобы их применить, машину нужно выключить и включить обратно.
Чтобы ballooning заработал, нам потребуется скачать и установить дополнительные драйвера.
Перейдем на гостевую систему и создадим каталог Balloon в папке Program files (c:/ Program files /Balloon). В эту папку со скачанного диска нужно скопировать драйвера для вашей операционной системы.
В диспетчере устройств появится новое оборудование и на него нужно установить эти драйверы.
После этого необходимо установить ballooning как службу.
Win + X, Выполнить, cmd
Win + X, Выполнить, services.msc
Выделение памяти теперь работает коректно.
Проверка того, что связь с гостевым агентом работает
Связь с гостевым агентом происходит через сокет unix, расположенный в /var/run/qemu-server/.qga Вы можете проверить связь агента qm в proxmox:
Если есть вопросы, то пишем в комментариях.
Также можете вступить в Телеграм канал, ВК или подписаться на Twitter. Ссылки в шапки страницы.
Заранее всем спасибо.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.
CCWTech
Member
Those are very old drivers, do the newer versions work or must you use the old drivers? I tried the latest but it's not working and trying to find out if that is why. VM is a Windows Server 2019 Std.
eoinkim
Member
CCWTech
Member
Yes, that is helpful. That's what I have followed in setting up. The service is running on the Windows OS. And I have QEMU Guest Agent Enabled on the options on the 1 and only VM.
When I use the command qm agent 100 ping (100 is the Windows VM) I just get QEMU guest agent is not running.
I'm not sure what is wrong as the setup seems so simplistic. I have rebooted the VM and Proxmox just to make sure and no change.
eoinkim
Member
@CCWTech So, you installed virtio-win and virtio-serial drivers, installed QEMU guest agent? Maybe try to change HDD connector type to something different?
CCWTech
Member
Yes I did. How would HDD connector impact it? It's a Windows service. Wouldn't there be potential data loss if I changed HDD connector type?
eoinkim
Member
Hope this helps.
CCWTech
Member
CCWTech
Member
I'm still searching for a fix for the Windows agent for Proxmox. Any updates to the instructions on how to make this work for WIndows VMs? (or is Windows just not widely supported?)
PitRejection2359
New Member
I'm still searching for a fix for the Windows agent for Proxmox. Any updates to the instructions on how to make this work for WIndows VMs? (or is Windows just not widely supported?)
quadcube
New Member
@CCWTech @PitRejection2359 have you double checked the Device Manager for missing drivers (particularly VirtIO Serial)?
I had the same problem with trying to get Guest Agent to work on Windows Server 2019, where I initially installed the VirtIO Serial drivers after checking the Device Manager before installing Guest Agent. It turns out that after installing Guest Agent and restarting, nothing worked.
I checked Device Manager again and found that the VirtIO Serial driver had problem, reinstalled the driver and restart, now Guest Agent work properly
The qemu-guest-agent is a helper daemon, which is installed in the guest. It is used to exchange information between the host and guest, and to execute command in the guest.
In Proxmox VE, the qemu-guest-agent is used for mainly two things:
- To properly shutdown the guest, instead of relying on ACPI commands or windows policies
- To freeze the guest file system when making a backup (on windows, use the volume shadow copy service VSS).
2. QEMU Guest agent
Следующее что нужно сделать – установить QEMU Guest agent. Без этого не будет работать поддержка VSS (Volume Shadow Copy Service) т.е. служба теневого копирования тома.
В настройках виртуальной машины включим агента. Чтобы настройки применились – выключим и включим снова данную виртуальную машину.
Testing that the communication with the guest agent is working
The communication with the guest agent takes place over a unix socket located in /var/run/qemu-server/.qga You can test the communication qm agent:
if the qemu-guest-agent is correctly runnning in the VM, it will return without an error message.
После установки гостевой системы на Proxmox для того чтобы не было проблем с производительностью и резервным копированием необходимо произвести некоторые действия.
Что такое qemu-guest-agent
qemu-guest-agent — это вспомогательный демон, который устанавливается в гостевой системе. Он используется для обмена информацией между хостом и гостем, а также для выполнения команды в госте.
В Proxmox VE qemu-guest-agent используется в основном для двух вещей:
- Чтобы правильно завершить работу гостя, вместо того чтобы полагаться на команды ACPI или политики Windows
- Чтобы заморозить гостевую файловую систему при создании резервной копии (в Windows используйте службу теневого копирования томов VSS).
Читайте также: