Previously Rex::Hardware::VirtInfo made heavy use of linuxisms and was not cross platform friendly.
This update uses /proc on Linux and dmidecode else where. For modules on FreeBSD kldstat is used. Unforftunately not aware of a good cross platform equivalent of the self_status check.
Also kvm module is now only looked for on Linux with vmm(bhyve) being looked for on FreeBSD.
Tested as working on FreeBSD bhyve host and guest as well as Linux kvm host.
Previously Rex::Hardware::VirtInfo made heavy use of linuxisms and was not cross platform friendly.
This update uses /proc on Linux and dmidecode else where. For modules on FreeBSD kldstat is used. Unforftunately not aware of a good cross platform equivalent of the self_status check.
Also kvm module is now only looked for on Linux with vmm(bhyve) being looked for on FreeBSD.
Tested as working on FreeBSD bhyve host and guest as well as Linux kvm host.
This PR is a proposal to fix # by .
Checklist