fastfetch-cli / fastfetch

An actively maintained, feature-rich and performance oriented, neofetch like system information tool.
MIT License
9.36k stars 383 forks source link

[FEAT] A new line detecting virtualization #1117

Closed GeekCornerGH closed 1 month ago

GeekCornerGH commented 1 month ago

Be sure to read FAQ before submitting a new issue.

Wanted features:

To the best of my knowledge, most systems are running systemd. This packages comes with a command called systemd-detect-virt, returning virtualization type. For example: kvm, lxc, none (dedicated), and many more (below's a list of the supported values).

List of possible values ``` none kvm amazon qemu bochs xen uml vmware oracle microsoft zvm parallels bhyve qnx acrn powervm vm-other systemd-nspawn lxc-libvirt lxc openvz docker podman rkt wsl proot pouch container-other ```

Motivation:

We're listing many things here, but it'd be nice to show the virtualization type too.

CarterLi commented 1 month ago

Please try

{
  "type": "command",
  "text": "systemd-detect-virt",
  "key": "Virtualization"
}

See https://github.com/fastfetch-cli/fastfetch?tab=readme-ov-file#q-i-want-feature-a--b--c-will-fastfetch-support-it

CarterLi commented 1 month ago

IIRC host module should already work in most cases.

GeekCornerGH commented 1 month ago

Please try

{
  "type": "command",
  "text": "systemd-detect-virt",
  "key": "Virtualization"
}

See https://github.com/fastfetch-cli/fastfetch?tab=readme-ov-file#q-i-want-feature-a--b--c-will-fastfetch-support-it

It indeed did the trick sorry for wasting your time