Skip to content

Comments

update Rex::Hardware::VirtInfo to work in a cross platform manner#1599

Closed
VVelox wants to merge 6 commits intoRexOps:masterfrom
VVelox:virthw
Closed

update Rex::Hardware::VirtInfo to work in a cross platform manner#1599
VVelox wants to merge 6 commits intoRexOps:masterfrom
VVelox:virthw

Conversation

@VVelox
Copy link
Contributor

@VVelox VVelox commented Jul 11, 2023

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

  • based on top of latest source code
  • changelog entry included
  • automated tests pass
  • git history is clean
  • git commit messages are well-written

@VVelox VVelox marked this pull request as draft July 11, 2023 09:42
@VVelox VVelox closed this Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant