# Persistent volume local path- unable to set windows path

**URL:** https://discuss.kubernetes.io/t/persistent-volume-local-path-unable-to-set-windows-path/13626
**Category:** microk8s
**Created:** [November 9, 2020, 4:38pm UTC](https://discuss.kubernetes.io/t/persistent-volume-local-path-unable-to-set-windows-path/13626 "2020-11-09T16:38:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![moulshree](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@moulshree](https://discuss.kubernetes.io/u/moulshree)
#### Post date: [November 9, 2020, 4:38pm UTC](https://discuss.kubernetes.io/t/persistent-volume-local-path-unable-to-set-windows-path/13626/1 "2020-11-09T16:38:34Z")

</div>

Hi, I am unable to set windows path in kubernetes PV local path. please assist.  
apiVersion: v1

kind: PersistentVolume

metadata:

name: test-pf-profile-volume

spec:

accessModes:

- ReadOnlyMany

capacity:

```
storage: 10Gi

```

local:

```
path: "C:/Users/anurag/Documents/lab03"

```

nodeAffinity:

```
required:

  nodeSelectorTerms:

  - matchExpressions:

    - key: kubernetes.io/hostname

      operator: In

      values:

      - docker-desktop

```

storageClassName: local-in-storage

volumeMode: Filesystem

kubernetes version: 1.19.2  
using Docker Desktop, windows 10  
error:  
Events:  
Type Reason Age From Message

* * *

Warning FailedScheduling 19s default-scheduler 0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.  
Normal Scheduled 19s default-scheduler Successfully assigned default/test-85b7d4985f-qncnv to docker-desktop  
Warning FailedMount 3s (x6 over 19s) kubelet, docker-desktop MountVolume.NewMounter initialization failed for volume “test-pf-profile-volume” : path “C:/Users/anurag/Documents/lab03” does not exist

---

<div class="post-metadata">

### Author: ![balchua1](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/balchua1/32/5372_2.png) [@balchua1](https://discuss.kubernetes.io/u/balchua1)
#### Post date: [November 9, 2020, 9:50pm UTC](https://discuss.kubernetes.io/t/persistent-volume-local-path-unable-to-set-windows-path/13626/2 "2020-11-09T21:50:36Z")

</div>

I am not a windows user, but i dont think hyperv underneath will mount the host’s windows file system to the guest vm (i.e. where MicroK8s run).  
You might be able to do this using `SMB` or start an NFS from your windows. Haven’t tried this myself. Link i found on the net [https://linuxhint.com/shared\_folders\_hypver-v\_ubuntu\_guest/](https://linuxhint.com/shared_folders_hypver-v_ubuntu_guest/)

---

<div class="post-metadata">

### Author: ![kjackal](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/kjackal/32/1750_2.png) [@kjackal](https://discuss.kubernetes.io/u/kjackal)
#### Post date: [November 17, 2020, 6:50am UTC](https://discuss.kubernetes.io/t/persistent-volume-local-path-unable-to-set-windows-path/13626/3 "2020-11-17T06:50:54Z")

</div>

You may want to look at `multipass mount` on how to share the in-host directory with the microk8s vm [1, 2].

[1] [https://www.techrepublic.com/article/how-to-share-data-between-host-and-vm-with-multipass/](https://www.techrepublic.com/article/how-to-share-data-between-host-and-vm-with-multipass/)  
[2] [https://discourse.ubuntu.com/t/moving-files-to-instances-on-windows/14853](https://discourse.ubuntu.com/t/moving-files-to-instances-on-windows/14853)
