I use Proxmox for my hypervsior and recently installed pfSense as a firewall. I use the QEMU Guest Agent to get more detailed info about the VM’s that are running in the Proxmox console.
This post shows the process to get the QEMU Guest Agent running on a pfSense firewall.
The following software versions were used in this post.
- pfSense Community Edition – 2.6.0
- QEMU Guest Agent – 5.0.1
Install the qemu-guest-agent package.
pkg install -y qemu-guest-agent
If you get an error “insufficient privileges to install packages”, you need to make sure the default admin account is enabled and you need to log in as admin. You may need to install the sudo package too.
# pkg install sudo
sudoers file is located here:
/usr/local/etc/sudoers. To edit it and add rules you need to use the
$ su - $ visudo
Then to give a user access to everything as root:
userX ALL=(ALL) ALL
To become root (as userX):
$ sudo -s -or- $ sudo -i
Once installed, there is a note on how to setup the agent.
======================================================= Modify your `/etc/rc.conf` by adding these settings qemu_guest_agent_enable="YES" qemu_guest_agent_flags="-d -v -l /var/log/qemu-ga.log" and run # service qemu-guest-agent start For detailed help use `qemu-ga -h` =======================================================
I am following the steps in the script here (with slight modifications).
Append to the /etc/rc.conf.local file.
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
Create the /usr/local/etc/rc.d/qemu-agent.sh file.
cat > /usr/local/etc/rc.d/qemu-agent.sh << EOF #!/bin/sh sleep 3 service qemu-guest-agent start EOF
Make the /usr/local/etc/rc.d/qemu-agent.sh file executable.
chmod +x /usr/local/etc/rc.d/qemu-agent.sh
Start the QEMU Guest Agent service.
service qemu-guest-agent start
Confirm the QEMU Guest Agent service is running.
service qemu-guest-agent status # Output qemu_guest_agent is running as pid 85066.
Originally posted here:
To remove the “You do not have a valid subscription for this server” popup message while logging in, run the command bellow. You’ll need to SSH to your Proxmox server or use the node console through the PVE web interface.
- If you have issues and need to revert changes please check the instructions at the bottom of this page.
- When you update your Proxmox server and the update includes the proxmox-widget-toolkit package, you’ll need to complete this modification again.
- This modification works with versions 5.1 and newer, tested up to the version shown in the title.
Run the following one line command and then clear your browser cache (depending on the browser you may need to open a new tab or restart the browser):
Here are alternative step by step instructions so you can understand what the above command is doing:
1. Change to working directory
2. Make a backup
cp proxmoxlib.js proxmoxlib.js.bak
3. Edit the file
4. Locate the following code
(Use ctrl+w in nano and search for “No valid subscription”)
title: gettext('No valid subscription'),
5. Replace “Ext.Msg.show” with “void”
title: gettext('No valid subscription'),
6. Restart the Proxmox web service (also be sure to clear your browser cache, depending on the browser you may need to open a new tab or restart the browser)
systemctl restart pveproxy.service
- Open elevated Command Prompt window
- Execute command to access Office path
CD "C:\Program Files\Microsoft Office\Office16"
- Run command to view the last 5 characters of Office product key
cscript ospp.vbs /dstatus
- Execute command to uninstall Office product key.
cscript ospp.vbs /unpkey:ABCDEX
If you get “SSH handshake failed” when trying to use Guacamole to connect to Ubuntu via SSH, you need to use a workaround:
In the meantime a workaround is adding “HostKeyAlgorithms +ssh-rsa” to the end of /etc/ssh/sshd_config on the Ubuntu machine and restart sshd. Note: I don’t have an understanding of the security implications of this, so use at your own risk
The solution was posted here: