Minishift cannot start in macOS - macos

General information
Minishift version: v1.34.3+4b58f89
OS: macOS
Hypervisor: hyperkit
Steps to reproduce
minishift start --show-libmachine-logs -v 5
Expected
minishift started successfully.
Actual
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 Generated MAC
Logs
-- 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

Try this:
sudo vi /var/db/dhcpd_leases
add this
{
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
}
then minishift start
if you see time out error like this:
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.
try this:
minishift delete --force --clear-cache
minishift start

Openshift Cluster are now in version 4.7, I strongly recommend you to used CRC (code ready containers) in replacement of Minishift.
You can download a free version here: https://www.okd.io/crc.html

Minishift is not only deprecated, but it will be problematic to install on Mac OSX Monterey. And even though it kind of succeeds installing, various things are broken:
$ 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
Instead of using Minishift, you should be using RedHat CodeReady Containers. Instructions for Mac OSX are here (note you must have 35gb of disk space available on your machine):
https://access.redhat.com/documentation/en-us/red_hat_codeready_containers/1.0/html/getting_started_guide/getting-started-with-codeready-containers_gsg
What took 5 hours with minishift, only took 5 minutes with CRC.

for my case, I had my corporation antivirus running (particularly McAfee with a firewall activated), which was blocking the creation of dhcpd_leases. After turning that off and shutting the firewall temporarily, it got fixed.

Related

Why did I hit the openGauss installation error

When installing openGauss, it hit the error:
GAUSS-506601: The port [26000] is occupied or the ip address is incorrectly configured.

Domain name resolution problem when starting yarn in HDP

I have installed HDP2.7.5. but When I start the yarn & hdfs Service.I have encountered the following problems.
The following error was encountered while trying to retrieve the URL:
http://n15hdp02:50070/webhdfs/v1/tmp?
Unable to determine IP address from host name n15hdp02
The DNS server returned:
Name Error: The domain name does not exist.
This means that the cache was not able to resolve the hostname presented in the URL. Check if the address is correct.
Your cache administrator is root.
enter image description here
enter image description here

DNS incosistent

I am trying to create a MAPR cluster, nut I have DNS inconsistent warning. I have edited my /etc/hosts file as
10.0.0.10 master.aptus.com
10.0.0.20 slave1.aptus.com
10.0.0.30 slave2.aptus.com
These system contribute to establishing cluster. When i execute :
host 10.0.0.10
the output is:
10.0.0.10.in-addr.arpa has no PTR record
And when I execute :
host master.aptus.com
I get the following output :
master.aptus.com has address 128.199.41.186
I tried to run the installation with warning, but installation fails.
MAPR installation fails
Update DNS entry in domain server
Update the DNS server (AD server) with the new ip address for the cluster node which is being migrated. Once it is updated, all the nodes in the cluster will be able to resolve it.
Check the reverse lookup zone and make sure it is the same using dns tool or ssh
Try it let me know if it helps.

How to ssh my windows server

I already installed the git windows on my server windows 2008, I also generate keys using the git bash.
I tried to use this command ssh-copy-id user#123.45.56.78
/usr/bin/ssh-copy-id: INFO:
attempting to log in with the new key(s),
to filter out any that are already installed
/usr/bin/ssh-copy-id: ERROR:
ssh: connect to host 123.45.56.78 port 22: Connection refused
how can i fixed this... in my ubuntu server I have no problem on this only in windows.
You have to use the same keys or to register all the keys under your main server.
Once You have the keys you will be able to connect.
How to tell if the keys are copied successfully?
user#linux ~ $ ssh-copy-id user#remote
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s),
to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed
Number of key(s) added: 1
In your case you see an error which means that the ssh-copy-id does not work so follow the next section:
If the ssh-copy-id doesn't work?
Simpy cat and copy the files manually to the server and it will work for you.
# Copy the output of private key
# you can also copy the public key if you need to
cat ~/.ssh/id_rsa

vagrant rsync protocol mismatch

I am facing following Rsync issue when i say vagrant up --provider=joyent ... after node creation its giving following error... when i observer rsync versions on both machines .., its same.. i dont know how to troubleshoot this ..
==> default: Couldn't find Cheffile at ./Cheffile.
==> default: Rsyncing folder: /home/system/Documents/tobe/dsrv195/ => /vagrant
There was an error when attemping to rsync a share folder.
Please inspect the error message below for more info.
Host path: /home/system/Documents/tobe/dsrv195/
Guest path: /vagrant
Error: Warning: Identity file not accessible: No such file or directory.
protocol version mismatch -- is your shell clean?
(see the rsync man page for an explanation)
rsync error: protocol incompatibility (code 2) at compat.c(174) [sender=3.1.0]
root#system-desktop:/home/system/Documents/tobe/dsrv195#
Anyone please help
yes its fixed .. after copying /home/ubuntu/.ssh/authorized_keys to root

Resources