virtio-fs.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: daggs <daggs@gmx.com>
To: virtio-fs@redhat.com
Subject: [Virtio-fs] vm hangs when booting with virtiofs
Date: Sat, 20 May 2023 12:10:28 +0200	[thread overview]
Message-ID: <trinity-69fb6e2a-760f-4a3b-9a40-c7472c34dab5-1684577428128@3c-app-mailcom-bs08> (raw)

Greetings,

I'm trying to boot a win11 vm with a virtiofs fs and the system just hangs on boot, I'd like some incites on what is the issue.
here is what I'm using:
- kernel 6.3.3
- libvirt 9.3.0
- qemu 8.0.0
- virtiofsd 1.5.1

I'm using the following cmd to run virtiofsd using socket: virtiofsd --socket-path=/var/lib/libvirt/helpers_state/windows/linux_home.socket --shared-dir /home/daggs --cache auto
where /var/lib/libvirt/helpers_state/windows/ is a tmpfs mount of 16K (tried with 1M too, same behavior)
the virtiofsd invocation is issued inside the prepare and begin qemu hook on libvirt.
I see this after virtiofsd is started: [2023-05-20T08:41:18Z INFO virtiofsd] Waiting for vhost-user socket connection...
and I call it like this: nohup <virtiofsd cmd> &

the vm's relevant config is this:
<domain type='kvm'>
...
<memory unit='KiB'>24582144</memory>
<currentMemory unit='KiB'>24582144</currentMemory>
<memoryBacking>
<source type='memfd'/>
<access mode='shared'/>
</memoryBacking>
<vcpu placement='static'>12</vcpu>
<cputune>
<vcpupin vcpu='0' cpuset='4'/>
<vcpupin vcpu='1' cpuset='5'/>
<vcpupin vcpu='2' cpuset='6'/>
<vcpupin vcpu='3' cpuset='7'/>
<vcpupin vcpu='4' cpuset='8'/>
<vcpupin vcpu='5' cpuset='9'/>
<vcpupin vcpu='6' cpuset='10'/>
<vcpupin vcpu='7' cpuset='11'/>
<vcpupin vcpu='8' cpuset='12'/>
<vcpupin vcpu='9' cpuset='13'/>
<vcpupin vcpu='10' cpuset='14'/>
<vcpupin vcpu='11' cpuset='15'/>
<emulatorpin cpuset='0-1'/>
</cputune>

...
<cpu mode='host-passthrough' check='none' migratable='on'>
<topology sockets='1' dies='1' cores='6' threads='2'/>
<cache mode='passthrough'/>
<feature policy='require' name='topoext'/>
</cpu>
...
<filesystem type='mount' accessmode='passthrough'>
<driver type='virtiofs' queue='1024'/>
<binary path='/usr/bin/virtiofsd'/>
<source socket='/var/lib/libvirt/helpers_state/windows/linux_home.socket'/>
<target dir='linux_home'/>
<address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
</filesystem>
...
</domain>

I'm running it via virsh, added -d 4, no errors in the log
when it is stuck, I get a black screen (using gpu pt to guest which work without it), ps shows both virsh start cmd running and stuck, two virtiofsd instances are up.
any ideas how to solve this?

Thanks,

Dagg


             reply	other threads:[~2023-05-20 10:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-20 10:10 daggs [this message]
2023-05-24 14:47 ` [Virtio-fs] vm hangs when booting with virtiofs German Maglione
2023-05-25  6:34   ` daggs
2023-05-24 14:51 ` German Maglione
2023-05-25  6:38   ` daggs
2023-05-25 13:57     ` German Maglione
2023-05-29 21:26       ` daggs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=trinity-69fb6e2a-760f-4a3b-9a40-c7472c34dab5-1684577428128@3c-app-mailcom-bs08 \
    --to=daggs@gmx.com \
    --cc=virtio-fs@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).