[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libvirt-users
Subject:    could not find capabilities for arch=x86_64 domaintype=kvm
From:       shafnamol N <shafnamol29 () gmail ! com>
Date:       2021-10-13 12:25:55
Message-ID: CAKcAyz8c-CkgfOb2kZ-ZXJopSu7DkpRw2=sGPG8KhfP7NYn3tw () mail ! gmail ! com
[Download RAW message or body]

Hi,
I am new  to Libvirt and Qemu.I have installed Libvirt 6.10 and qemu-kvm
4.2.0 on CentOS8.
I configured and built libvirt based on instructions from
https://libvirt.org/compiling.html.
But when i tried to create a VM using virsh it shows the following error:
*# virsh create /home/abc.xml*

*error: Failed to create domain from /home/abc.xmlerror: invalid argument:
could not find capabilities for arch=x86_64 domaintype=kvm *
When i check the hypervisor capabilities ,it doest show qemu in guest
domain type.
# virsh capabilities
As per the reply from this mailing-list i passed an option while building
the libvirt.
ie.,

*meson build -Dsystem=true*

It worked for me.

But Now, i tried to migrate my work on a new machine with same os and
same version as above.

As part of,I configured and built libvirt.Also passed *meson build
-Dsystem=true *while building libvirt.

After installation I tried with

*# virsh create /home/abc.xml*

It results in the same error shown below.



*error: Failed to create domain from /home/abc.xmlerror: invalid argument:
could not find capabilities for arch=x86_64 domaintype=kvm *
I stuck here.
Thanks for the help in advance.

Shafnamol.N

[Attachment #3 (text/html)]

<div dir="ltr"><div>  Hi,</div><div><div>I am new   to Libvirt and Qemu.I have \
installed Libvirt 6.10 and qemu-kvm 4.2.0 on CentOS8.</div><div>I configured and \
built libvirt based on instructions from</div><div><a \
href="https://libvirt.org/compiling.html" \
target="_blank">https://libvirt.org/compiling.html</a>.</div><div>But when i tried to \
create a VM using virsh it shows the following error:</div><div><b># virsh create \
/home/abc.xml</b><br><b>error: Failed to create domain from /home/abc.xml<br>error: \
invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm \
</b><br></div><div><div>When i check the hypervisor capabilities ,it doest show qemu \
in guest domain type.</div><div># virsh capabilities</div></div><div>As per the reply \
from this mailing-list i passed an option while building the \
libvirt.</div><div>ie.,</div><div><pre><b>meson build \
-Dsystem=true</b><br></pre><pre><span style="font-family:arial,sans-serif">It worked \
for me.<br></span></pre><pre><span style="font-family:arial,sans-serif">But Now, i \
tried to migrate my work on a new machine with same os and same version as \
above.<br></span></pre><pre><span style="font-family:arial,sans-serif">As part of,I \
configured and built libvirt.Also passed <b>meson build -Dsystem=true </b>while \
building libvirt.<br></span></pre><pre><span \
style="font-family:arial,sans-serif">After installation I tried with <br><b># virsh \
create /home/abc.xml<br></b></span></pre><pre><span \
style="font-family:arial,sans-serif">It results in the same error shown \
below.<br><b></b></span></pre></div></div><div><b>error: Failed to create domain from \
/home/abc.xml<br>error: invalid argument: could not find capabilities for arch=x86_64 \
domaintype=kvm <br></b></div><div>I stuck here.</div><div>Thanks for the help in \
advance.</div><div><br></div><div>Shafnamol.N<br></div><div><b></b></div><div><br></div></div>




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic