$ vagrant up
Bringing machine 'web01' up with 'virtualbox' provider...
Bringing machine 'app01' up with 'virtualbox' provider...
Bringing machine 'rmq01' up with 'virtualbox' provider...
Bringing machine 'mc01' up with 'virtualbox' provider...
Bringing machine 'db01' up with 'virtualbox' provider...
==> web01: Checking if box 'ubuntu/xenial64' version '20211001.0.0' is up to date...
==> web01: [vagrant-hostmanager:guests] Updating hosts file on active guest virtual machines...
==> web01: [vagrant-hostmanager:host] Updating hosts file on your workstation (password may be required)...
C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.7.0/fileutils.rb:1415:in `initialize': Permission denied @ rb_sysopen - C:/Users/galsr/.vagrant.d/tmp/hosts.local (Errno::EACCES)
first you need to delete C:/Users/galsr/.vagrant.d/tmp/hosts.local
then go to C:/Windows/system32/drivers/etc/hosts , right click hosts select properties uncheck read only and select tab security klik edit and checklist fullcontrol permission to all users apply and ok
Windows 11 pro
$ vagrant up Bringing machine 'web01' up with 'virtualbox' provider... Bringing machine 'app01' up with 'virtualbox' provider... Bringing machine 'rmq01' up with 'virtualbox' provider... Bringing machine 'mc01' up with 'virtualbox' provider... Bringing machine 'db01' up with 'virtualbox' provider... ==> web01: Checking if box 'ubuntu/xenial64' version '20211001.0.0' is up to date... ==> web01: [vagrant-hostmanager:guests] Updating hosts file on active guest virtual machines... ==> web01: [vagrant-hostmanager:host] Updating hosts file on your workstation (password may be required)... C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.7.0/fileutils.rb:1415:in `initialize': Permission denied @ rb_sysopen - C:/Users/galsr/.vagrant.d/tmp/hosts.local (Errno::EACCES)