# NFS Input/output error Host: Windows10 Guest: generic/ubuntu2204

**URL:** <https://discuss.hashicorp.com/t/nfs-input-output-error-host-windows10-guest-generic-ubuntu2204/45043>\
**Category:** Vagrant\
**Tags:** windows\
**Created:** [September 30, 2022, 5:37pm UTC](https://discuss.hashicorp.com/t/nfs-input-output-error-host-windows10-guest-generic-ubuntu2204/45043 "2022-09-30T17:37:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yorik56](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/yorik56/32/31091_2.png) [@Yorik56](https://discuss.hashicorp.com/u/Yorik56)\
**Post date:** [September 30, 2022, 5:37pm UTC](https://discuss.hashicorp.com/t/nfs-input-output-error-host-windows10-guest-generic-ubuntu2204/45043/1 "2022-09-30T17:37:47Z")

</div>

Hello,

I have a problem sharing a folder under NFS with vagrant.  
The OS of the host machine is windows 10. The OS of the virtual machine is ubuntu220401.  
The box used to create the machine is: “generic/ubuntu2204”.

The problem is the following: when I create/edit a file in the shared folder from the host machine and then I try to read the file via the virtual environment, it is corrupted:

```nohighlight
vagrant@ubuntu2204:/$ cat host.txt
cat: host.txt: Input/output error

```

I specify that I created similar installations with the versions ubuntu160401, ubuntu180401 and ubuntu200401  
and I had no problem with the folder sharing.

Here is the Vagrant file:

```nohighlight
Vagrant.configure("2") do |config|
  # Every Vagrant development environment requires a box. You can search for
  # boxes at https://vagrantcloud.com/search.
  config.vm.box = "generic/ubuntu2204"
  # Create a private network, which allows host-only access to the machine
  # using a specific IP.
  config.vm.network "private_network", ip: "192.168.33.10"

  mount_options = %w{rw,async,fsc,nolock,rsize=32768,wsize=32768,hard}
  config.vm.synced_folder ".", "/vagrant",
  type: "nfs",
  nfs_version: 3,
  nfs_udp: false,
  mount_options: mount_options

end

```

The versions used for the different tools are the following:  
VirtualBox: 6.1.38  
Vagrant: 2.3.0  
vagrant-bindfs (1.1.9, global)  
vagrant-vbguest (0.30.0, global)
