Knowledgebase

Qemu Guest Agent PFsense Print

  • 0

Qemu Guest Agent PfSense / OpnSense / FreeBSD 

 

If you did an ISO installation of a BSD system such as PfSense, we recommend installing the agent as follows: 

 

Install the qemu guest agent package. 

# pkg install qemu-guest-agent  

 

By default, the rc.conf.local file doesn’t exist in the /etc directory, we will have to create it. 

# touch /etc/rc.conf.local 

# ee /etc/rc.conf.local 

 

Paste the following in the /etc/rc.conf.local file. 

qemu_guest_agent_enable="YES" 

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

 

Create a qemu guest agent startup script. We will need this to start the guest agent on boot. 

# touch /usr/local/etc/rc.d/qemu-agent.sh 

# ee /usr/local/etc/rc.d/qemu-agent.sh 

 

Paste the following lines in the /usr/local/etc/rc.d/qemu-agent.sh file. 

#!/bin/sh 

 

sleep 3 

service qemu-guest-agent start 

 

Enable the executable permissions on the qemu guest agent startup script. 

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

 

Start the qemu-guest-agent service. 

service qemu-guest-agent start

 

 

 

 


Was this answer helpful?

« Back