Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kvm2: this function is not supported by the connection driver: virNetworkDefineXML #4195

Closed
frunzales opened this issue May 2, 2019 · 2 comments
Labels
co/kvm2-driver KVM2 driver related issues kind/support Categorizes issue or PR as a support question. triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@frunzales
Copy link

frunzales commented May 2, 2019

I'm unable to do a 'minikube start' on gentoo ~amd64. Could this be libvirt related?

xxx@x230 ~ $ minikube start --vm-driver kvm2 --logtostderr -v 8
😄  minikube v1.0.1 on linux (amd64)
...
💣  Unable to start VM: create: Error creating machine: Error in driver during machine creation: creating network: defining network from xml:
<network>
  <name>minikube-net</name>
  <dns enable='no'/>
  <ip address='192.168.39.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.39.2' end='192.168.39.254'/>
    </dhcp>
  </ip>
</network>
: virError(Code=3, Domain=19, Message='this function is not supported by the connection driver: virNetworkDefineXML')
@tstromberg tstromberg changed the title minikube won't start with kvm2 driver kvm2: this function is not supported by the connection driver: virNetworkDefineXML May 2, 2019
@tstromberg
Copy link
Contributor

I found this Gentoo forum post which seems relevant: https://forums.gentoo.org/viewtopic-t-981692-start-0.html

You need libvirt built with USE=virt-network too.

Do you mind checking if that fixes the problem, and if it does, provide the exact steps for rebuilding libvirt appropriately? I'd like to improve the error message so that it is more helpful to others who run into this problem.

@tstromberg tstromberg added co/kvm2-driver KVM2 driver related issues triage/needs-information Indicates an issue needs more information in order to work on it. kind/support Categorizes issue or PR as a support question. labels May 2, 2019
@frunzales
Copy link
Author

@tstromberg you're right, I rebuild libvirt with USE=virt-network and things seem to be better. I think it's safe to close for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/kvm2-driver KVM2 driver related issues kind/support Categorizes issue or PR as a support question. triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

2 participants