<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Install &#8211; Pauls Blog</title>
	<atom:link href="https://sterl.org/tag/install/feed/" rel="self" type="application/rss+xml" />
	<link>https://sterl.org</link>
	<description></description>
	<lastBuildDate>Sun, 03 May 2020 13:38:12 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>Install minishift</title>
		<link>https://sterl.org/2020/05/install-minishift/</link>
					<comments>https://sterl.org/2020/05/install-minishift/#respond</comments>
		
		<dc:creator><![CDATA[Paul Sterl]]></dc:creator>
		<pubDate>Sat, 02 May 2020 13:33:50 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[minishift]]></category>
		<category><![CDATA[ODK]]></category>
		<category><![CDATA[OpenShift]]></category>
		<category><![CDATA[Setup]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">http://sterl.org/?p=566</guid>

					<description><![CDATA[Install on Windows Startup Guide Note: Windows 10 Pro or higher is required for Hyper-V &#8212; the install was recommended to be on the C: drive. Auto Install Check that your CPU virtualization is enabled Download minishift and extract it into a folder Add your user to the Hyper-V Administrators Open Command-Line as Admin User&#8230;]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Install on Windows</h2>



<p><a rel="noreferrer noopener" href="https://docs.okd.io/latest/minishift/getting-started/index.html" target="_blank">Startup Guide</a></p>



<div class="bs-callout bs-callout-info"><strong>Note:</strong>
Windows 10 Pro or higher is required for Hyper-V &#8212; the install was recommended to be on the C: drive.
</div>



<h3 class="wp-block-heading">Auto Install</h3>



<ol class="wp-block-list"><li>Check that your CPU virtualization is enabled</li><li>Download <a rel="noreferrer noopener" href="https://github.com/minishift/minishift/releases" target="_blank">minishift</a> and extract it into a folder</li><li>Add your user to the <a rel="noreferrer noopener" href="https://docs.okd.io/3.11/minishift/troubleshooting/troubleshooting-driver-plugins.html#insufficient-privileges" target="_blank">Hyper-V Administrators</a></li><li>Open Command-Line as Admin User</li><li>Execute minishift Install</li><li>Reboot</li><li>Configure network</li><li>Start (use optional <code>--cpus</code> and <code>--memory</code>)</li></ol>



<p>The network install doesn&#8217;t always work, see manual install, step 4 and the following, to setup the network in case the following message is encountered <code>[Virtual Switch not found]</code> in step 7.</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}"> # 5. run install as admin in the folder minishift was extracted
 minishift setup
 # 5. reboot, no admin mode needed anymore
 # 7. configure network
 minishift config set hyperv-virtual-switch minishift-external
 # 8. start minishift
 minishift start</pre></div>



<h3 class="wp-block-heading">Manual install</h3>



<ol class="wp-block-list"><li>Enable Virtualization in the Bios</li><li>Download <a rel="noreferrer noopener" href="https://github.com/minishift/minishift/releases" target="_blank">minishift</a> and extract it into a folder</li><li>Enable <a rel="noreferrer noopener" href="https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v" target="_blank">Hyper-V in Windows 10 Pro</a></li><li>Create a <a rel="noreferrer noopener" href="https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/connect-to-network" target="_blank">virtual network</a></li><li>Add the <a rel="noreferrer noopener" href="https://docs.okd.io/3.11/minishift/troubleshooting/troubleshooting-driver-plugins.html#insufficient-privileges" target="_blank">Hyper-V Administrators</a> role to your user account</li><li>Update minishift config to use the network</li><li>Start minishift</li></ol>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;powershell&quot;,&quot;mime&quot;:&quot;application/x-powershell&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;PowerShell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;powershell&quot;}"># Requires admin permissions
# 3. enable hyper-V
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

# 4. create virtual network
Get-NetAdapter
# Select the adapter and provide the name in this line
$net = Get-NetAdapter -Name 'Ethernet 2'
New-VMSwitch -Name &quot;minishift-external&quot; -AllowManagementOS $True -NetAdapterName $net.Name</pre></div>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}"># 6. update minishift config and use the network
minishift config set hyperv-virtual-switch &quot;minishift-external&quot;
# 7. start minishift
minishift start</pre></div>



<h2 class="wp-block-heading">Troubleshooting</h2>



<h3 class="wp-block-heading">Checking if Hyper-V driver is installed … FAIL</h3>



<p>This error can occur e.g.:</p>



<ul class="wp-block-list"><li>Hyper-V Service is not running</li><li>Virtualization in the firmware isn&#8217;t enabled</li><li>Hyper-V isn&#8217;t supported</li></ul>



<p>Run the following command to check the virtualization settings:</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;powershell&quot;,&quot;mime&quot;:&quot;application/x-powershell&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;PowerShell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;powershell&quot;}"># following command should return true
@(Get-Wmiobject Win32_ComputerSystem).HypervisorPresent
# show all CPU settings
gwmi Win32_Processor | fl *</pre></div>



<p>The following settings should be both <code>true</code>. Most likely the first one which means the Bios settings aren&#8217;t set to enabled &#8211; (SVM Mode for Ryzen CPUs).</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;powershell&quot;,&quot;mime&quot;:&quot;application/x-powershell&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;PowerShell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;powershell&quot;}">VirtualizationFirmwareEnabled           : False
VMMonitorModeExtensions                 : True</pre></div>



<h3 class="wp-block-heading">.SSH cmd err, output: exit status 255</h3>



<p>During the start of minishift following error often occur on Windows:</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}"># during normal start &quot;minishift start&quot;
Error starting the VM: Error creating the VM. Error creating machine: Error detecting OS: Too many retries waiting for SSH to be available.

# with logging the details
minishift start --show-libmachine-logs -v5

About to run SSH command:
exit 0
.SSH cmd err, output: exit status 255:
Error getting ssh command 'exit 0' : ssh command error:
command : exit 0
err     : exit status 255</pre></div>



<p>The main problem here is the <a rel="noreferrer noopener" href="https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse" target="_blank">SSL client version 0.0.1.0</a> from Microsoft which as to be uninstalled. After that, the minishift start works fine.</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;powershell&quot;,&quot;mime&quot;:&quot;application/x-powershell&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;PowerShell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;powershell&quot;}">Remove-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0</pre></div>



<h2 class="wp-block-heading">Useful shell Commands</h2>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}"># delete VM, delete the ssh identities after that, as the SSH key will change
minishift delete
# delete everything
minishift delete --force --clear-cache

# set auto start for Hyper-V Manager Service 
sc config vmms start=auto
# start Hyper-V Manager Service
sc start vmms

# start minishift with log output
minishift start --show-libmachine-logs -v5</pre></div>



<h2 class="wp-block-heading">Useful Power Shell Commands</h2>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;powershell&quot;,&quot;mime&quot;:&quot;application/x-powershell&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;PowerShell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;powershell&quot;}"># check if Hyper-V is running well
@(Get-Wmiobject Win32_ComputerSystem).HypervisorPresent

# output ip of the minishift VM
echo (( Hyper-V\Get-VM minishift ).networkadapters[0]).ipaddresses[0]</pre></div>



<h2 class="wp-block-heading">Useful Links</h2>



<ul class="wp-block-list"><li><a href="https://www.okd.io/minishift/">https://www.okd.io/minishift/</a></li><li><a href="https://docs.okd.io/3.11/minishift/using/profiles.html">https://docs.okd.io/3.11/minishift/using/profiles.html</a></li><li><a href="https://docs.okd.io/3.11/minishift/using/basic-usage.html">https://docs.okd.io/3.11/minishift/using/basic-usage.html</a></li><li><a href="https://github.com/minishift/minishift/issues/2568">https://github.com/minishift/minishift/issues/2568</a></li><li><a href="https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/connect-to-network">https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/connect-to-network</a></li></ul>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sterl.org/2020/05/install-minishift/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
