[prev in list] [next in list] [prev in thread] [next in thread]
List: libvirt-users
Subject: Debugging virtiofs
From: Popog <popog42 () gmail ! com>
Date: 2020-11-26 22:18:10
Message-ID: CADeUssT8_tOn4nfJWmpMcjZhO_iwQ32EKHxZ06iZTpB=hyN_Zw () mail ! gmail ! com
[Download RAW message or body]
I can't seem to start a VM with virtiofs. Everything is running as root
(unraid) with a pretty simple setup:
<filesystem type='mount' accessmode='passthrough'>
<driver type='virtiofs'/>
<binary path='/usr/libexec/virtiofsd' />
<source dir='/mnt/user/shared'/>
<target dir='shared_mount'/>
</filesystem>
Even with debug logging at max, all I get in the main log is:
qemu-system-x86_64: -device
vhost-user-fs-pci,chardev=chr-vu-fs0,tag=shared_mount,bus=pci.5,addr=0x0:
Failed to write msg. Wrote -1 instead of 12.
qemu-system-x86_64: -device
vhost-user-fs-pci,chardev=chr-vu-fs0,tag=shared_mount,bus=pci.5,addr=0x0:
vhost_dev_init failed: Operation not permitted
shutting down, reason=failed
And in the fsd log:
[ID: 00029648] virtio_session_mount: Waiting for vhost-user socket
connection...
[ID: 00029648] virtio_session_mount: Received vhost-user socket connection
[ID: 00000001] pivot_root(., .): Invalid argument
Nothing else in any other logs (e.g. dmesg). What do these errors mean? How
do I troubleshoot this?
[Attachment #3 (text/html)]
<div dir="ltr"><div>I can't seem to start a VM with virtiofs. Everything is \
running as root (unraid) with a pretty simple \
setup:</div><div><br></div><div><filesystem type='mount' \
accessmode='passthrough'><br> <driver \
type='virtiofs'/><br> <binary \
path='/usr/libexec/virtiofsd' /><br> <source \
dir='/mnt/user/shared'/><br> <target \
dir='shared_mount'/><br></filesystem></div><div><br></div><div>Even \
with debug logging at max, all I get in the main log \
is:</div><div><br></div><div>qemu-system-x86_64: -device \
vhost-user-fs-pci,chardev=chr-vu-fs0,tag=shared_mount,bus=pci.5,addr=0x0: Failed to \
write msg. Wrote -1 instead of 12.<br>qemu-system-x86_64: -device \
vhost-user-fs-pci,chardev=chr-vu-fs0,tag=shared_mount,bus=pci.5,addr=0x0: \
vhost_dev_init failed: Operation not permitted<br>shutting down, \
reason=failed</div><div><br></div><div>And in the fsd log:</div><div><br>[ID: \
00029648] virtio_session_mount: Waiting for vhost-user socket connection...<br>[ID: \
00029648] virtio_session_mount: Received vhost-user socket connection<br>[ID: \
00000001] pivot_root(., .): Invalid argument</div><div><br></div><div>Nothing else in \
any other logs (e.g. dmesg). What do these errors mean? How do I troubleshoot \
this?<br></div></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic