Difference between revisions of "Install the qemu guest agent in TrueNAS"
From Levy
(Created page with "== Introduction == This page gives instructions for installing the qemu guest agent on TrueNAS Core == Instructions == Download this zipfile. :File:Qemu-guest-agent freebs...") |
m |
||
Line 4: | Line 4: | ||
== Instructions == | == Instructions == | ||
Download this zipfile. | Download this zipfile. | ||
[[: | [[:Media:Qemu-guest-agent freebsd13.1.zip|Qemu guest agent for FreeBSD]] | ||
It contains 3 files: | It contains 3 files: | ||
qemu-ga | qemu-ga |
Latest revision as of 18:25, 31 December 2024
Introduction
This page gives instructions for installing the qemu guest agent on TrueNAS Core
Instructions
Download this zipfile. Qemu guest agent for FreeBSD It contains 3 files:
qemu-ga qemu-guest-agent virtio_console.ko
- Place virtio_console.ko in /boot/modules.
- Run kldload virtio_console.ko.
- Place qemu-ga in /usr/local/bin.
- Place qemu-guest-agent in /usr/local/etc/rc.d.
- Place qemu-guest-agent in another location of your choice. This will be a copy that is re-added to the rc.d directory each time TrueNAS boots.
- Create Tunables in the TrueNAS web UI. System -> Tunables.
- Variable=qemu_guest_agent_enable Value=YES Type=RC Enabled=yes
- Variable=qemu_guest_agent_flags Value=-d -v -l /var/log/qemu-ga.log Type=RC Enabled=yes
- Variable=virtio_console_load Value=YES Type=LOADER Enabled=yes
- Create Init/Shutdown Scripts in the TrueNAS web UI. Tasks -> Init/Shutdown Scripts.
- Type=Command Command=service qemu-guest-agent start When=POSTINIT Enabled=yes Timeout=10
- Type=Command Command=cp /[path to a local copy of qemu-guest-agent file] /usr/local/etc/rc.d When=PREINIT Enabled=yes Timeout=10
- Reboot TrueNAS.
After running through these steps the QEMU guest agent should be running