Attaching synced folder with macOS guest #27
Replies: 2 comments 2 replies
-
The plugin has only been tested with QEMU backed VMs. I am also curious how you are able to run MacOS guest using the plugin ? Can you share the working Vagrantfile. If there is enough interest we can implement an Apple backend driver for the plugin. |
Beta Was this translation helpful? Give feedback.
-
I have just started to experiment with vagrant boxes using UTM and your plugin. For the ssh connection I had to use a private network so far and I had to set a static IP in the network preferences of the guest macOS . We need to test our installers on macOS and Windows, so we would be very happy if vagrant_utm could support these OS! Here is my Vagrantfile: Vagrant.configure("2") do |config|
config.vm.box = "vagrant_macos_14.5"
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# NOTE: This will enable public access to the opened port
# config.vm.network "forwarded_port", guest: 80, host: 8080
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine and only allow access
# via 127.0.0.1 to disable public access
# config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
# Create a private network, which allows host-only access to the machine
# using a specific IP.
config.vm.network "private_network", ip: "192.168.67.10"
config.ssh.host = "192.168.67.10"
config.ssh.insert_key = false
config.vm.synced_folder "test", "/Users/vagrant/shared"
config.vm.provider "utm" do |vb|
vb.cpus = 4
end
end Let me know, if you need more information! Cheers, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I noticed that synced folders with linux guests are supported now. What about macOS guests? I am running a Mac Book with M1 and latest UTM + vagrant + vagrant_utm, but I get the exception below, when I activate the synced folder in the Vagrantfile. My guest OS is macOS 14.5.
Vagrantfile:
Beta Was this translation helpful? Give feedback.
All reactions