NFS requires a host-only network to be created

Running into this issue on vagrant up:

NFS requires a host-only network to be created.
Please add a host-only network to the machine (with either DHCP or a
static IP) for NFS to work.

Using:
Vagrant: 2.3.2
VirtualBox: 7.0.2
OS: macOS Ventura 13.0

Here is a copy of my vagrant file

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/bionic64"

  config.vm.network "private_network", ip: '192.168.56.13',
	virtualbox__intnet: true
  config.vm.hostname = "tophat"
  config.vm.synced_folder ".", "/var/www", type: "nfs"

  config.vm.provider "virtualbox" do |v|
    v.memory = 4048
    v.cpus = 2
  end

  config.vbguest.auto_update = true

  config.vm.network :forwarded_port, guest: 22, host: 2223, auto_correct: true
  config.vm.network :forwarded_port, guest: 80, host: 8081, auto_correct: true
  config.vm.network :forwarded_port, guest: 443, host: 8444, auto_correct: true
  config.vm.network :forwarded_port, guest: 3306, host: 3307, auto_correct: true
  config.vm.network :forwarded_port, guest: 8983, host: 8984, auto_correct: true

  config.vm.network :forwarded_port, guest: 3141, host: 3142, auto_correct: true
  config.vm.network :forwarded_port, guest: 5601, host: 5602, auto_correct: true


  config.vm.provision "shell", path: "bootstrap.sh"

end

Anyone know what I am missing? Many thanks in advance!

I’ve also found that my IPs do not resolve to the VM. And nfsd has full disk access.

1 Like

I have the same problem with macOS Monterey, Vagrant: 2.3.2, and VirtualBox: 7.0.2.

My setup is a bit different in the following areas (to try to accommodate that HostOnly network requirement but still to no avail):

config.vm.provider 'virtualbox' do |vb|
  vb.customize ['modifyvm', :id, '--nic2', 'hostonlynet', '--host-only-net2=HostOnly']
  # more customizations
end

config.vm.network :private_network, ip: vconfig.fetch('vagrant_ip'), hostsupdater: 'skip', virtualbox__intnet: 'HostOnly'

But I end up with the same error.

I am running into this exact same issue with macOS Ventura 13.0.1, Vagrant 2.3.2, VirtualBox 7.0.2.

Hi there. This issue is resolved in the latest release of Vagrant (2.3.3) which is now available