Install QEMU Guest Agent
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. The agent uses QEMU's native guest agent. The official agent is a comprehensive and reliable choice in terms of security endorsement, maintenance, and stability.
Elastic Compute offers a high-level view of your instance metrics using the Performance tab in zenConsole. All instances have basic performance data available when they are created. However, installing the QEMU guest agent provides deeper insights into instance behavior including the following additional metrics:
System Load Average - Last 1 Minute
System Load Average - Last 5 Minutes
System Load Average - Last 15 Minutes
Memory Utilization
Disk Utilization
Uptime
Note
The QEMU guest agent will be successfully installed and collect data only when you select a default public IPv4 while creating your instance.
For Windows operating system, the QEMU guest agent is already installed by default. You can disable the data collection as you need.
For instances with Rocky, CentOS, AlmaLinux, Alpine and FreeBSD operating systems, you need to manually configure the agent on the instance to activate it by following the steps below.
Rocky/CentoS/AlmaLinux
The agent is disabled by default. You need to modify the /etc/sysconfig/qemu-ga
file.
Open the file in a text editor:
Update the
FILTER_RPC_ARGS
to enable the desired RPCs. Add the following line or modify it if it already exists:Restart the QEMU guest agent service
Alpine Linux
The agent is disabled by default.
Start the QEMU guest agent service:
Check the status of the QEMU guest agent service:
Edit the QEMU guest agent init script:
Open the init script in a text editor:
Find the
command_args
line and modify it to enable verbose logging:
Restart the QEMU guest agent service:
FreeBSD
The agent is disabled by default. You can view the official documentation for more details.
Modify
/etc/rc.conf
to enable the QEMU guest agent:Open
/etc/rc.conf
in a text editor:Add the following lines to enable and configure the QEMU guest agent:
Start the QEMU guest agent service:
Verify the status of the QEMU guest agent service:
Expected Outputs
Service status when not running:
Service start output:
Service status when running:
Last updated