Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

QEMU Agent build for unRAID as VM

Featured Replies

here runs unRAID 6.8.1 now as VM under Proxmox. all is fine so far, but i admit, i don't use VMs inside unRAID (as that can be very tricky with performance). using quite a few dockers and plug-ins, all runs fine.

 

Proxmox as the hypervisor uses KVM/QEMU itself to run VMs. so it would be great to have QEMU Agent support for unRAID as being run as VM (the QEMU agent would then report some informations back to the hypervisor).

 

there's one guy, which did a VMware Tools build for his ESXi as hypervisor. but (and that's fine) he won't/can't do it for the QEMU Agent.

so if anybody, or LimeTech, could bring support for the standard QEMU/Agent – that would be fine.

 

thx. alot.

PS: Proxmox is free (based on Debian) and has no limitations whatsoever. it can use all (from Debian supported) hardware, offers (built in) ZFS as filesystem and has a quite good GUI and also a respectable user base & forums. it can be (and is offered) with prof. support if wanted.

Edited by s.Oliver

Hi,

 

I just realized that QEMU Guest Agent is part of standard QEMU package, and it is already on unRAID. Just add following line before "/usr/local/sbin/emhttp &" in /boot/config/go file:

 

/usr/bin/qemu-ga -l /var/log/qemu-ga.log -d

You can try running it directly in terminal, just be sure that QEMU Guest Agent is enabled in Options on VM Options section.

 

Best regards,

Maciej

  • Author

thx. mciekb! 🙂

i'll try out whenever i find a few minutes for the downtime ;-)

  • Author
On 1/30/2020 at 12:03 AM, maciekb said:

Hi,

 

I just realized that QEMU Guest Agent is part of standard QEMU package, and it is already on unRAID. Just add following line before "/usr/local/sbin/emhttp &" in /boot/config/go file:

 


/usr/bin/qemu-ga -l /var/log/qemu-ga.log -d

You can try running it directly in terminal, just be sure that QEMU Guest Agent is enabled in Options on VM Options section.

 

Best regards,

Maciej

 

hey Maciej,

 

i can report: it works! thanks alot! 😃

  • 1 year later...

I know its an old topic, but using UNRaid 6.9.2 and I have qemu-gest-agent running, it shows the IP in proxmox but I can not shut the UNRaid VM down from proxmox.  I have to log into the UNRaid gui and shut it down from there.

 

Is this a bug with the guest agent version UNRaid has or am I just missing a setting or something?

 

  • 5 months later...
  • Author
On 5/6/2021 at 2:05 AM, BrownHP800 said:

I know its an old topic, but using UNRaid 6.9.2 and I have qemu-gest-agent running, it shows the IP in proxmox but I can not shut the UNRaid VM down from proxmox.  I have to log into the UNRaid gui and shut it down from there.

 

Is this a bug with the guest agent version UNRaid has or am I just missing a setting or something?

 

i guess it's because unRAID ignores the power button pressed event from the QEMU agent.

  • 8 months later...

For anyone curious, shutdowns now work from a hypervisor (proxmox) from my testing of 6.10.3

Which is pretty nice.

 

Broadcast message from root@hostname (Sat Jul  2 17:08:23 2022):

hypervisor initiated shutdown 
The system is going down for system halt NOW!

Session was closed
Linux 5.15.46-Unraid.

 

  • 8 months later...
On 7/2/2022 at 5:22 AM, AshranPewter said:

For anyone curious, shutdowns now work from a hypervisor (proxmox) from my testing of 6.10.3

Which is pretty nice.

 

Broadcast message from root@hostname (Sat Jul  2 17:08:23 2022):

hypervisor initiated shutdown 
The system is going down for system halt NOW!

Session was closed
Linux 5.15.46-Unraid.

 

UnRaid newbie here, can you explain how to activate the proxmox agent in Unraid, I have it running in a VM on proxmox, everything works perfectly fine except for the guest agent, it is enabled on the VM, but it shows as not running on the Summary, I am on the latest Proxmox and UnRaid 6.11.5  

38 minutes ago, D34DPUULL said:

UnRaid newbie here, can you explain how to activate the proxmox agent in Unraid, I have it running in a VM on proxmox, everything works perfectly fine except for the guest agent, it is enabled on the VM, but it shows as not running on the Summary, I am on the latest Proxmox and UnRaid 6.11.5  

I use the go file located on the boot disk /boot/config/go

add this entry below the existing commands:

/usr/bin/qemu-ga -l /var/log/qemu-ga.log -d &

 

As a test you can run this in the command line to get the agent running for the current session, it should show up in proxmox straight away.

The go file will run this command on subsequent reboots.

  • 4 weeks later...
On 3/24/2023 at 8:18 PM, tjb_altf4 said:

I use the go file located on the boot disk /boot/config/go

add this entry below the existing commands:

/usr/bin/qemu-ga -l /var/log/qemu-ga.log -d &

 

As a test you can run this in the command line to get the agent running for the current session, it should show up in proxmox straight away.

The go file will run this command on subsequent reboots.

Thank you so much, this works perfectly! 

I also would like to confirm that it's working! Many thanks!!!

  • 4 months later...
On 3/25/2023 at 1:18 AM, tjb_altf4 said:

use the go file located on the boot disk /boot/config/go

add this entry below the existing commands:

/usr/bin/qemu-ga -l /var/log/qemu-ga.log -d &

 

As a test you can run this in the command line to get the agent running for the current session, it should show up in proxmox straight away.

The go file will run this command on subsequent reboots.

Thank you!

Now I can shutdown Unraid from inside the proxmox webinterface!

  • 6 months later...

Hello everyone,

I inserted this command in the GO file and everything works, now in ProxMox i see the IP address.

However, in the unRAID LOG I see that every 10 seconds or so it continues to write: Mar 25 16:16:22 Riddler qemu-ga: info: guest-ping called

 

Is all this normal?

 

Thanks in advance!

 

  • 1 month later...
On 3/25/2024 at 11:21 PM, Zippi said:

Hello everyone,

I inserted this command in the GO file and everything works, now in ProxMox i see the IP address.

However, in the unRAID LOG I see that every 10 seconds or so it continues to write: Mar 25 16:16:22 Riddler qemu-ga: info: guest-ping called

 

Is all this normal?

 

Thanks in advance!

 

Late reply I know, but this is normal, but should only happen while Proxmox UI is open and focused on that VM.

Close the Proxmox page and it should stop the pinging :)

  • 1 month later...

 I just moved my unraid 6.12.10 from ESXi to proxmox and in the process of getting the qemu guest agent running on it.

 

Running the command doesn't seem to work and I get the following error message in the /var/log/qemu-ga.log 

 

1719073511.562663: critical: error opening channel '/dev/virtio-ports/org.qemu.guest_agent.0': No such file or directory
1719073511.562676: critical: failed to create guest agent channel
1719073511.562677: critical: failed to initialize guest agent channel

 

Checking for a solution.

Edited by SCSI

1 hour ago, SCSI said:

 I just moved my unraid 6.12.10 from ESXi to proxmox and in the process of getting the qemu guest agent running on it.

 

Running the command doesn't seem to work and I get the following error message in the /var/log/qemu-ga.log 

 

1719073511.562663: critical: error opening channel '/dev/virtio-ports/org.qemu.guest_agent.0': No such file or directory
1719073511.562676: critical: failed to create guest agent channel
1719073511.562677: critical: failed to initialize guest agent channel

 

Checking for a solution.

Did you enable on the prox side? https://pve.proxmox.com/wiki/Qemu-guest-agent

  • 5 months later...

Did anyone by chance come across this error yet?

1733814180.630563: critical: Cannot lock pid file: Resource temporarily unavailable

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.