Qemu Guest Agent installation for newbie

I am completely new to TrueNAS, Linux, FreeBDS, etc. Recently I started my homelab and have TrueNAS as a VM in Proxmox.

Now I am looking for how to install Qemu Guest Agent in TrueNAS. Could someone tell me with which commands to do that? So please with some additional explanation so I can understand and learn.

Thanks in advance for the effort taken!

p.s. I saw this scripts but it has an outdated link for the download so it doesn’t work. And my knowledge does not reach so far yet that I know how to change this and still be able to run it.

Version: TrueNAS-13.0-U6.3

Then you should be using SCALE, not CORE. And as a bonus, SCALE has these tools built in.

1 Like

Thnx, but now Scale is running and I know it is a matter of installing Qemu Guest Agent.

What is it that you “know is a matter of installing Qemu Guest Agent”? Because, as I already said, SCALE has the guest agent installed by default, so you don’t need to install it.

As dan says, qemu-ga is installed in TrueNAS by default.
Are you sure you enabled QEMU Guest Agent-option in Proxmox, for the TrueNAS VM?

Yes QEMU Guest Agent is enabled in Proxmox. But QEMU is not installed in FreeBSD (TrueNAS) and that is my question. How to do that.

If you’re using TrueNAS SCALE, as I (and iX) recommended and as you’ve said you now are, TrueNAS isn’t FreeBSD; it’s Linux. And for at least the third time, the guest agent is already installed in SCALE.

What is the problem that you think you need to install the guest agent in order to solve?

It is FreeBSD… Search for TrueNAS on WikiPedia.

I’ve been using TrueNAS, and FreeNAS before it, for 15 years or more; I don’t need to search Wikipedia to answer this question. If you’re using TrueNAS SCALE, as I recommended, as iX recommends for new deployments, and as you’ve said you now are, it’s based on Linux, not FreeBSD. Now answer mine:

1 Like

From simple things like shutdown to more “extreme” things like flush the write buffer buffer and freeze and writes.

TrueNAS CORE is based on FreeBSD . TrueNAS SCALE is a Linux version of TrueNAS which brings additional features such as Linux containers and clustering.

In your second Post you stated that now scale is running, and scale is based on debian Linux and, as dan has already told you multiple times has guest agent already installed.

And you’re using TrueNAS SCALE, right? Like I recommended you do? Like iX has been recommending for new deployments for over a year? Like you said above you were?

Which is it, are you running CORE or SCALE?
CORE is FreeBSD.
SCALE is based on Debian Linux.

Please describe what you are doing to verify QEMU functionality and how you’re coming to the conclusion that you need to install it in TrueNAS.

The quality of the help here is directly related to the amount of work you put in describing the issue.

I’d also note that if you’ve passed through the disk controller to the VM, as you should (and as is the only safe way to run TrueNAS virtualized), you won’t be able to do these things regardless of whether you have the guest agent installed or not, as Proxmox won’t be handling the disk I/O. If you’ve created virtual disks, you’re in for a world of hurt.

Sorry, Typo… must be Core.

I am running CORE. I think QEMU functionality will help me make a VM backup more smoothly. To stop the VM, for example. Now the VM might be stopped abruptly and with QEMU it would be better on Proxmox. Also read somewhere that without QEMU the TrueNAS VM sometimes crashes. But of course I am open to suggestions and experiences.

I think you’re right there, I misstated what I wanted with it. I did a passthrough. Is more about a TrueNAS VM backup that I want to get right.

I don’t typically use FreeBSD, but do you see qemu in TrueNAS if you list running services with:
service -e
?

If so, follow it up with:
service qemu-guest-agent status
Adjusting the name of the service with whatever you found when running service -e of course.

Thnx! I already checked that but there is no service running that looks like QEMU.

Then don’t, and run SCALE instead.

  • iX have been recommending SCALE for new deployments for some time now (well over a year)
  • CORE is effectively EOL–it isn’t receiving any new development, features, or releases, other than possibly to address security issues
  • As stated repeatedly above, SCALE includes the guest agent

If, as you said in your OP (unless that was another lie typo), you’re a newbie to TrueNAS, you should be using SCALE for many reasons. The guest agent is pretty low on the list, but it solves that problem too.

1 Like