siderolabs / extensions

Talos Linux System Extensions
Mozilla Public License 2.0
121 stars 120 forks source link

QEMU: No filesystem info #486

Open camrossi opened 1 month ago

camrossi commented 1 month ago

I am trying to gather, via QEMU the disk usage for my talos node but apparently this is not working.

This is a Talos cluster running inside OpenShift via KubeVirt The virsh guestinfo 1 --filesystem returns nothing and also doing an API call to filesystemlist returns an empty list.

guestosinfo on the other hand works fine but also this one has no disks also the host name is not picked up.

{
 "fsFreezeStatus": "thawed",
 "fsInfo": {
  "disks": null
 },
 "guestAgentVersion": "9.1.0",
 "hostname": "(none)",
 "os": {
  "kernelRelease": "6.6.54-talos",
  "kernelVersion": "#1 SMP Mon Oct  7 18:53:44 UTC 2024",
  "machine": "x86_64"
 },

Wondering if I am missing something in my talos config?

smira commented 1 month ago

If that feature is desired, you might need to figure out what is missing/develop that.

Talos API provides information about disks/filesystem usage.

camrossi commented 1 month ago

Oh I think I misunderstood this extension then... I thought was the standard Qemu guest extension binary packaged in a way that can be installed but it seems this is created ad-hoc 😅

smira commented 1 month ago

It is indeed a standard qemu guest agent binary, but like I said above, you should have better luck using Talos API.