installer: libvirt: Could not find any guests for architecure type hvm/x86_64

Version

Sorry, I cannot provide the version now. I clone and build it today, may be the latest version. I will provide the exact version later.

$ openshift-install version

Platform (aws|libvirt|openshift):

libevirt

What happened?

[root@dhcp-140-58 installer]# ./bin/openshift-install create cluster --log-level debug
...
...
...
Error: Error applying plan:
 
2 error(s) occurred:
 
* module.bootstrap.libvirt_domain.bootstrap: 1 error(s) occurred:
 
* libvirt_domain.bootstrap: Error defining libvirt domain: virError(Code=8, Domain=44, Message='invalid argument: could not find capabilities for domaintype=kvm ')
* libvirt_domain.master: 1 error(s) occurred:
 
* libvirt_domain.master: Error defining libvirt domain: virError(Code=8, Domain=44, Message='invalid argument: could not find capabilities for domaintype=kvm ')
 
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
FATAL Error executing openshift-install: exit status 1

What you expected to happen?

create the cluster successfully.

How to reproduce it (as minimally and precisely as possible)?

Not sure. I just followed the https://github.com/openshift/installer/blob/master/docs/dev/libvirt-howto.md step by step.

$ no console

Anything else we need to know?

I used Fedora 25 for this building, I’m upgrading it to 28, and then have a try.

References

By the way, how can I build the 4.0 cluster in the MacOS?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 20 (10 by maintainers)

Most upvoted comments

The reason you hit Could not find any guests for architecure type hvm/x86_64 or at least the reason I did was that the instructions never actually tell you to install qemu, they assume that installing libvirt pulls it in but this is not the case.

You need to explicitly yum install qemu-kvm (or preferably qemu-kvm-[rh]ev if you are on RHEL/CentOS). See also:

https://github.com/openshift/installer/pull/690