Use virt-manager to share files between Linux host and Windows guest

file-sharingkvmvirt-manager

Is it possible to use "Filesystem Passthrough" virtual hardware option inside virt-manager to share a folder on my Linux host with my Windows guest? I found some tutorials for how to do this with a Linux guest, but when I try this with my Windows guest I receive the following error message when attempting to start the VM:

Error starting domain: Unable to read from monitor: Connection reset by peer

Traceback (most recent call last):   File "/usr/share/virt-manager/virtManager/asyncjob.py", line 100, in cb_wrapper
    callback(asyncjob, *args, **kwargs)   File "/usr/share/virt-manager/virtManager/asyncjob.py", line 122, in tmpcb
    callback(*args, **kwargs)   File "/usr/share/virt-manager/virtManager/domain.py", line 1210, in startup
    self._backend.create()   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 698, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: Unable to read from monitor: Connection reset by peer

I tried sourcing some documentation but all I could find was the official page linking to a FAQ and "some screenshots".

Best Answer

I don't believe this is possible using Windows guests. I usually setup a Samba server on the Linux KVM host and then share a folder out using that to my KVM guests.

Filesystem Passthrough

The documentation on sharing a KVM host's directory with the KVM guests (Linux) is available here on the virt-manager website. The page is titled: Example Sharing Host files with the Guest.

Setting up Samba

The linux-kvm website also contains directions for setting up Samba. That documentation is available here, titled: Tip: How you can share files on your Linux Host with a Windows Guest using Samba.

Related Question