Skip to content

Commit 4bb525d

Browse files
committed
Update for amd64 architecture
Doesn't work yet though.
1 parent c8f5cb1 commit 4bb525d

2 files changed

Lines changed: 26 additions & 3 deletions

File tree

README.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,10 +648,33 @@ There's a Vagrantfile with a FreeBSD VM included.
648648
It requires a couple of steps to get running:
649649

650650
```
651-
vagrant up freebsd
652-
vagrant ssh freebsd
651+
brew install --cask utm
652+
vagrant plugin install vagrant_utm
653+
vagrant destroy freebsd
654+
vagrant up freebsd --provider=utm
655+
```
656+
657+
Then in UTM, log in with `vagrant`, password `vagrant`, and run these commands.
658+
659+
```
653660
cd /app
654661
./run_in_vm.sh
655662
```
656663

657664
Then, visit http://localhost:4001
665+
666+
### Syncing volumes
667+
668+
The FreeBSD VM uses rsync for syncing volumes. After making changes to files on your host machine, sync them to the VM:
669+
670+
```
671+
vagrant rsync freebsd
672+
```
673+
674+
To automatically sync changes as you make them:
675+
676+
```
677+
vagrant rsync-auto freebsd
678+
```
679+
680+
This will watch for file changes and sync them automatically to the VM.

Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Vagrant.configure("2") do |config|
33
config.vm.define "freebsd" do |freebsd|
44
freebsd.vm.box = "bento/freebsd-14"
5+
freebsd.vm.box_architecture = "amd64"
56
freebsd.vm.guest = :freebsd
67
freebsd.vm.network "private_network", type: "dhcp"
78
freebsd.vm.synced_folder "./elixir/phoenix/app", "/app", type: "rsync",
@@ -18,7 +19,6 @@ Vagrant.configure("2") do |config|
1819
u.cpus = 2
1920
u.memory = 2048
2021
u.icon = "freebsd"
21-
#u.directory_share_mode = "webDAV"
2222
u.check_guest_additions = false
2323
end
2424
freebsd.ssh.shell = "sh"

0 commit comments

Comments
 (0)