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

OS type not recognized #20170

Open
SinuxLee opened this issue Dec 28, 2024 · 2 comments
Open

OS type not recognized #20170

SinuxLee opened this issue Dec 28, 2024 · 2 comments
Labels
cause/libmachine-bug Bugs caused by libmachine co/generic-driver l/zh-CN Issues in or relating to Chinese os/linux priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.

Comments

@SinuxLee
Copy link

重现问题所需的命令

minikube start --force --driver=ssh --native-ssh=false --ssh-ip-address=10.0.84.118 --ssh-key='$HOME/.ssh/id_rsa' --ssh-user=root --alsologtostderr -v=4

失败的命令的完整输出


I1228 23:46:00.578762 53219 out.go:345] Setting OutFile to fd 1 ...
I1228 23:46:00.579033 53219 out.go:392] TERM=xterm,COLORTERM=, which probably does not support color
I1228 23:46:00.579053 53219 out.go:358] Setting ErrFile to fd 2...
I1228 23:46:00.579065 53219 out.go:392] TERM=xterm,COLORTERM=, which probably does not support color
I1228 23:46:00.579301 53219 root.go:338] Updating PATH: /root/.minikube/bin
W1228 23:46:00.579458 53219 root.go:314] Error reading config file at /root/.minikube/config/config.json: open /root/.minikube/config/config.json: no such file or directory
I1228 23:46:00.579765 53219 out.go:352] Setting JSON to false
I1228 23:46:00.580986 53219 start.go:129] hostinfo: {"hostname":"ffa-infra","uptime":276508,"bootTime":1735124253,"procs":232,"os":"linux","platform":"rocky","platformFamily":"rhel","platformVersion":"9.3","kernelVersion":"5.14.0-362.8.1.el9_3.x86_64","kernelArch":"x86_64","virtualizationSystem":"","virtualizationRole":"","hostId":"496d2242-03b1-6d67-e780-bc13103ab9d6"}
I1228 23:46:00.581061 53219 start.go:139] virtualization:
I1228 23:46:00.581884 53219 out.go:177] * minikube v1.34.0 on Rocky 9.3

  • minikube v1.34.0 on Rocky 9.3
    W1228 23:46:00.582384 53219 out.go:270] ! minikube skips various validations when --force is supplied; this may lead to unexpected behavior
    ! minikube skips various validations when --force is supplied; this may lead to unexpected behavior
    W1228 23:46:00.582461 53219 preload.go:293] Failed to list preload files: open /root/.minikube/cache/preloaded-tarball: no such file or directory
    I1228 23:46:00.582509 53219 notify.go:220] Checking for updates...
    I1228 23:46:00.582895 53219 config.go:182] Loaded profile config "minikube": Driver=ssh, ContainerRuntime=docker, KubernetesVersion=v1.31.0
    I1228 23:46:00.583245 53219 ssh_runner.go:195] Run: systemctl --version
    I1228 23:46:00.583326 53219 retry.go:31] will retry after 267.301577ms: new client: new client: Error creating new ssh host from driver: Error getting ssh host name for driver: IP address is not set
    I1228 23:46:00.851199 53219 retry.go:31] will retry after 488.054847ms: new client: new client: Error creating new ssh host from driver: Error getting ssh host name for driver: IP address is not set
    I1228 23:46:01.339626 53219 retry.go:31] will retry after 824.195851ms: new client: new client: Error creating new ssh host from driver: Error getting ssh host name for driver: IP address is not set
    I1228 23:46:02.164966 53219 driver.go:394] Setting default libvirt URI to qemu:///system
    I1228 23:46:02.166979 53219 out.go:177] * Using the ssh driver based on existing profile
  • Using the ssh driver based on existing profile
    I1228 23:46:02.168545 53219 start.go:297] selected driver: ssh
    I1228 23:46:02.168579 53219 start.go:901] validating driver "ssh" against &{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:gcr.io/k8s-minikube/kicbase:v0.0.45@sha256:81df288595202a317b1a4dc2506ca2e4ed5f22373c19a441b88cfbf4b9867c85 Memory:2200 CPUs:2 DiskSize:20000 Driver:ssh HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[] ContainerVolumeMounts:[] InsecureRegistry:[] RegistryMirror:[] HostOnlyCIDR:192.168.59.1/24 HypervVirtualSwitch: HypervUseExternalSwitch:false HypervExternalAdapter: KVMNetwork:default KVMQemuURI:qemu:///system KVMGPU:false KVMHidden:false KVMNUMACount:1 APIServerPort:8443 DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true HostOnlyNicType:virtio NatNicType:virtio SSHIPAddress:10.0.84.118 SSHUser:root SSHKey:$HOME/.ssh/id_rsa SSHPort:22 KubernetesConfig:{KubernetesVersion:v1.31.0 ClusterName:minikube Namespace:default APIServerHAVIP: APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin:cni FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: LoadBalancerStartIP: LoadBalancerEndIP: CustomIngressCert: RegistryAliases: ExtraOptions:[] ShouldLoadCachedImages:true EnableDefaultCNI:false CNI:} Nodes:[{Name: IP: Port:8443 KubernetesVersion:v1.31.0 ContainerRuntime:docker ControlPlane:true Worker:true}] Addons:map[] CustomAddonImages:map[] CustomAddonRegistries:map[] VerifyComponents:map[apiserver:true system_pods:true] StartHostTimeout:6m0s ScheduledStop: ExposedPorts:[] ListenAddress: Network: Subnet: MultiNodeRequested:false ExtraDisks:0 CertExpiration:26280h0m0s Mount:false MountString:/root:/minikube-host Mount9PVersion:9p2000.L MountGID:docker MountIP: MountMSize:262144 MountOptions:[] MountPort:0 MountType:9p MountUID:docker BinaryMirror: DisableOptimizations:false DisableMetrics:false CustomQemuFirmwarePath: SocketVMnetClientPath: SocketVMnetPath: StaticIP: SSHAuthSock: SSHAgentPID:0 GPUs: AutoPauseInterval:1m0s}
    I1228 23:46:02.168717 53219 start.go:912] status for ssh: {Installed:true Healthy:true Running:false NeedsImprovement:false Error: Reason: Fix: Doc: Version:}
    W1228 23:46:02.168990 53219 out.go:270] * The "ssh" driver should not be used with root privileges. If you wish to continue as root, use --force.
  • The "ssh" driver should not be used with root privileges. If you wish to continue as root, use --force.
    W1228 23:46:02.169021 53219 out.go:270] * If you are running minikube within a VM, consider using --driver=none:
  • If you are running minikube within a VM, consider using --driver=none:
    W1228 23:46:02.169045 53219 out.go:270] * https://minikube.sigs.k8s.io/docs/reference/drivers/none/
  • https://minikube.sigs.k8s.io/docs/reference/drivers/none/
    I1228 23:46:02.169247 53219 config.go:182] Loaded profile config "minikube": Driver=ssh, ContainerRuntime=docker, KubernetesVersion=v1.31.0
    W1228 23:46:02.169291 53219 out.go:270] * Tip: To remove this root owned cluster, run: sudo minikube delete
  • Tip: To remove this root owned cluster, run: sudo minikube delete
    I1228 23:46:02.169896 53219 cni.go:84] Creating CNI manager for ""
    I1228 23:46:02.169939 53219 cni.go:158] "ssh" driver + "docker" container runtime found on kubernetes v1.24+, recommending bridge
    I1228 23:46:02.169992 53219 start.go:340] cluster config:
    {Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:gcr.io/k8s-minikube/kicbase:v0.0.45@sha256:81df288595202a317b1a4dc2506ca2e4ed5f22373c19a441b88cfbf4b9867c85 Memory:2200 CPUs:2 DiskSize:20000 Driver:ssh HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[] ContainerVolumeMounts:[] InsecureRegistry:[] RegistryMirror:[] HostOnlyCIDR:192.168.59.1/24 HypervVirtualSwitch: HypervUseExternalSwitch:false HypervExternalAdapter: KVMNetwork:default KVMQemuURI:qemu:///system KVMGPU:false KVMHidden:false KVMNUMACount:1 APIServerPort:8443 DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true HostOnlyNicType:virtio NatNicType:virtio SSHIPAddress:10.0.84.118 SSHUser:root SSHKey:$HOME/.ssh/id_rsa SSHPort:22 KubernetesConfig:{KubernetesVersion:v1.31.0 ClusterName:minikube Namespace:default APIServerHAVIP: APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin:cni FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: LoadBalancerStartIP: LoadBalancerEndIP: CustomIngressCert: RegistryAliases: ExtraOptions:[] ShouldLoadCachedImages:true EnableDefaultCNI:false CNI:} Nodes:[{Name: IP: Port:8443 KubernetesVersion:v1.31.0 ContainerRuntime:docker ControlPlane:true Worker:true}] Addons:map[] CustomAddonImages:map[] CustomAddonRegistries:map[] VerifyComponents:map[apiserver:true system_pods:true] StartHostTimeout:6m0s ScheduledStop: ExposedPorts:[] ListenAddress: Network: Subnet: MultiNodeRequested:false ExtraDisks:0 CertExpiration:26280h0m0s Mount:false MountString:/root:/minikube-host Mount9PVersion:9p2000.L MountGID:docker MountIP: MountMSize:262144 MountOptions:[] MountPort:0 MountType:9p MountUID:docker BinaryMirror: DisableOptimizations:false DisableMetrics:false CustomQemuFirmwarePath: SocketVMnetClientPath: SocketVMnetPath: StaticIP: SSHAuthSock: SSHAgentPID:0 GPUs: AutoPauseInterval:1m0s}
    I1228 23:46:02.171066 53219 out.go:177] * Starting "minikube" primary control-plane node in "minikube" cluster
  • Starting "minikube" primary control-plane node in "minikube" cluster
    I1228 23:46:02.171506 53219 preload.go:131] Checking if preload exists for k8s version v1.31.0 and runtime docker
    I1228 23:46:02.171644 53219 profile.go:143] Saving config to /root/.minikube/profiles/minikube/config.json ...
    I1228 23:46:02.171811 53219 cache.go:107] acquiring lock: {Name:mk4a8cbd213c3d0c98c66e23cbebc807689b16de Clock:{} Delay:500ms Timeout:10m0s Cancel:}
    I1228 23:46:02.171834 53219 cache.go:107] acquiring lock: {Name:mk9617fb2c5e03d6bbdb2ba356bb3c04f6640159 Clock:{} Delay:500ms Timeout:10m0s Cancel:}
    I1228 23:46:02.171916 53219 cache.go:115] /root/.minikube/cache/images/amd64/registry.k8s.io/kube-proxy_v1.31.0 exists
    I1228 23:46:02.171919 53219 cache.go:115] /root/.minikube/cache/images/amd64/registry.k8s.io/kube-controller-manager_v1.31.0 exists
    I1228 23:46:02.171930 53219 cache.go:96] cache image "registry.k8s.io/kube-proxy:v1.31.0" -> "/root/.minikube/cache/images/amd64/registry.k8s.io/kube-proxy_v1.31.0" took 121.805µs
    I1228 23:46:02.171941 53219 cache.go:80] save to tar file registry.k8s.io/kube-proxy:v1.31.0 -> /root/.minikube/cache/images/amd64/registry.k8s.io/kube-proxy_v1.31.0 succeeded
    I1228 23:46:02.171944 53219 cache.go:96] cache image "registry.k8s.io/kube-controller-manager:v1.31.0" -> "/root/.minikube/cache/images/amd64/registry.k8s.io/kube-controller-manager_v1.31.0" took 118.224µs
    I1228 23:46:02.171962 53219 cache.go:80] save to tar file registry.k8s.io/kube-controller-manager:v1.31.0 -> /root/.minikube/cache/images/amd64/registry.k8s.io/kube-controller-manager_v1.31.0 succeeded
    I1228 23:46:02.171955 53219 cache.go:107] acquiring lock: {Name:mkc07d13a8182d9ef0db93609304352b7ac209a9 Clock:{} Delay:500ms Timeout:10m0s Cancel:}
    I1228 23:46:02.171974 53219 cache.go:107] acquiring lock: {Name:mk23ebbdcf25381bf55e2f044da641c727ea386b Clock:{} Delay:500ms Timeout:10m0s Cancel:}
    I1228 23:46:02.171983 53219 start.go:360] acquireMachinesLock for minikube: {Name:mk46dd79f5d7458407c89e41182bf7aa95cef468 Clock:{} Delay:500ms Timeout:13m0s Cancel:}
    I1228 23:46:02.172010 53219 cache.go:115] /root/.minikube/cache/images/amd64/registry.k8s.io/kube-scheduler_v1.31.0 exists
    I1228 23:46:02.172022 53219 cache.go:96] cache image "registry.k8s.io/kube-scheduler:v1.31.0" -> "/root/.minikube/cache/images/amd64/registry.k8s.io/kube-scheduler_v1.31.0" took 69.208µs
    I1228 23:46:02.172034 53219 cache.go:80] save to tar file registry.k8s.io/kube-scheduler:v1.31.0 -> /root/.minikube/cache/images/amd64/registry.k8s.io/kube-scheduler_v1.31.0 succeeded
    I1228 23:46:02.172020 53219 cache.go:107] acquiring lock: {Name:mkdf78aecb10789b194dc4a0907d59e60dd446fc Clock:{} Delay:500ms Timeout:10m0s Cancel:}
    I1228 23:46:02.172010 53219 cache.go:115] /root/.minikube/cache/images/amd64/registry.k8s.io/kube-apiserver_v1.31.0 exists
    I1228 23:46:02.172056 53219 cache.go:107] acquiring lock: {Name:mk38b3b43ab02962529f9e6219d3a0fdfd3a5b91 Clock:{} Delay:500ms Timeout:10m0s Cancel:}
    I1228 23:46:02.172065 53219 cache.go:96] cache image "registry.k8s.io/kube-apiserver:v1.31.0" -> "/root/.minikube/cache/images/amd64/registry.k8s.io/kube-apiserver_v1.31.0" took 90.802µs
    I1228 23:46:02.172080 53219 cache.go:115] /root/.minikube/cache/images/amd64/registry.k8s.io/etcd_3.5.15-0 exists
    I1228 23:46:02.172095 53219 cache.go:115] /root/.minikube/cache/images/amd64/registry.k8s.io/coredns/coredns_v1.11.1 exists
    I1228 23:46:02.172108 53219 cache.go:96] cache image "registry.k8s.io/coredns/coredns:v1.11.1" -> "/root/.minikube/cache/images/amd64/registry.k8s.io/coredns/coredns_v1.11.1" took 55.369µs
    I1228 23:46:02.172118 53219 cache.go:80] save to tar file registry.k8s.io/coredns/coredns:v1.11.1 -> /root/.minikube/cache/images/amd64/registry.k8s.io/coredns/coredns_v1.11.1 succeeded
    I1228 23:46:02.172080 53219 cache.go:80] save to tar file registry.k8s.io/kube-apiserver:v1.31.0 -> /root/.minikube/cache/images/amd64/registry.k8s.io/kube-apiserver_v1.31.0 succeeded
    I1228 23:46:02.172097 53219 cache.go:96] cache image "registry.k8s.io/etcd:3.5.15-0" -> "/root/.minikube/cache/images/amd64/registry.k8s.io/etcd_3.5.15-0" took 78.255µs
    I1228 23:46:02.172136 53219 cache.go:80] save to tar file registry.k8s.io/etcd:3.5.15-0 -> /root/.minikube/cache/images/amd64/registry.k8s.io/etcd_3.5.15-0 succeeded
    I1228 23:46:02.172036 53219 cache.go:107] acquiring lock: {Name:mk2b99ac7094c669a559e8f49c2225175ae36a5f Clock:{} Delay:500ms Timeout:10m0s Cancel:}
    I1228 23:46:02.172162 53219 cache.go:115] /root/.minikube/cache/images/amd64/registry.k8s.io/pause_3.10 exists
    I1228 23:46:02.172041 53219 start.go:364] duration metric: took 29.659µs to acquireMachinesLock for "minikube"
    I1228 23:46:02.172172 53219 cache.go:96] cache image "registry.k8s.io/pause:3.10" -> "/root/.minikube/cache/images/amd64/registry.k8s.io/pause_3.10" took 135.333µs
    I1228 23:46:02.172198 53219 cache.go:80] save to tar file registry.k8s.io/pause:3.10 -> /root/.minikube/cache/images/amd64/registry.k8s.io/pause_3.10 succeeded
    I1228 23:46:02.172207 53219 start.go:96] Skipping create...Using existing machine configuration
    I1228 23:46:02.172238 53219 fix.go:54] fixHost starting:
    I1228 23:46:02.172210 53219 cache.go:107] acquiring lock: {Name:mk6353223a4aba4df10cb9eb84ab1d9e95321563 Clock:{} Delay:500ms Timeout:10m0s Cancel:}
    I1228 23:46:02.172339 53219 cache.go:115] /root/.minikube/cache/images/amd64/gcr.io/k8s-minikube/storage-provisioner_v5 exists
    I1228 23:46:02.172348 53219 cache.go:96] cache image "gcr.io/k8s-minikube/storage-provisioner:v5" -> "/root/.minikube/cache/images/amd64/gcr.io/k8s-minikube/storage-provisioner_v5" took 564.953µs
    I1228 23:46:02.172357 53219 cache.go:80] save to tar file gcr.io/k8s-minikube/storage-provisioner:v5 -> /root/.minikube/cache/images/amd64/gcr.io/k8s-minikube/storage-provisioner_v5 succeeded
    I1228 23:46:02.172370 53219 cache.go:87] Successfully saved all images to host disk.
    I1228 23:46:02.172807 53219 fix.go:112] recreateIfNeeded on minikube: state=Running err=
    W1228 23:46:02.172841 53219 fix.go:138] unexpected machine state, will restart:
    I1228 23:46:02.173932 53219 out.go:177] * Updating the running ssh "minikube" bare metal machine ...
  • Updating the running ssh "minikube" bare metal machine ...
    I1228 23:46:02.174487 53219 machine.go:93] provisionDockerMachine start ...
    I1228 23:46:02.174538 53219 main.go:141] libmachine: Waiting for SSH to be available...
    I1228 23:46:02.174567 53219 main.go:141] libmachine: Getting to WaitForSSH function...
    I1228 23:46:02.174624 53219 main.go:141] libmachine: Using SSH client type: external
    I1228 23:46:02.174686 53219 main.go:141] libmachine: &{[-F /dev/null -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -o LogLevel=quiet -o PasswordAuthentication=no -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@game1 -p 22] /usr/bin/ssh }
    I1228 23:46:02.174724 53219 main.go:141] libmachine: About to run SSH command:
    exit 0
    I1228 23:46:02.503635 53219 main.go:141] libmachine: SSH cmd err, output: :
    I1228 23:46:02.503668 53219 main.go:141] libmachine: Detecting the provisioner...
    I1228 23:46:02.503737 53219 main.go:141] libmachine: Using SSH client type: external
    I1228 23:46:02.503790 53219 main.go:141] libmachine: &{[-F /dev/null -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -o LogLevel=quiet -o PasswordAuthentication=no -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@game1 -p 22] /usr/bin/ssh }
    I1228 23:46:02.503807 53219 main.go:141] libmachine: About to run SSH command:
    cat /etc/os-release
    I1228 23:46:02.833237 53219 main.go:141] libmachine: SSH cmd err, output: : NAME="Rocky Linux"
    VERSION="9.3 (Blue Onyx)"
    ID="rocky"
    ID_LIKE="rhel centos fedora"
    VERSION_ID="9.3"
    PLATFORM_ID="platform:el9"
    PRETTY_NAME="Rocky Linux 9.3 (Blue Onyx)"
    ANSI_COLOR="0;32"
    LOGO="fedora-logo-icon"
    CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
    HOME_URL="https://rockylinux.org/"
    BUG_REPORT_URL="https://bugs.rockylinux.org/"
    SUPPORT_END="2032-05-31"
    ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
    ROCKY_SUPPORT_PRODUCT_VERSION="9.3"
    REDHAT_SUPPORT_PRODUCT="Rocky Linux"
    REDHAT_SUPPORT_PRODUCT_VERSION="9.3"

I1228 23:46:02.833306 53219 main.go:141] libmachine: Couldn't set key PLATFORM_ID, no corresponding struct field found
I1228 23:46:02.833332 53219 main.go:141] libmachine: Couldn't set key LOGO, no corresponding struct field found
I1228 23:46:02.833357 53219 main.go:141] libmachine: Couldn't set key CPE_NAME, no corresponding struct field found
I1228 23:46:02.833382 53219 main.go:141] libmachine: Couldn't set key SUPPORT_END, no corresponding struct field found
I1228 23:46:02.833398 53219 main.go:141] libmachine: Couldn't set key ROCKY_SUPPORT_PRODUCT, no corresponding struct field found
I1228 23:46:02.833412 53219 main.go:141] libmachine: Couldn't set key ROCKY_SUPPORT_PRODUCT_VERSION, no corresponding struct field found
I1228 23:46:02.833435 53219 main.go:141] libmachine: Couldn't set key REDHAT_SUPPORT_PRODUCT, no corresponding struct field found
I1228 23:46:02.833450 53219 main.go:141] libmachine: Couldn't set key REDHAT_SUPPORT_PRODUCT_VERSION, no corresponding struct field found
I1228 23:46:02.833516 53219 machine.go:96] duration metric: took 659.010854ms to provisionDockerMachine
I1228 23:46:02.833538 53219 fix.go:56] duration metric: took 661.311104ms for fixHost
I1228 23:46:02.833547 53219 start.go:83] releasing machines lock for "minikube", held for 661.358511ms
W1228 23:46:02.833563 53219 start.go:714] error starting host: provision: fast detect: OS type not recognized
W1228 23:46:02.833636 53219 out.go:270] ! StartHost failed, but will try again: provision: fast detect: OS type not recognized
! StartHost failed, but will try again: provision: fast detect: OS type not recognized
I1228 23:46:02.833665 53219 start.go:729] Will try again in 5 seconds ...
I1228 23:46:07.836035 53219 start.go:360] acquireMachinesLock for minikube: {Name:mk46dd79f5d7458407c89e41182bf7aa95cef468 Clock:{} Delay:500ms Timeout:13m0s Cancel:}
I1228 23:46:07.836180 53219 start.go:364] duration metric: took 55.3µs to acquireMachinesLock for "minikube"
I1228 23:46:07.836210 53219 start.go:96] Skipping create...Using existing machine configuration
I1228 23:46:07.836221 53219 fix.go:54] fixHost starting:
I1228 23:46:07.836800 53219 fix.go:112] recreateIfNeeded on minikube: state=Running err=
W1228 23:46:07.836831 53219 fix.go:138] unexpected machine state, will restart:
I1228 23:46:07.837689 53219 out.go:177] * Updating the running ssh "minikube" bare metal machine ...

  • Updating the running ssh "minikube" bare metal machine ...
    I1228 23:46:07.838070 53219 machine.go:93] provisionDockerMachine start ...
    I1228 23:46:07.838120 53219 main.go:141] libmachine: Waiting for SSH to be available...
    I1228 23:46:07.838132 53219 main.go:141] libmachine: Getting to WaitForSSH function...
    I1228 23:46:07.838178 53219 main.go:141] libmachine: Using SSH client type: external
    I1228 23:46:07.838216 53219 main.go:141] libmachine: &{[-F /dev/null -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -o LogLevel=quiet -o PasswordAuthentication=no -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@game1 -p 22] /usr/bin/ssh }
    I1228 23:46:07.838229 53219 main.go:141] libmachine: About to run SSH command:
    exit 0
    I1228 23:46:08.168791 53219 main.go:141] libmachine: SSH cmd err, output: :
    I1228 23:46:08.168832 53219 main.go:141] libmachine: Detecting the provisioner...
    I1228 23:46:08.168904 53219 main.go:141] libmachine: Using SSH client type: external
    I1228 23:46:08.168948 53219 main.go:141] libmachine: &{[-F /dev/null -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -o LogLevel=quiet -o PasswordAuthentication=no -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@game1 -p 22] /usr/bin/ssh }
    I1228 23:46:08.168970 53219 main.go:141] libmachine: About to run SSH command:
    cat /etc/os-release
    I1228 23:46:08.503348 53219 main.go:141] libmachine: SSH cmd err, output: : NAME="Rocky Linux"
    VERSION="9.3 (Blue Onyx)"
    ID="rocky"
    ID_LIKE="rhel centos fedora"
    VERSION_ID="9.3"
    PLATFORM_ID="platform:el9"
    PRETTY_NAME="Rocky Linux 9.3 (Blue Onyx)"
    ANSI_COLOR="0;32"
    LOGO="fedora-logo-icon"
    CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
    HOME_URL="https://rockylinux.org/"
    BUG_REPORT_URL="https://bugs.rockylinux.org/"
    SUPPORT_END="2032-05-31"
    ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
    ROCKY_SUPPORT_PRODUCT_VERSION="9.3"
    REDHAT_SUPPORT_PRODUCT="Rocky Linux"
    REDHAT_SUPPORT_PRODUCT_VERSION="9.3"

I1228 23:46:08.503420 53219 main.go:141] libmachine: Couldn't set key PLATFORM_ID, no corresponding struct field found
I1228 23:46:08.503453 53219 main.go:141] libmachine: Couldn't set key LOGO, no corresponding struct field found
I1228 23:46:08.503476 53219 main.go:141] libmachine: Couldn't set key CPE_NAME, no corresponding struct field found
I1228 23:46:08.503496 53219 main.go:141] libmachine: Couldn't set key SUPPORT_END, no corresponding struct field found
I1228 23:46:08.503519 53219 main.go:141] libmachine: Couldn't set key ROCKY_SUPPORT_PRODUCT, no corresponding struct field found
I1228 23:46:08.503535 53219 main.go:141] libmachine: Couldn't set key ROCKY_SUPPORT_PRODUCT_VERSION, no corresponding struct field found
I1228 23:46:08.503550 53219 main.go:141] libmachine: Couldn't set key REDHAT_SUPPORT_PRODUCT, no corresponding struct field found
I1228 23:46:08.503566 53219 main.go:141] libmachine: Couldn't set key REDHAT_SUPPORT_PRODUCT_VERSION, no corresponding struct field found
I1228 23:46:08.503633 53219 machine.go:96] duration metric: took 665.54637ms to provisionDockerMachine
I1228 23:46:08.503655 53219 fix.go:56] duration metric: took 667.434102ms for fixHost
I1228 23:46:08.503673 53219 start.go:83] releasing machines lock for "minikube", held for 667.474533ms
W1228 23:46:08.503760 53219 out.go:270] * Failed to start ssh bare metal machine. Running "minikube delete" may fix it: provision: fast detect: OS type not recognized

  • Failed to start ssh bare metal machine. Running "minikube delete" may fix it: provision: fast detect: OS type not recognized
    I1228 23:46:08.504775 53219 out.go:201]

W1228 23:46:08.505173 53219 out.go:270] X Exiting due to GUEST_PROVISION: error provisioning guest: Failed to start host: provision: fast detect: OS type not recognized
X Exiting due to GUEST_PROVISION: error provisioning guest: Failed to start host: provision: fast detect: OS type not recognized
W1228 23:46:08.505191 53219 out.go:270] *
*
W1228 23:46:08.506287 53219 out.go:293] ╭─────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ * If the above advice does not help, please let us know: │
https://github.com/kubernetes/minikube/issues/new/choose
│ │
│ * Please run minikube logs --file=logs.txt and attach logs.txt to the GitHub issue. │
│ │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
╭─────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ * If the above advice does not help, please let us know: │
https://github.com/kubernetes/minikube/issues/new/choose
│ │
│ * Please run minikube logs --file=logs.txt and attach logs.txt to the GitHub issue. │
│ │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
I1228 23:46:08.506716 53219 out.go:201]

minikube logs命令的输出


X Exiting due to DRV_CP_ENDPOINT: Unable to get control-plane node minikube endpoint: failed to lookup ip for ""

  • Suggestion:

    Recreate the cluster by running:
    minikube delete
    minikube start

使用的操作系统版本
Rocky Linux 9.3

@SinuxLee SinuxLee added the l/zh-CN Issues in or relating to Chinese label Dec 28, 2024
@ComradeProgrammer
Copy link
Member

ComradeProgrammer commented Dec 31, 2024

The problem is here https://github.com/docker/machine/blob/b170508bf44c3405e079e26d5fdffe35a64c6972/libmachine/provision/os_release.go#L52
I guess it is because Rocky 9 (Blue Onyx)is too new, which is released in 2022.
Currently minikube still depends on libmachine, which is archieved on Sep 26, 2021.

这个错是libmachine扔出来的,不是Minikube扔出来的
Rocky Linux 9.3太新了,minikube依赖libmachine这个库,但是这个库最后的commit是21年9月的,应该是认不出来这个22年才有的操作系统的

@afbjorklund
Copy link
Collaborator

I guess it is because Rocky 9 (Blue Onyx)is too new, which is released in 2022.
Currently minikube still depends on libmachine, which is archieved on Sep 26, 2021.

No, it is because it does not support clones (i.e. needs to look in ID_LIKE, after ID)
The CentOS Linux distribution was supported as a special case, but now it is EOL...

func (provisioner *GenericProvisioner) CompatibleWithHost() bool {
        return provisioner.OsReleaseInfo.ID == provisioner.OsReleaseID
}

https://github.com/minikube-machine/machine/blob/main/libmachine/provision/generic.go

NAME="Rocky Linux"
VERSION="9.3 (Blue Onyx)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.3"

https://github.com/minikube-machine/machine/blob/main/libmachine/provision/redhat.go

func init() {
	Register("RedHat", &RegisteredProvisioner{
		New: func(d drivers.Driver) Provisioner {
			return NewRedHatProvisioner("rhel", d)
		},
	})
}

@afbjorklund afbjorklund added cause/libmachine-bug Bugs caused by libmachine co/generic-driver os/linux priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. labels Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cause/libmachine-bug Bugs caused by libmachine co/generic-driver l/zh-CN Issues in or relating to Chinese os/linux priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.
Projects
None yet
Development

No branches or pull requests

3 participants