Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

KVM - Cannot access shared host folder from guest

$
0
0
Hi,
I have an Ubuntu 22.04 host running KVM. A guest is also running Ubuntu 22.04. I have configured a folder to be shared with the following configuration on the host:

Code:

<filesystem type="mount" accessmode="passthrough">
  <driver type="virtiofs"/>
  <binary path="/usr/lib/qemu/virtiofsd"/>
  <source dir="/mnt/data"/>
  <target dir="/data"/>
  <alias name="fs0"/>
  <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
</filesystem>

This has been working fine, but today I've begun having problems connecting to the shared folder. I can mount the drive from the guest with this command:

Code:

sudo mount -t virtiofs /data /mnt/data
However, attempting to navigate to the folder results in an error:

Code:

-bash: cd: data: Connection refused
Attempting to view permissions on the folder also results in an error:

Code:

$ ls -al
ls: cannot access 'data': Connection refused
total 8
drwxr-xr-x  3 root root 4096 Sep  7 22:53 .
drwxr-xr-x 20 root root 4096 Aug 24 22:03 ..
d?????????  ? ?    ?      ?            ? data


Viewing all articles
Browse latest Browse all 4211

Trending Articles