-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Requested operation is not valid: network 'default' is not active. Retrying. #828
Comments
Using That seemed to solve the issue somewhat: After repeatedly trying |
Thanks for sharing your solution here. We should add this to our documentation for Debian with KVM. Are you interested in sending a PR? |
I'm not sure whether this is a solution or a workaround. Is it possible for minikube to enable the |
Ah that makes more sense. Thanks for the explanation. Yeah, we should try to fix this. The relevant code is here: https://github.com/dhiltgen/docker-machine-kvm/blob/master/kvm.go#L284 It looks like it sets the network to auto start, but maybe "active" is different than started? @r2d4 have you looked into this at all? |
Also note that I have two networks visible in Is it possible that one network is properly activated, but this is missing for the other? Maybe the calls to |
This is a known issue upstream in the kvm-driver dhiltgen/docker-machine-kvm#24 (comment) The docker-machine private network is managed by the driver I don't see any reason why we can't create our own network instead of using the default and manage that. |
Apologies if that was not clear from my last post. "One network [that] is properly activated" refers to the "docker-machines" network, while "the other" refers to the "default" network.
This seems possible: https://github.com/dhiltgen/docker-machine-kvm/blob/master/kvm.go#L115 I would assume, though, that it is simpler to fix dhiltgen/docker-machine-kvm#12, if it can be fixed in the way I described in my last comment. Thanks for finding me the upstream bug, I'll suggest the fix there. |
First time users need currently do:
|
@cruftex's suggestion works for me (I was previously doing a much more roundabout fix). Can it be included in the driver documentation? |
FYI I also see issues with
|
To restore the default network when something went b0rked, please do:
|
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
/remove-lifecycle stale I saw this issue with minikube v0.25.0 and --vm-driver=kvm2 on a Debian Buster-like-system.
But with EDIT: |
Lots of great tips in here, but my system (new Manjaro install) was even more raw, not even including the default.xml file from the libvirt source. Cribbing off of previous suggestions, the following worked for me: virsh net-define <(curl -s https://raw.githubusercontent.com/libvirt/libvirt/v4.0.0/src/network/default.xml)
virsh net-autostart default
sudo virsh net-start default |
still experiencing this issue with
|
If you have Virtual Machine Manager.. Just start the KVM default network
Or second option, if you want to run through CLI :
My suggestion, for best practices. Use the first option unless you want to manage the file paths of all your default virtual connections. Let the KVM application map and manage all the configuration files. |
A reboot did the job for me after running |
@robinhood018 Your suggestion worked! |
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
Minikube version (use
minikube version
): v0.12.2Environment:
cat ~/.minikube/machines/minikube/config.json | grep DriverName
): kvmdocker -v
): 1.12.3What happened:
Please note that I never get a chance to actually respond to the "report error" question. The console prompt was already flashing on the next line, which leads me to believe that the report was sent without my consent.
What you expected to happen:
Minikube should have started Kubernetes using KVM and created any missing networks.
How to reproduce it (as minimally and precisely as possible):
Hopefully the information given above is enough to reproduce it on a Debian 9.0 "Stretch" installation.
Anything else do we need to know:
There appear to be no networks configured in libvirt right now:
The text was updated successfully, but these errors were encountered: