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 Guest Agent install problems on pfsense in VM

Featured Replies

I have a couple of Hypervisors with pfsense running on them (Unraid and Proxmox) and finally figured out a problem I'm having is caued by pfsense not shutting down when asked.

 

So I installed the QEMU Guest Agent on the Proxmox VM and it seems to have worked beautifully.

 

https://forum.netgate.com/topic/162083/pfsense-vm-on-proxmox-qemu-agent-installation

 

So lets try the pfsense VM on the Unraid server:

 

1660578057.840915: debug: disabling command: guest-suspend-disk
1660578057.841103: debug: disabling command: guest-suspend-ram
1660578057.841109: debug: disabling command: guest-suspend-hybrid
1660578057.841113: debug: disabling command: guest-set-vcpus
1660578057.841116: debug: disabling command: guest-get-memory-blocks
1660578057.841119: debug: disabling command: guest-set-memory-blocks
1660578057.841122: debug: disabling command: guest-get-memory-block-size
1660578057.841126: debug: disabling command: guest-get-memory-block-info
1660578057.841129: debug: disabling command: guest-fsfreeze-status
1660578057.841137: debug: disabling command: guest-fsfreeze-freeze
1660578057.841140: debug: disabling command: guest-fsfreeze-freeze-list
1660578057.841144: debug: disabling command: guest-fsfreeze-thaw
1660578057.841147: debug: disabling command: guest-fstrim
1660578057.841185: critical: error opening channel: No such file or directory
1660578057.841190: critical: error opening channel
1660578057.841193: critical: failed to create guest agent channel
1660578057.841196: critical: failed to initialize guest agent channel

 

OK, I'm clearly missing something... How do I get Unraid to open that channel?

 

from the xml:

 

    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-37-pfSense - Cerberus/org.qemu.guest_agent.0'/>
      <target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/>
      <alias name='channel0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>

 

 

(To be fair the first install is on pfsense CE and the Unraid one is running pfsense plus... So that could be the cause but I don't think so.

 

Thanks for any input

 

 

jupiter-diagnostics-20220815-1228.zip

Yes same error for me on unraid, it was working on proxmox. The interesting thing is that soft off is working..

  • Author

I'm wondering if something changed with the pfsense build, because I would swear that the system was not performing the soft shutdown.

 

I built a test vm last night and it does now perform the shutdown as desired. So maybe I don't really need the Guest Agent with pfsense.

 

I'm still curious as to why it fails though.

  • 1 year later...

I got it running and see the NICs now in the unraid-console.
But I had to start it manually, starting the service automatically is not working (using the same link as @Arbadacarba).

 

there is not even a logfile in /var/...

Did anyone find a solution?

Found a solution in the meantime:

 

pkg install -y qemu-guest-agent

cat > /etc/rc.conf.local << EOF

qemu_guest_agent_enable="YES"

qemu_guest_agent_flags="-d -v -l /var/log/qemu-ga.log"

#virtio_console_load="YES"

EOF

cat > /usr/local/etc/rc.d/qemu-agent.sh << EOF

#!/bin/sh

sleep 5

service qemu-guest-agent start

EOF

chmod +x /usr/local/etc/rc.d/qemu-agent.sh

service qemu-guest-agent start

 

 

source:

 

 

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.