Determine if we are an Apple Virtualization Framework guest based on machine_model data.
Description
Apple provides a virtualization framework that supports arm64 and x86_64 guests depending on the host hardware. The virtual? method does not work if we are outside the Vagrant paradigm, so this change looks for the specific substring Apple sets in machine_model when creating guest hardware.
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Chore (non-breaking change that does not add functionality or fix an issue)
Checklist:
[x] I have read the CONTRIBUTING document.
[x] I have run the pre-merge tests locally and they pass.
[x] I have updated the documentation accordingly.
[x] I have added tests to cover my changes.
[ ] If Gemfile.lock has changed, I have used --conservative to do it and included the full output in the Description above.
Determine if we are an Apple Virtualization Framework guest based on
machine_model
data.Description
Apple provides a virtualization framework that supports arm64 and x86_64 guests depending on the host hardware. The
virtual?
method does not work if we are outside the Vagrant paradigm, so this change looks for the specific substring Apple sets inmachine_model
when creating guest hardware.Types of changes
Checklist:
Gemfile.lock
has changed, I have used--conservative
to do it and included the full output in the Description above.