首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >不能在macOS中启动小位移

不能在macOS中启动小位移
EN

Stack Overflow用户
提问于 2021-08-05 04:26:12
回答 4查看 2.3K关注 0票数 4

通用信息

迷你版: v1.34.3+4b58f89

OS: macOS

管理程序: hyperkit

复制的步骤

代码语言:javascript
运行
复制
minishift start --show-libmachine-logs -v 5

期望

小排量成功开始了。

实际

启动VM:错误启动停止主机:在dhcp租约文件中找不到IP地址临时错误:找不到生成的MAC的IP地址

日志

代码语言:javascript
运行
复制
-- minishift version: v1.34.3+4b58f89
-- Starting profile 'minishift'
Found binary path at /usr/local/bin/docker-machine-driver-hyperkit
Launching plugin server for driver hyperkit
Plugin server listening at address 127.0.0.1:50805
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(minishift) Calling .GetState
-- Check if deprecated options are used ... OK
-- Checking if https://github.com is reachable ... OK
-- Checking if requested OpenShift version 'v3.11.0' is valid ... OK
-- Checking if requested OpenShift version 'v3.11.0' is supported ... OK
-- Checking if requested hypervisor 'hyperkit' is supported on this platform ... OK
-- Checking if hyperkit is installed ... 
   Hyperkit is available at /usr/local/bin/hyperkit
   Checking for setuid bit ... OK
-- Checking if hyperkit driver is installed ... 
   Driver is available at /usr/local/bin/docker-machine-driver-hyperkit
   Checking for setuid bit ... OK
-- Checking the ISO URL ... OK
-- Checking if provided oc flags are supported ... OK
-- Starting the OpenShift cluster using 'hyperkit' hypervisor ...
-- Starting Minishift VM ....Found binary path at /usr/local/bin/docker-machine-driver-hyperkit
Launching plugin server for driver hyperkit
Plugin server listening at address 127.0.0.1:50813
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(minishift) Calling .GetState
(minishift) Calling .Start
(minishift) Using UUID 91b2bdde-f54b-11eb-b552-1c36bb1ab9e0
(minishift) Generated MAC 56:bb:6a:61:3c:34
(minishift) Starting with cmdline: 
...................... FAIL E0804 23:28:48.938399    8469 start.go:499] Error starting the VM: Error starting stopped host: IP address never found in dhcp leases file Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34. Retrying.
Error starting the VM: Error starting stopped host: IP address never found in dhcp leases file Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
Temporary Error: Could not find an IP address for 56:bb:6a:61:3c:34
EN

回答 4

Stack Overflow用户

发布于 2021-08-20 09:29:41

试试这个:

代码语言:javascript
运行
复制
sudo vi /var/db/dhcpd_leases

加上这个

代码语言:javascript
运行
复制
{
    name=minishfit
    ip_address=192.168.64.3
    hw_address=1,56:bb:6a:61:3c:34
    identifier=1,56:bb:6a:61:3c:34
    lease=0x5e41592a
}

然后微小的启动

如果您看到这样的超时错误:

代码语言:javascript
运行
复制
Error starting the VM: Error configuring authorization on host: Too many retries waiting for SSH to be available.  Last error: Maximum number of retries (60) exceeded.

试试这个:

代码语言:javascript
运行
复制
minishift delete --force --clear-cache

minishift start
票数 2
EN

Stack Overflow用户

发布于 2021-08-08 19:43:25

Openshift集群现在在4.7版中,我强烈建议您使用CRC (代码就绪容器)来替换Minishift。您可以在这里下载免费版本:https://www.okd.io/crc.html

票数 0
EN

Stack Overflow用户

发布于 2021-12-12 21:44:33

小型化不仅不受欢迎,而且在Mac蒙特利上安装也会有问题。尽管安装成功了,但各种各样的东西都坏了:

代码语言:javascript
运行
复制
$ sudo du -hx -d2 '/'* 2>/dev/null | grep -ve $'M\t' -e $'K\t' -e $'B\t' | sort -k 2 ; echo Finished
# ONLY DELETE NON-ESSENTIAL FILES IN YOUR HOME DIRECTORY
$ softwareupdate --all --install --force
Downloaded macOS 10.14.6 Update
Installing macOS 10.14.6 Update
$ sudo reboot
# Note you may need to run softwareupdate several times depending on how outdated your computer is
# In fact, I would keep updating until you get the latest MacOSX version, which at the time of this writing is macOS Monterery
# Once your system is up-to-date, then install Docker Desktop: https://docs.docker.com/desktop/mac/install/
# Note if you are using the latest version of OSX and the latest version of Docker Desktop, then it will install and launch smoothly.
% which docker
/usr/local/bin/docker
# Now run “brew update && brew upgrade” or install homebrew if not installed:
% /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following new directories will be created:
/usr/local/Cellar
/usr/local/Caskroom
==> The Xcode Command Line Tools will be installed.
# Use the hyperkit virtual machine. docker-machine-driver-xhyve is deprecated!
% brew install hyperkit
% brew install docker-machine-driver-hyperkit
% sudo chown root:wheel /usr/local/opt/docker-machine-driver-hyperkit/bin/docker-machine-driver-hyperkit
% sudo chmod u+s /usr/local/opt/docker-machine-driver-hyperkit/bin/docker-machine-driver-hyperkit
# THERE IS A HUGE BUG HERE. Basically, the setuid is correctly added to /usr/local/opt/docker-machine-driver-hyperkit/bin/docker-machine-driver-hyperkit BUT NOT the symlink at /usr/local/bin/docker-machine-driver-hyperkit. Consequently, I had to delete the symlink at /usr/local/bin/docker-machine-driver-hyperkit and then create a hard link to /usr/local/bin/docker-machine-driver-hyperkit and then add the setuid and change ownership there!
% ls -l /usr/local/bin/docker-machine-driver-hyperkit
-r-sr-xr-x  2 root  wheel  11581712 Mar  1  2018 /usr/local/bin/docker-machine-driver-hyperkit
% brew install cask
% brew install --cask minishift
% which minishift
/usr/local/bin/minishift
% sudo vi /var/db/dhcpd_leases
{
    name=minishfit
    ip_address=192.168.64.3
    hw_address=1,56:bb:6a:61:3c:34
    identifier=1,56:bb:6a:61:3c:34
    lease=0x5e41592a
}
% minishift start

您应该使用RedHat CodeReady容器,而不是使用小型化。有关Mac的说明如下(请注意,您的计算机上必须有35 on的磁盘空间):

https://access.redhat.com/documentation/en-us/red_hat_codeready_containers/1.0/html/getting_started_guide/getting-started-with-codeready-containers_gsg

小位移花了5个小时,与CRC只花了5分钟。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68660617

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档