DISCLAIMER:
Under no circumstances will I be held responsible or liable in any way for any claims, damages, losses,
expenses, costs, or liabilities whatsoever (including, without limitation, any direct or indirect damages for loss of profits, business interruption, or loss of information) resulting from or arising directly or indirectly from your use of these files and/or the instructions within this post.
Credit to @Tomek_ for the assistance provided in getting these binaries built and setup!
Credit to aborche! https://github.com/aborche/qemu-guest-agent
Contained in the zip archive are three files.
After running through these steps the QEMU guest agent should be running. I am personally running the binaries provided on my TrueNAS which is running in Proxmox. The IP information is reported back to Proxmox and Proxmox is able to gracefully shutdown/reboot the TrueNAS virtual machine.
For further information please see this thread https://www.truenas.com/community/threads/freenas-on-proxmox-whats-the-current-state-of-play.84287/.
Enjoy.
FS
Under no circumstances will I be held responsible or liable in any way for any claims, damages, losses,
expenses, costs, or liabilities whatsoever (including, without limitation, any direct or indirect damages for loss of profits, business interruption, or loss of information) resulting from or arising directly or indirectly from your use of these files and/or the instructions within this post.
Credit to @Tomek_ for the assistance provided in getting these binaries built and setup!
Credit to aborche! https://github.com/aborche/qemu-guest-agent
Contained in the zip archive are three files.
Code:
qemu-ga qemu-guest-agent virtio_console.ko
- Place
virtio_console.koin/boot/modules. - Run
kldload virtio_console.ko. - Place
qemu-gain/usr/local/bin. - Place
qemu-guest-agentin/usr/local/etc/rc.d. - Place
qemu-guest-agentin 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_enableValue=YESType=RCEnabled=yes - Variable=
qemu_guest_agent_flagsValue=-d -v -l /var/log/qemu-ga.logType=RCEnabled=yes - Variable=
virtio_console_loadValue=YESType=LOADEREnabled=yes
- Variable=
- Create Init/Shutdown Scripts in the TrueNAS web UI. Tasks -> Init/Shutdown Scripts.
- Type=
CommandCommand=service qemu-guest-agent startWhen=POSTINITEnabled=yesTimeout=10 - Type=
CommandCommand=cp /[path to a local copy of qemu-guest-agent file] /usr/local/etc/rc.dWhen=PREINITEnabled=yesTimeout=10
- Type=
- Reboot TrueNAS.
After running through these steps the QEMU guest agent should be running. I am personally running the binaries provided on my TrueNAS which is running in Proxmox. The IP information is reported back to Proxmox and Proxmox is able to gracefully shutdown/reboot the TrueNAS virtual machine.
For further information please see this thread https://www.truenas.com/community/threads/freenas-on-proxmox-whats-the-current-state-of-play.84287/.
Enjoy.
FS