Add support for Apple Virtualization VMs with VirtioFS and mDNS SSH#44
Open
DimmKirr wants to merge 1 commit intonaveenrajm7:mainfrom
Open
Add support for Apple Virtualization VMs with VirtioFS and mDNS SSH#44DimmKirr wants to merge 1 commit intonaveenrajm7:mainfrom
DimmKirr wants to merge 1 commit intonaveenrajm7:mainfrom
Conversation
- feat(vagrantfile_examples/macOS): add example Vagrantfile for Apple Virtualization using VirtioFS and mDNS SSH - feat(test/acceptance/macos): add acceptance Vagrantfile and shell script to test macOS Apple Virtualization VMs with VirtioFS - feat(lib/vagrant_utm/config): add skip_directory_share_mode config to disable QEMU directory share mode for Apple Virtualization - feat(lib/vagrant_utm/synced_folder): skip folder auto-setup for Apple VMs; prompt manual VirtioFS config via UTM GUI - feat(lib/vagrant_utm/action): add PromptVirtioFS action to warn users to manually configure shared folders in UTM GUI for Apple VMs - fix(lib/vagrant_utm/driver/version_4_5): handle unsupported ip-address command error gracefully for Apple Virtualization VMs - fix(lib/vagrant_utm/driver/version_4_6): add missing -l JavaScript argument to osascript calls for shared folder commands - chore(Gemfile): add vagrant-spec gem for acceptance testing - chore(Rakefile): add test tasks with unit and acceptance specs including macOS tests - test(test/acceptance/provider/macos_spec): add acceptance tests verifying VM boot, SSH, Homebrew, and synced folder functionality on macOS Apple Virtualization VMs - docs(vagrantfile_examples/macOS/README.md): add comprehensive instructions for creating and using macOS Vagrant boxes with UTM Apple Virtualization provider, including manual VirtioFS folder setup and troubleshooting tips
Author
|
Hi @naveenrajm7 , LMK if there are any changes I could make to make this easier (or if it doesn't look reasonable, that's fine too!) Thanks! |
Owner
|
Hi @DimmKirr Thanks a lot for your contribution. |
Owner
|
When IP address for Apple backend arrives it makes our life easier to support Apple backed VMs, so no dns hack needed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Due to missing api integrations there is no way to run MacOS as a guest (at least I was not able to do it).
I've made some fixes and added a workaround for adding shared volumes manually.
I've also added an acceptance test.
This test needs a local
macOS26box with the following:(I wish I could attach a
packer.hclfile, but due to the same limitations it doesn't seem to be possible yet)vagrantuserbrew versiontest)vagrant-macos(since mDNS seems to be the only way to connect to it nicely)Changes
Testing
Run Test & Get the Shared Dir Path
At this point vagrant pauses and waits for our manual intervention
Manually Configure Shared Dir
Press Enter