# NFS requires host-only network

**URL:** <https://discuss.hashicorp.com/t/nfs-requires-host-only-network/58908>\
**Category:** Vagrant\
**Created:** [October 7, 2023, 2:23pm UTC](https://discuss.hashicorp.com/t/nfs-requires-host-only-network/58908 "2023-10-07T14:23:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilearner](https://avatars.discourse-cdn.com/v4/letter/i/9f8e36/32.png) [@ilearner](https://discuss.hashicorp.com/u/ilearner)\
**Post date:** [October 7, 2023, 2:23pm UTC](https://discuss.hashicorp.com/t/nfs-requires-host-only-network/58908/1 "2023-10-07T14:23:58Z")

</div>

Environment:  
Win 11 Home Edition  
Vagrant 2.3.7  
box ‘generic/ubuntu2204’ version ‘4.3.2’  
Plugin: vagrant-winnfsd

I am trying to use nfs file sharing however I am getting this error:

```auto
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.

```

I have tried various suggestions from internet but all have failed with similar message.  
Here is my current Vagrantfile configuration:

```auto
  # Mount gloss-translation project root folder.
  config.vm.synced_folder "../gloss-translation", "/home/vagrant/gloss-translation", type: "nfs"

  # A private dhcp network is required for NFS to work (on Windows hosts, at least)
  Vagrant::Config.run do |config|
    config.vm.network :hostonly, "192.168.2.10"
  end

  # Configure for application API
  config.vm.network "forwarded_port", guest: 4300, host: 4305, host_ip: "127.0.0.1"

```

Any help is greatly appreciated.
