You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows10下Minikube启动报错config.json未找到,求K8S技术帮助

Fixing Minikube's "config.json not found" Error After Manually Deleting Hyper-V VM

Hey there, let's sort out this issue without jumping straight to reinstalling Minikube—you don't need that yet! Here's what's going on and how to fix it:

Why This Happens

When you manually deleted the Hyper-V VM without running minikube stop first, Minikube's local configuration (stored in C:\Users\<YourUsername>\.minikube on Windows) didn't get updated. Minikube still expects the old VM's files and config to exist, so when you try to start a new instance, it can't locate the missing config.json tied to the deleted VM.

Step-by-Step Fix

  • First, clean up Minikube's stale state: Run this command in your terminal (as admin if needed):

    minikube delete
    

    This command will wipe out all residual Minikube configurations, leftover VM files, and state data—even though you already deleted the Hyper-V VM manually, this ensures Minikube's local records are fully reset.

  • Restart Minikube with your original command:

    minikube start --vm-driver hyperv --hyperv-virtual-switch "Primary Virtual Switch"
    

    Now Minikube will create a fresh VM and generate all the necessary config files from scratch.

  • Double-check your Hyper-V switch (if issues persist): Make sure your "Primary Virtual Switch" is set up as an External switch, bound to a working network adapter, and isn't disabled in Hyper-V Manager. A misconfigured switch can cause unexpected startup errors too.

No need to reinstall Minikube—this state cleanup is almost always enough to resolve this kind of config mismatch.

内容的提问来源于stack exchange,提问作者Sri

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 07:38:52