<div dir="ltr"><pre class="notranslate"><code class="notranslate"><font size="4">Is there someone that can help me ? thanks.<br><br># sudo usermod -a -G libvirt root
# sudo usermod -a -G libvirtd root
# sudo usermod -a -G libvirt-qemu libvirt-qemu
# sudo usermod -a -G libvirt marietto
# sudo adduser libvirt-qemu
# sudo groupadd --system libvirt
# sudo groupadd --system libvirt-qemu
# sudo newgrp libvirt-qemu
# newgrp libvirt

# /usr/local/sbin# libvirtd &
[1] 2875

# virtqemud &
[2] 2906

# /usr/local/sbin# 2023-08-26 22:53:10.190+0000: 2923: info : libvirt version: 9.7.0

2023-08-26 22:53:10.190+0000: 2923: info : hostname: chromarietto
<br>2023-08-26 22:53:10.190+0000: 2923: error : virPidFileAcquirePathFull:409 : <br>Failed to acquire pid file '/var/local/run/libvirt/qemu/driver.pid': <br>Resource temporarily unavailable
<br>2023-08-26 22:53:10.192+0000: 2923: error : virStateInitialize:672 : <br>Initialization of QEMU state driver failed: Failed to acquire pid file <br>'/var/local/run/libvirt/qemu/driver.pid': Resource temporarily unavailable
<br>2023-08-26 22:53:10.192+0000: 2923: error : daemonRunStateInit:617 : <br>Driver state initialization failed

# /usr/local/sbin# ps ax | grep libvirt
 2875 pts/0    Sl     0:00 libvirtd
 
# /usr/local/sbin# ps ax | grep virtqemu</font>
</code></pre></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 25, 2023 at 11:43 PM Mario Marietto <<a href="mailto:marietto2008@gmail.com">marietto2008@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><font size="4"><span style="font-family:monospace"><span style="font-weight:bold;background-color:rgb(255,255,255);color:rgb(0,0,0)">The real problem seems to be that the libvirtd process won't start : </span><span style="font-weight:bold;background-color:rgb(255,255,255);color:rgb(0,0,0)"><br></span></span></font></div><div><font size="4"><span style="font-family:monospace"><span style="font-weight:bold;color:rgb(84,255,84);background-color:rgb(255,255,255)"><br></span></span></font></div><div><font size="4"><span style="font-family:monospace"><span style="font-weight:bold;color:rgb(84,255,84);background-color:rgb(255,255,255)">marietto@chromarietto</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">:</span><span style="font-weight:bold;color:rgb(84,84,255);background-color:rgb(255,255,255)">~</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">$ systemctl enable libvirtd
</span><br><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)"><br></span></span></font></div><div><font size="4"><span style="font-family:monospace"><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files ====</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
</span><br>Authentication is required to manage system service or unit files.
<br>Multiple identities can be used for authentication:
<br> 1.  linux
<br> 2.  mario,,, (marietto)
<br>Choose identity to authenticate as (1-2): 2
<br>Password:  <br><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">==== AUTHENTICATION COMPLETE ====</span><br><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
</span><br></span><span style="font-family:monospace"><span style="font-weight:bold;color:rgb(84,255,84);background-color:rgb(255,255,255)">marietto@chromarietto</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">:</span><span style="font-weight:bold;color:rgb(84,84,255);background-color:rgb(255,255,255)">~</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">$ systemctl start libvirtd
</span><br><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)"><br></span></span></font></div><div><font size="4"><span style="font-family:monospace"><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ====</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
</span><br>Authentication is required to start 'libvirtd.service'.
<br>Multiple identities can be used for authentication:
<br> 1.  linux
<br> 2.  mario,,, (marietto)
<br>Choose identity to authenticate as (1-2): 2
<br>Password:  <br><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">==== AUTHENTICATION COMPLETE ====</span><br><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
</span><br></span></font></div><div><font size="4"><span style="font-family:monospace"><span style="font-weight:bold;color:rgb(84,255,84);background-color:rgb(255,255,255)">marietto@chromarietto</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">:</span><span style="font-weight:bold;color:rgb(84,84,255);background-color:rgb(255,255,255)">~</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">$ systemctl status libvirtd
</span></span></font></div><div><font size="4"><span style="font-family:monospace"></span></font></div><div><font size="4"><span style="font-family:monospace"><br></span></font></div><div><font size="4"><span style="font-family:monospace">○ libvirtd.service - Virtualization daemon
</span></font></div><div><font size="4"><span style="font-family:monospace"></span></font></div><font size="4"><span style="font-family:monospace">     Loaded: loaded (/usr/local/lib/systemd/system/libvirtd.service; <span style="font-weight:bold;color:rgb(84,255,84);background-color:rgb(255,255,255)">enabled</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">; preset: </span><span style="font-weight:bold;color:rgb(84,255,84);background-color:rgb(255,255,255)">enabled</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">)
</span><br>     Active: inactive (dead) since Fri 2023-08-25 21:04:37 UTC; 2s ago
<br>   Duration: 88ms
<br>TriggeredBy: <span style="font-weight:bold;color:rgb(84,255,84);background-color:rgb(255,255,255)">●</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"> libvirtd-admin.socket
</span><br>             <span style="font-weight:bold;color:rgb(84,255,84);background-color:rgb(255,255,255)">●</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"> libvirtd-ro.socket
</span><br>             <span style="font-weight:bold;color:rgb(84,255,84);background-color:rgb(255,255,255)">●</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"> libvirtd.socket
</span><br>       Docs: man:libvirtd(8)
<br>             <a href="https://libvirt.org" target="_blank">https://libvirt.org</a>
<br>    Process: 3488 ExecStart=/usr/local/sbin/libvirtd $LIBVIRTD_ARGS (code=exited, status=0/SUCCESS)
<br>   Main PID: 3488 (code=exited, status=0/SUCCESS)
<br></span></font><div><font size="4"><span style="font-family:monospace">        CPU: 252ms</span></font></div><div><font size="4"><span style="font-family:monospace"><br></span></font></div><div><font size="4"><span style="font-family:monospace">As you can see,it says "inactive". This is the reason :</span></font></div><div><font size="4"><span style="font-family:monospace"><br></span></font></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">Aug 25 21:22:59 chromarietto libvirtd[3663]: </span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">invalid argument: Failed to parse user 'libvirt-qemu'</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
</span><br>Aug 25 21:22:59 chromarietto libvirtd[3663]: <span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">Initialization of QEMU state driver failed: invalid argument: Failed to parse user 'libvirt-qemu'</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
</span><br>Aug 25 21:22:59 chromarietto libvirtd[3663]: <span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">Driver state initialization failed</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
</span><br>Aug 25 21:22:59 chromarietto systemd[1]: libvirtd.service: Deactivated successfully.<br></span></div><span style="font-family:monospace"></span></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 25, 2023 at 10:27 PM Mario Marietto <<a href="mailto:marietto2008@gmail.com" target="_blank">marietto2008@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><span style="font-family:monospace;color:rgb(0,0,0)"><font size="4"><span style="font-weight:bold;background-color:rgb(255,255,255)">I think that what I found is very interesting :</span></font></span></div><div><span style="font-family:monospace"><font size="4"><span style="font-weight:bold;color:rgb(84,255,84);background-color:rgb(255,255,255)"><br></span></font></span></div><div><span style="font-family:monospace"><font size="4"><span style="font-weight:bold;color:rgb(84,255,84);background-color:rgb(255,255,255)">marietto@chromarietto</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">:</span><span style="font-weight:bold;color:rgb(84,84,255);background-color:rgb(255,255,255)">~/Desktop/Dati/new/libvirt/build</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">$ systemctl start virtqemud
</span></font></span></div><div><span style="font-family:monospace"></span></div><div><span style="font-family:monospace"><font size="4"><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)"><br></span></font></span></div><div><span style="font-family:monospace"><font size="4"><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ====</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
</span></font></span></div><div><span style="font-family:monospace"></span></div><span style="font-family:monospace"><font size="4">Authentication is required to start 'virtqemud.service'.
<br>Multiple identities can be used for authentication:
<br> 1.  linux
<br> 2.  mario,,, (marietto)
<br>Choose identity to authenticate as (1-2): 2
<br>Password:  <br></font></span><div><span style="font-family:monospace"><font size="4"><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">==== AUTHENTICATION COMPLETE ====</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
</span></font></span></div><br><div><span style="font-family:monospace"><font size="4"><span style="font-weight:bold;color:rgb(84,255,84);background-color:rgb(255,255,255)">marietto@chromarietto</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">:</span><span style="font-weight:bold;color:rgb(84,84,255);background-color:rgb(255,255,255)">~/Desktop/Dati/new/libvirt/build</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">$ systemctl enable virtqemud</span></font></span></div><div><span style="font-family:monospace"><font size="4"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></span></font></span></div><div><span style="font-family:monospace"></span></div><span style="font-family:monospace"><font size="4"><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files ====</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
</span><br>Authentication is required to manage system service or unit files.
<br>Multiple identities can be used for authentication:
<br> 1.  linux
<br> 2.  mario,,, (marietto)
<br>Choose identity to authenticate as (1-2): 2
<br>Password:  <br><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">==== AUTHENTICATION COMPLETE ====</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
</span><br><br><span style="font-weight:bold;color:rgb(84,255,84);background-color:rgb(255,255,255)">marietto@chromarietto</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">:</span><span style="font-weight:bold;color:rgb(84,84,255);background-color:rgb(255,255,255)">~/Desktop/Dati/new/libvirt/build</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">$ ls /var/local/run/libvirt/virtqemud-sock
</span><br></font></span><div><span style="font-family:monospace"><font size="4"><span style="font-weight:bold;color:rgb(255,84,255);background-color:rgb(255,255,255)">/var/local/run/libvirt/virtqemud-sock</span></font></span></div><br><div></div><div><span style="font-family:monospace"></span></div><div><span style="font-family:monospace"><font size="4"><span style="font-weight:bold;background-color:rgb(255,255,255);color:rgb(0,0,0)">but when I launch virt-manager :</span><span style="font-weight:bold;background-color:rgb(255,255,255);color:rgb(0,0,0)"><br></span></font></span></div><div><span style="font-family:monospace"><font size="4"><span style="font-weight:bold;color:rgb(84,255,84);background-color:rgb(255,255,255)"><br></span></font></span></div><div><span style="font-family:monospace"><font size="4"><span style="font-weight:bold;color:rgb(84,255,84);background-color:rgb(255,255,255)">marietto@chromarietto</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">:</span><span style="font-weight:bold;color:rgb(84,84,255);background-color:rgb(255,255,255)">~/Desktop/Dati/new/libvirt/build</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">$ /usr/local/bin/./virt-manager </span></font></span></div><div><span style="font-family:monospace"><font size="4"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></span></font></span></div><div><span style="font-family:monospace"><font size="4"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">It tries to connect,but it gets disconnected after a couple of seconds and the error "</span></font></span><font size="4">Failed to connect socket to '/var/run/libvirt/virtqemud-sock': No such file or directory' is shown again. <br></font></div><div><br></div><div><font size="4" style="color:rgb(0,0,0)">In addition,virtqemud-sock is deleted :</font><br></div><div><div><br></div></div><div><span style="font-family:monospace"></span></div><span style="font-family:monospace"><font size="4"><span style="font-weight:bold;color:rgb(84,255,84);background-color:rgb(255,255,255)">marietto@chromarietto</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">:</span><span style="font-weight:bold;color:rgb(84,84,255);background-color:rgb(255,255,255)">~/Desktop/Dati/new/libvirt/build</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">$ ls /var/local/run/libvirt/virtqemud-sock
</span><br></font></span><div><span style="font-family:monospace"><font size="4">ls: cannot access '/var/local/run/libvirt/virtqemud-sock': No such file or directory</font></span></div><br><div><br></div><div><font size="4">The same problem I have has been found here and solved : </font></div><div><font size="4"><br></font></div><div><a href="https://unix.stackexchange.com/questions/715726/virsh-list-throw-error-failed-to-connect-socket-to-var-run-libvirt-virtqemud" target="_blank"><font size="4">https://unix.stackexchange.com/questions/715726/virsh-list-throw-error-failed-to-connect-socket-to-var-run-libvirt-virtqemud</font></a><br></div><div><span style="font-family:monospace"></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 25, 2023 at 8:34 PM Mario Marietto <<a href="mailto:marietto2008@gmail.com" target="_blank">marietto2008@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I don't agree with some of your assumptions,for example :</div><div><br></div><div>1) to send a screenshot is most of the time more informative than copy and paste text,because it contains more information. To describe complicated situations using only words takes a LOT of time,sometimes. Especially for the newbies,that aren't so skilled and they may have some difficulty in including or not some information. And even for the lack of a technical language. <br></div><div><br></div><div>2) From my experience, going to irc to ask for help can be a problem for the time zone. Every time I tried to go to an IRC channel,I've always found bots and not talking users.</div><div><br></div><div>3) The rejection of emails happens even if I don't attach any screenshots (a thing that I do rarely),and my messages are also rejected because when I hit reply also all the story is attached. I think that it's important to attach the story  because it may contains important details that could be missed<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 25, 2023 at 8:24 PM Eric Blake <<a href="mailto:eblake@redhat.com" target="_blank">eblake@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Aug 25, 2023 at 07:13:26PM +0200, Mario Marietto wrote:<br>
> I've sent you an email on your personal email address because the ML does<br>
> not accept pictures,but I need to show you a picture to help you to<br>
> understand well. I don't approve this rule of the ML,it does not help those<br>
> who want to learn and for this reason need to be exhaustive when there is a<br>
> strong need to explain well.<br>
<br>
The list has a cap at 300k for a reason.  Sending larger attachments<br>
to the list then multiplies out to gigabytes of network data when<br>
counting the number of subscribers, even though many of those<br>
subscribers are not actively participating in the thread.  Sending a<br>
URL to an image hosted externally uses much less bandwidth.  Also, if<br>
the problem is something that happens in a terminal window, it is less<br>
bandwidth-intensive to just copy/paste the contents of the terminal<br>
(as text) instead of attaching a screenshot to your email, and no less<br>
informative.<br>
<br>
You may also try IRC; there, you can probably get faster turnaround<br>
times than waiting for emails to bounce back and forth.<br>
<a href="https://libvirt.org/contact.html#irc" rel="noreferrer" target="_blank">https://libvirt.org/contact.html#irc</a><br>
<br>
although at the end of the day, email is more persistent and reaches a<br>
larger audience whereas IRC only reaches whoever is online at the time.<br>
<br>
-- <br>
Eric Blake, Principal Software Engineer<br>
Red Hat, Inc.<br>
Virtualization:  <a href="http://qemu.org" rel="noreferrer" target="_blank">qemu.org</a> | <a href="http://libguestfs.org" rel="noreferrer" target="_blank">libguestfs.org</a><br>
<br>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Mario.<br></div>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Mario.<br></div>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Mario.<br></div>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Mario.<br></div>