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

Virtual switch name needs to be localized for Windows 10 - 1803, eg. German install #579

Closed
youwalther65 opened this issue Sep 11, 2019 · 53 comments · Fixed by #595
Closed
Assignees

Comments

@youwalther65
Copy link

youwalther65 commented Sep 11, 2019

General information

  • OS: Windows
  • Hypervisor: Hyper-V
  • Did you run crc setup before starting it (Yes/No)? ???

CRC version

# Put the output of `crc version
version: 1.0.0-beta.3-4.1.11+e97bf65v
## CRC status
C:\Users\crc\RedHat\crc-windows-1.0.0-beta.3-amd64>crc status
ERRO Error occurred: error: CreateFile C:\Users\crc\.crc\machines\crc\kubeconfig: Das System kann die angegebene Datei nicht finden.
 - exit status 1

## CRC config
```bash
# Put the output of `crc config view`
C:\Users\crc\RedHat\crc-windows-1.0.0-beta.3-amd64>crc config view
- bundle                             : C:\Users\crc\.crc\crc_hyperv_4.1.11.crcbundle
- cpus                               : 4
- memory                             : 8192
- nameserver                         :
- pull-secret-file                   :
- vm-driver                          : hyperv
- warn-check-bundle-cached           : true

## Host Operating System
```bash
# Put the output of `cat /etc/os-release` in case of Linux
# put the output of `sw_vers` in case of Mac
# Put the output of `systeminfo` in case of WindowsC:\Users\crc\RedHat\crc-windows-1.0.0-beta.3-amd64>systeminfo

Hostname:                                      LAPTOPASTRO65-1
Betriebssystemname:                            Microsoft Windows 10 Pro
Betriebssystemversion:                         10.0.17134 Nicht zutreffend Build 17134
Betriebssystemhersteller:                      Microsoft Corporation
Betriebssystemkonfiguration:                   Eigenständige Arbeitsstation
Betriebssystem-Buildtyp:                       Multiprocessor Free
Registrierter Benutzer:                        **redacted**
Registrierte Organisation:
Produkt-ID:                                    00330-80000-00000-AA934
Ursprüngliches Installationsdatum:             02.06.2018, 13:05:16
Systemstartzeit:                               10.09.2019, 21:14:48
Systemhersteller:                              CLEVO
Systemmodell:                                  P170EM
Systemtyp:                                     x64-based PC
Prozessor(en):                                 1 Prozessor(en) installiert.
                                               [01]: Intel64 Family 6 Model 58 Stepping 9 GenuineIntel ~2701 MHz
BIOS-Version:                                  American Megatrends Inc. 4.6.5, 24.01.2013
Windows-Verzeichnis:                           C:\WINDOWS
System-Verzeichnis:                            C:\WINDOWS\system32
Startgerät:                                    \Device\HarddiskVolume1
Systemgebietsschema:                           de;Deutsch (Deutschland)
Eingabegebietsschema:                          de;Deutsch (Deutschland)
Zeitzone:                                      (UTC+01:00) Brüssel, Kopenhagen, Madrid, Paris
Gesamter physischer Speicher:                  16.274 MB
Verfügbarer physischer Speicher:               8.752 MB
Virtueller Arbeitsspeicher: Maximale Größe:    19.730 MB
Virtueller Arbeitsspeicher: Verfügbar:         11.492 MB
Virtueller Arbeitsspeicher: Zurzeit verwendet: 8.238 MB
Auslagerungsdateipfad(e):                      C:\pagefile.sys
Domäne:                                        WORKGROUP
Anmeldeserver:                                 \\LAPTOPASTRO65-1
Hotfix(es):                                    14 Hotfix(e) installiert.
                                               [01]: KB4514357
                                               [02]: KB4343669
                                               [03]: KB4346084
                                               [04]: KB4456655
                                               [05]: KB4465663
                                               [06]: KB4477137
                                               [07]: KB4485449
                                               [08]: KB4486153
                                               [09]: KB4497398
                                               [10]: KB4503308
                                               [11]: KB4509094
                                               [12]: KB4512576
                                               [13]: KB4516115
                                               [14]: KB4516058
Netzwerkkarte(n):                              10 Netzwerkadapter installiert.
                                               [01]: Hyper-V Virtual Ethernet Adapter
                                                     Verbindungsname: vEthernet (Default Switch)
                                                     DHCP aktiviert:  Ja
                                                     DHCP-Server:     255.255.255.255
                                                     IP-Adresse(n)
                                                     [01]: 169.254.2.66
                                                     [02]: fe80::7485:7ba2:9b81:242
                                               [02]: Killer Wireless-N 1202 Network Adapter
                                                     Verbindungsname: WLAN
                                                     Status:          Medien getrennt
                                               [03]: Hyper-V Virtual Ethernet Adapter
                                                     Verbindungsname: Broken Docker Adapter (20170720T1821024025Z) (1)
                                                     Status:          Medien getrennt
                                               [04]: Hyper-V Virtual Ethernet Adapter
                                                     Verbindungsname: vEthernet (extswitch)
                                                     Status:          Medien getrennt
                                               [05]: Hyper-V Virtual Ethernet Adapter
                                                     Verbindungsname: vEthernet (Shared)
                                                     Status:          Medien getrennt
                                               [06]: Hyper-V Virtual Ethernet Adapter
                                                     Verbindungsname: vEthernet (Standardswitch)
                                                     DHCP aktiviert:  Ja
                                                     DHCP-Server:     255.255.255.255
                                                     IP-Adresse(n)
                                                     [01]: 172.20.172.225
                                                     [02]: fe80::a916:5c08:5869:8920
                                               [07]: Realtek PCIe GBE Family Controller
                                                     Verbindungsname: Ethernet
                                                     DHCP aktiviert:  Ja
                                                     DHCP-Server:     Nicht zutreffend
                                                     IP-Adresse(n)
                                               [08]: Bluetooth Device (Personal Area Network)
                                                     Verbindungsname: Bluetooth-Netzwerkverbindung 2
                                                     Status:          Medien getrennt
                                               [09]: Hyper-V Virtual Ethernet Adapter
                                                     Verbindungsname: vEthernet (Primary virtual switch)
                                                     DHCP aktiviert:  Ja
                                                     DHCP-Server:     192.168.178.1
                                                     IP-Adresse(n)
                                                     [01]: 192.168.178.38
                                                     [02]: fe80::d400:5e39:e942:6ceb
                                                     [03]: 2a02:810a:87c0:35b8:7d18:844c:a427:cb11
                                                     [04]: 2a02:810a:87c0:35b8:d400:5e39:e942:6ceb
                                               [10]: Hyper-V Virtual Ethernet Adapter
                                                     Verbindungsname: vEthernet (nat)
                                                     DHCP aktiviert:  Ja
                                                     DHCP-Server:     255.255.255.255
                                                     IP-Adresse(n)
                                                     [01]: 172.24.64.1
                                                     [02]: fe80::f9ed:db3:4c7c:a5d2
Anforderungen für Hyper-V:                     Es wurde ein Hypervisor erkannt. Features, die für Hyper-V erforderlich sind, werden nicht angezeigt.

### Steps to reproduce

  1. crc config
  2. crc start
  3. 
  4. 

### Expected


### Actual


### Logs

You can start crc with `crc start --log-level debug` to collect logs.
Please consider posting this on http://gist.github.com/ and post the link in the issue.

C:\Users\crc\RedHat\crc-windows-1.0.0-beta.3-amd64>crc start --log-level debug
INFO Checking if oc binary is cached
DEBU oc binary already cached
INFO Checking if CRC bundle is cached in '$HOME/.crc'
INFO Check Windows 10 release
INFO Hyper-V installed and operational
INFO Is user a member of the Hyper-V Administrators group
INFO Does the Hyper-V virtual switch exist
Checking file: C:\Users\crc\.crc\machines\crc\.crc-exist
Found binary path at crc.exe
Launching plugin server for driver hyperv
Plugin server listening at address 127.0.0.1:52030
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(crc) Calling .GetBundleName
(crc) Calling .DriverName
(crc) Calling .GetState
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Off
(crc) DBG |
(crc) DBG | [stderr =====>] :
INFO Starting stopped VM ...
(crc) Calling .Start
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\Start-VM crc
(crc) Waiting for host to start...
(crc) DBG | [stdout =====>] :
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] :
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] :
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] :
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : 192.168.178.67
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetConfigRaw
(crc) Calling .GetState
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
Found binary path at crc.exe
Launching plugin server for driver hyperv
Plugin server listening at address 127.0.0.1:52038
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
DEBU Waiting until ssh is available
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : 192.168.178.67
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: external
&{[-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 core@192.168.178.67 -o IdentitiesOnly=yes -i C:\Users\crc\.crc\cache\crc_hyperv_4.1.11\id_rsa_crc -p 22] C:\WINDOWS\System32\OpenSSH\ssh.exe <nil>}About to run SSH command:
exit 0
SSH cmd err, output: exit status 255:
DEBU error: Temporary Error: ssh command error:
command : exit 0
err     : exit status 255
output  :  - sleeping 1s
DEBU retry loop 1
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : 192.168.178.67
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: external
&{[-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 core@192.168.178.67 -o IdentitiesOnly=yes -i C:\Users\crc\.crc\cache\crc_hyperv_4.1.11\id_rsa_crc -p 22] C:\WINDOWS\System32\OpenSSH\ssh.exe <nil>}About to run SSH command:
exit 0
SSH cmd err, output: exit status 255:
DEBU error: Temporary Error: ssh command error:
command : exit 0
err     : exit status 255
output  :  - sleeping 1s
DEBU retry loop 2
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : 192.168.178.67
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: external
&{[-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 core@192.168.178.67 -o IdentitiesOnly=yes -i C:\Users\crc\.crc\cache\crc_hyperv_4.1.11\id_rsa_crc -p 22] C:\WINDOWS\System32\OpenSSH\ssh.exe <nil>}About to run SSH command:
exit 0
SSH cmd err, output: exit status 255:
DEBU error: Temporary Error: ssh command error:
command : exit 0
err     : exit status 255
output  :  - sleeping 1s
DEBU retry loop 3
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : 192.168.178.67
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: external
&{[-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 core@192.168.178.67 -o IdentitiesOnly=yes -i C:\Users\crc\.crc\cache\crc_hyperv_4.1.11\id_rsa_crc -p 22] C:\WINDOWS\System32\OpenSSH\ssh.exe <nil>}About to run SSH command:
exit 0
SSH cmd err, output: exit status 255:
DEBU error: Temporary Error: ssh command error:
command : exit 0
err     : exit status 255
output  :  - sleeping 1s
DEBU retry loop 4
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : 192.168.178.67
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: external
&{[-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 core@192.168.178.67 -o IdentitiesOnly=yes -i C:\Users\crc\.crc\cache\crc_hyperv_4.1.11\id_rsa_crc -p 22] C:\WINDOWS\System32\OpenSSH\ssh.exe <nil>}About to run SSH command:
exit 0
SSH cmd err, output: exit status 255:
DEBU error: Temporary Error: ssh command error:
command : exit 0
err     : exit status 255
output  :  - sleeping 1s
DEBU retry loop 5
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : 192.168.178.67
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: external
&{[-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 core@192.168.178.67 -o IdentitiesOnly=yes -i C:\Users\crc\.crc\cache\crc_hyperv_4.1.11\id_rsa_crc -p 22] C:\WINDOWS\System32\OpenSSH\ssh.exe <nil>}About to run SSH command:
exit 0
SSH cmd err, output: exit status 255:
DEBU error: Temporary Error: ssh command error:
command : exit 0
err     : exit status 255
output  :  - sleeping 1s
DEBU retry loop 6
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : 192.168.178.67
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: external
&{[-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 core@192.168.178.67 -o IdentitiesOnly=yes -i C:\Users\crc\.crc\cache\crc_hyperv_4.1.11\id_rsa_crc -p 22] C:\WINDOWS\System32\OpenSSH\ssh.exe <nil>}About to run SSH command:
exit 0
SSH cmd err, output: exit status 255:
DEBU error: Temporary Error: ssh command error:
command : exit 0
err     : exit status 255
output  :  - sleeping 1s
DEBU retry loop 7
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : 192.168.178.67
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: external
&{[-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 core@192.168.178.67 -o IdentitiesOnly=yes -i C:\Users\crc\.crc\cache\crc_hyperv_4.1.11\id_rsa_crc -p 22] C:\WINDOWS\System32\OpenSSH\ssh.exe <nil>}About to run SSH command:
exit 0
SSH cmd err, output: exit status 255:
DEBU error: Temporary Error: ssh command error:
command : exit 0
err     : exit status 255
output  :  - sleeping 1s
DEBU retry loop 8
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : 192.168.178.67
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: external
&{[-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 core@192.168.178.67 -o IdentitiesOnly=yes -i C:\Users\crc\.crc\cache\crc_hyperv_4.1.11\id_rsa_crc -p 22] C:\WINDOWS\System32\OpenSSH\ssh.exe <nil>}About to run SSH command:
exit 0
SSH cmd err, output: exit status 255:
DEBU error: Temporary Error: ssh command error:
command : exit 0
err     : exit status 255
output  :  - sleeping 1s
DEBU retry loop 9
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : 192.168.178.67
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: external
&{[-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 core@192.168.178.67 -o IdentitiesOnly=yes -i C:\Users\crc\.crc\cache\crc_hyperv_4.1.11\id_rsa_crc -p 22] C:\WINDOWS\System32\OpenSSH\ssh.exe <nil>}About to run SSH command:
exit 0
SSH cmd err, output: exit status 255:
DEBU error: Temporary Error: ssh command error:
command : exit 0
err     : exit status 255
output  :  - sleeping 1s
ERRO Error occurred: Failed to connect to the crc VM with SSH
Making call to close driver server
(crc) Calling .Close
Successfully made call to close driver server
Making call to close connection to plugin binary
Making call to close driver server
(crc) Calling .Close
(crc) DBG | Closing plugin on server side
Successfully made call to close driver server
Making call to close connection to plugin binary
(crc) DBG | Closing plugin on server side

C:\Users\crc\RedHat\crc-windows-1.0.0-beta.3-amd64>C:\WINDOWS\System32\OpenSSH\ssh.exe 192.168.178.67
The authenticity of host '192.168.178.67 (192.168.178.67)' can't be established.
ECDSA key fingerprint is SHA256:3cLdGuHpiKLZ9crA/yUQZRNadGG3gIFN/Zl9UTZBrts.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.178.67' (ECDSA) to the list of known hosts.
crc@192.168.178.67's password:
Permission denied, please try again.
crc@192.168.178.67's password:

C:\Users\crc\RedHat\crc-windows-1.0.0-beta.3-amd64>ping 192.168.178.67

Ping wird ausgeführt für 192.168.178.67 mit 32 Bytes Daten:
Antwort von 192.168.178.67: Bytes=32 Zeit<1ms TTL=64
Antwort von 192.168.178.67: Bytes=32 Zeit<1ms TTL=64
Antwort von 192.168.178.67: Bytes=32 Zeit<1ms TTL=64

Ping-Statistik für 192.168.178.67:
    Pakete: Gesendet = 3, Empfangen = 3, Verloren = 0
    (0% Verlust),
Ca. Zeitangaben in Millisek.:
    Minimum = 0ms, Maximum = 0ms, Mittelwert = 0ms
@gbraad
Copy link
Contributor

gbraad commented Sep 12, 2019

It is not clear what is happening. It feels like an issue with ssh, but you confirm it is listening as endpoint. Let me examine this more closely after editing the description/report. It is hard to read as all is nested inside a code block.

@youwalther65
Copy link
Author

Thank you! The first thing I observed was that "crc setup" was looking for a Hyper-V "Default Switch". Because my computer is setup with German locals it only comes with "Standardswitch". So I created a "Default Switch". I tried all kinds of setup for this switch - external, internal, private. But I don`t get "crc setup" running with either of this options., Could this lead to the problems I described. I mean SSH port of the VM is listening and asks for a passowrd. So it is not clear for me what to test next.

@youwalther65
Copy link
Author

And even if after I switched to English local now I still have the wrong switch which is not changeable

PS C:\Users\crc> (Hyper-V\Get-VMSwitch).Name
Shared
extswitch
nat
Primary virtual switch
Standardswitch

@anjannath
Copy link
Member

@youwalther65 You already seem to have connectivity with the VM, that means, its not an issue with the virtual switch, i think its because of the SSH client in use, Did you turn on the openssh client provided by windows? if so could you try to start crc after disabling it.

https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse#uninstalling-openssh

@youwalther65
Copy link
Author

Thanks a lot . This helps. Still got some Errors but worked around them.
But I had to tweak the "hosts" file to get DNS Resolution working:

SSH binary not found, using native Go implementation
&{{{ 0 [] [] []} core [0x751a10] 0x7519e0 [] 0s} 192.168.178.72 22 }
About to run SSH command:
sudo systemctl -f start kubelet
SSH cmd err, output: :
INFO Starting OpenShift cluster ... [waiting 3m]
INFO To access the cluster using 'oc', run 'eval $(crc oc-env) && oc login -u kubeadmin -p 78UVa-zNj5W-YB62Z-ggxGZ https://api.crc.testing:6443'
INFO Access the OpenShift web-console here: https://console-openshift-console.apps-crc.testing
INFO Login to the console with user: kubeadmin, password: 78UVa-zNj5W-YB62Z-ggxGZ
ERRO Error occurred: Error approving the node csr Not able to get csr names (exit status 1 : error: CreateFile C:\Users\crc.crc\machines\crc\kubeconfig: The system cannot find the file specified.
)
Making call to close driver server
(crc) Calling .Close
Successfully made call to close driver server
Making call to close connection to plugin binary
(crc) DBG | Closing plugin on server side
Making call to close driver server
(crc) Calling .Close
Successfully made call to close driver server
Making call to close connection to plugin binary
(crc) DBG | Closing plugin on server side

C:\Users\crc\RedHat\crc-windows-1.0.0-beta.3-amd64>crc oc-env
SET PATH=C:\Users\crc.crc\bin;%PATH%
REM Run this command to configure your shell:
REM @for /f "tokens=*" %i IN ('crc oc-env') DO @call %i

C:\Users\crc\RedHat\crc-windows-1.0.0-beta.3-amd64>@for /f "tokens=*" %i IN ('crc oc-env') DO @call %i

C:\Users\crc\RedHat\crc-windows-1.0.0-beta.3-amd64>oc login -u kubeadmin -p 78UVa-zNj5W-YB62Z-ggxGZ https://api.crc.testing:6443
error: dial tcp: lookup api.crc.testing: no such host - verify you have provided the correct host and port and that the server is currently running.

C:\Users\crc\RedHat\crc-windows-1.0.0-beta.3-amd64>oc login -u kubeadmin -p 78UVa-zNj5W-YB62Z-ggxGZ https://api.crc.testing:6443
The server uses a certificate signed by an unknown authority.
You can bypass the certificate check, but any data you send to the server could be intercepted by others.
Use insecure connections? (y/n): y

Login successful.

You have access to the following projects and can switch between them with 'oc project ':

  • default
    kube-public
    kube-system
    openshift
    ..

C:\Users\crc\RedHat\crc-windows-1.0.0-beta.3-amd64>oc whoami
kube:admin

C:\Windows\System32\drivers\etc>type hosts

Copyright (c) 1993-2009 Microsoft Corp.

192.168.178.72 console-openshift-console.apps-crc.testing
192.168.178.72 oauth-openshift.apps-crc.testing
192.168.178.72 api.crc.testing

Is this as expected?

@gbraad
Copy link
Contributor

gbraad commented Sep 15, 2019

Is this as expected?

what is?

You should have DNS working from the default switch.

@gbraad
Copy link
Contributor

gbraad commented Sep 15, 2019

created a "Default Switch"

This would never work, as this would come without DHCP functionality. It seems you are running "Version 1803 (April 2018 Update)" from the release ID... but your Switch is localized? I thoght they fixed this. Perhaps this is only in later releases. Can you run the update?

@gbraad gbraad changed the title crc start stops with failed to connect to the CRC VM with SSH even if network is working Virtual switch name needs to be localized for Windows 10 - 1803, eg. German install Sep 16, 2019
gbraad added a commit to gbraad-redhat/crc that referenced this issue Sep 16, 2019
@gbraad
Copy link
Contributor

gbraad commented Sep 16, 2019

Please test with the current version of your Windows installation. I have created an update version of the binary (without an embedded bundle). You can find it at: http://artifacts.ci.centos.org/minishift/crc/pr/595/windows-amd64/

@youwalther65
Copy link
Author

Thx gbraad but still getting an error in pre-create check using your crc Version which I renamed to "crc-dev"

Current switch Setup (I deleted "Default Switch" which I have created to avoid Breaking the pre-check)
PS C:\Users\crc> (Hyper-V\Get-VMSwitch)

Name SwitchType NetAdapterInterfaceDescription


Shared Private
extswitch Private
nat Internal
Primary virtual switch External Realtek PCIe GBE Family Controller
Standardswitch Internal
DockerNAT Internal

Here the debug ouput
C:\Users\crc\RedHat\crc-windows-1.0.0-beta.3-amd64>crc-dev start --log-level debug
INFO Checking if running as normal user
INFO Checking if oc binary is cached
DEBU oc binary already cached
INFO Check Windows 10 release
INFO Hyper-V installed and operational
INFO Is user a member of the Hyper-V Administrators group
INFO Does the Hyper-V virtual switch exist
Checking file: C:\Users\crc.crc\machines\crc.crc-exist
? Image pull secret [? for help] **********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************

INFO Extracting bundle: crc_hyperv_4.1.11.crcbundle ...
INFO Creating VM ...
Found binary path at crc-dev.exe
Launching plugin server for driver hyperv
Plugin server listening at address 127.0.0.1:52068
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(crc) Calling .GetMachineName
(crc) Calling .DriverName
Running pre-create checks...
(crc) Calling .PreCreateCheck
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @(Get-Module -ListAvailable hyper-v).Name | Get-Unique
(crc) DBG | [stdout =====>] : Hyper-V
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole("S-1-5-32-578")
(crc) DBG | [stdout =====>] : True
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive [Console]::OutputEncoding = [Text.Encoding]::UTF8; (Hyper-V\Get-VMSwitch).Name
(crc) DBG | [stdout =====>] : Shared
(crc) DBG | extswitch
(crc) DBG | nat
(crc) DBG | Primary virtual switch
(crc) DBG | Standardswitch
(crc) DBG | DockerNAT
(crc) DBG |
(crc) DBG | [stderr =====>] :
ERRO Error occurred: Error creating host: Error creating the VM. Error with pre-create check: "virtual switch "Default Switch" not found"
Making call to close driver server
(crc) Calling .Close
(crc) DBG | Closing plugin on server side
Successfully made call to close driver server
Making call to close connection to plugin binary

@anjannath
Copy link
Member

INFO Does the Hyper-V virtual switch exist

From the logs vswitch check passed!

what is the o/p of Get-VMSwitch after you update windows?

@gbraad
Copy link
Contributor

gbraad commented Sep 17, 2019

The Default Switch from Windows can not be removed (he removed his previous internal switch called as Default Switch). From the output I see: 'Standardswitch', which sounds like the German for the default. It seems to fail in the create step ... (got missed due to the bodge OP applied earlier).

I will also create an issue to WARN: Recommend updating when the version is between 1704 and the current latest for Windows 10.

@youwalther65
Copy link
Author

Exactly, "Standardswitch" is the one which should be choosed during setup.
@gbraad : it is possible to change the crc (standalone) exe to choose it? Thx in advance!

gbraad added a commit to gbraad-redhat/crc that referenced this issue Sep 18, 2019
@gbraad
Copy link
Contributor

gbraad commented Sep 18, 2019

I made a change for the create process too... It should now work. Please have a go.

@gbraad
Copy link
Contributor

gbraad commented Sep 18, 2019

gbraad added a commit to gbraad-redhat/crc that referenced this issue Sep 19, 2019
@gbraad gbraad self-assigned this Sep 19, 2019
@gbraad
Copy link
Contributor

gbraad commented Sep 19, 2019

No regressions on current versions of Windows.

@youwalther65
Copy link
Author

It works now !!! Thx a lot :-)

@youwalther65
Copy link
Author

Will this crc setup fix be integrated into final solution?

gbraad added a commit to gbraad-redhat/crc that referenced this issue Sep 24, 2019
gbraad added a commit to gbraad-redhat/crc that referenced this issue Sep 25, 2019
gbraad added a commit to gbraad-redhat/crc that referenced this issue Sep 25, 2019
@ThomasSchoenbeck
Copy link

@praveenkumar I tested that version first but it didn't work. in my search for a fix i came across this thread.

I then tested the two older betas and the fix provided a few post above.

I now got the RC version to run with this exe http://artifacts.ci.centos.org/minishift/crc/pr/693/windows-amd64/

I can only say that the RC version did not work for me, as if this fix is not part of the RC release.

@ThomasSchoenbeck

This comment has been minimized.

@gbraad
Copy link
Contributor

gbraad commented Oct 10, 2019

I now got the RC version to run with this exe http://artifacts.ci.centos.org/minishift/crc/pr/693/windows-amd64/

Please use the RC binary for testing. do NOT submit issues against PR binaries as they are only offered for short-term tests.

@gbraad
Copy link
Contributor

gbraad commented Oct 10, 2019

I can only say that the RC version did not work for me, as if this fix is not part of the RC release.

This fix is part of the RC releases 75b417e

Please clean your environment with a crc delete, and use the latest released RC binary with embedded bundle. Use crc setup and crc start to confirm correct behaviour.

  1. Download https://mirror.openshift.com/pub/openshift-v4/clients/crc/1.0.0-rc.0/
  2. crc delete
  3. crc version
  4. crc setup
  5. crc config view
  6. crc start --log-level debug

Note: output of config view, version and start is required to analyse the issue.

@ThomasSchoenbeck
Copy link

ThomasSchoenbeck commented Oct 10, 2019

guys please, i started everything with the RC release, and i used the RC binary.

I only started using the PR binary since it didn't work. But as you wish, just for you i do it a third time, so you will believe me.

@gbraad
Copy link
Contributor

gbraad commented Oct 10, 2019

just for you i do it a third time, so you will believe me.

This is not begging you, but your analysis has been hard to follow as you combined several version over the course. The original report contained no information to point to this: #579 (comment)

@ThomasSchoenbeck
Copy link

Yes, no worries. But it's also about the RC version. If the fix does not work in the RC verison, i guess you would also like to know that.

@gbraad
Copy link
Contributor

gbraad commented Oct 10, 2019

i guess you would also like to know that.

This is at the moment all I care about, as I need to make sure there is no regression.

Note: I am glad to receive a report about this, as it has been hard for us to test. This issue only occurs with certain 'older' versions of Windows 10, and only when the install is performed using a Windows 10 localized installation, and not the MUI.

@ThomasSchoenbeck
Copy link

i am using Windows 10 Version 1803 (OS Build 17134.1009) at the moment.

image

@gbraad
Copy link
Contributor

gbraad commented Oct 10, 2019

1803

One of the known versions with this issue. More recent versions, like 1903 do not have a localized Default Switch.

@ThomasSchoenbeck
Copy link

ThomasSchoenbeck commented Oct 10, 2019

i tested my current binary, than downloaded the one from your link. can't even delete the old VM

C:\Users\tschoenb
λ crc version
version: 1.0.0-rc.0+34371d3
OpenShift version: 4.2.0-0.nightly-2019-09-26-192831 (embedded in binary)

C:\Users\tschoenb
λ crc version
version: 1.0.0-rc.0+34371d3
OpenShift version: 4.2.0-0.nightly-2019-09-26-192831 (embedded in binary)

C:\Users\tschoenb
λ crc delete
Do you want to delete the crc VM? [y/N]: y
ERRO Error occurred: Error attempting to get plugin server address for RPC: Failed to dial the plugin server in 10s

C:\Users\tschoenb
λ crc_pr693 delete
Do you want to delete the crc VM? [y/N]: y
CodeReady Containers instance deleted

@ThomasSchoenbeck
Copy link

1803

One of the known versions with this issue. More recent versions, like 1903 do not have a localized Default Switch.

company policy. not yet allowed to upgrade

@gbraad
Copy link
Contributor

gbraad commented Oct 10, 2019

In the meantime, please share the result of the PowerShell command:

PS> Get-VMSwitch -Id %s | ForEach-Object { $_.Name }

@ThomasSchoenbeck
Copy link

PowerShell does not like the Id flag. but without it works

C:\Users\tschoenb
λ  Get-VMSwitch | ForEach-Object { $_.Name }
Standardswitch

@ThomasSchoenbeck
Copy link

C:\Users\tschoenb
λ rm -rf ./.crc

C:\Users\tschoenb
λ crc version
version: 1.0.0-rc.0+34371d3
OpenShift version: 4.2.0-0.nightly-2019-09-26-192831 (embedded in binary)

C:\Users\tschoenb
λ crc setup
INFO Checking if running as normal user
INFO Caching oc binary
INFO Unpacking bundle from the CRC binary
INFO Check Windows 10 release
INFO Hyper-V installed
INFO Is user a member of the Hyper-V Administrators group
INFO Does the Hyper-V virtual switch exist
Setup is complete, you can now run 'crc start' to start a CodeReady Containers instance

C:\Users\tschoenb
λ crc start --pull-secret-file ./Downloads/openshift-crc/pull-secret.txt
INFO Checking if running as normal user
INFO Checking if oc binary is cached
INFO Check Windows 10 release
INFO Hyper-V installed and operational
INFO Is user a member of the Hyper-V Administrators group
INFO Does the Hyper-V virtual switch exist
INFO Extracting bundle: crc_hyperv_4.2.0-0.nightly-2019-09-26-192831.crcbundle ...
INFO Creating CodeReady Containers VM for OpenShift 4.2.0-0.nightly-2019-09-26-192831...
ERRO Error occurred: Error creating host: Error creating new host: Error attempting to get plugin server address for RPC: Failed to dial the plugin server in 10s

C:\Users\tschoenb
λ crc config view

C:\Users\tschoenb
λ crc start --pull-secret-file ./Downloads/openshift-crc/pull-secret.txt --log-level debug
DEBU Error checking if a new version is available: Get https://mirror.openshift.com/pub/openshift-v4/clients/crc/latest/release-info.json: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
INFO Checking if running as normal user
INFO Checking if oc binary is cached
DEBU oc binary already cached
INFO Check Windows 10 release
INFO Hyper-V installed and operational
INFO Is user a member of the Hyper-V Administrators group
INFO Does the Hyper-V virtual switch exist
Checking file: C:\Users\tschoenb\.crc\machines\crc\.crc-exist
INFO Loading bundle: crc_hyperv_4.2.0-0.nightly-2019-09-26-192831.crcbundle ...
INFO Creating CodeReady Containers VM for OpenShift 4.2.0-0.nightly-2019-09-26-192831...
Found binary path at C:\Users\tschoenb\tools\crc.exe
Launching plugin server for driver hyperv
ERRO Error occurred: Error creating host: Error creating new host: Error attempting to get plugin server address for RPC: Failed to dial the plugin server in 10s

@gbraad
Copy link
Contributor

gbraad commented Oct 10, 2019

ERRO Error occurred: Error creating host: Error creating new host: Error attempting to get plugin server address for RPC: Failed to dial the plugin server in 10s

This is the issue... and this is not related to the switch name, but likely with how the binary was produced.

@ThomasSchoenbeck
Copy link

I saw the error as well, but could not wrap my head around what that means. I mean, it can't create the VM I guess.

@gbraad
Copy link
Contributor

gbraad commented Oct 10, 2019

it can't create the VM I guess.

Actually, it can't seem to start crc to invoke the VM driver. (this is a different entrypoint into the same binary).

@ThomasSchoenbeck
Copy link

ThomasSchoenbeck commented Oct 10, 2019

Ok. Not sure if I can help you more with this.

At least i know that this can perform the process, create and start the VM.

C:\Users\tschoenb
λ crc_pr693 version
version: 1.0.0-dev+6020abf
OpenShift version: 4.2.0-0.nightly-2019-09-26-192831 (not embedded in binary)

I can post the debug log from the dev version if that helps

@gbraad
Copy link
Contributor

gbraad commented Oct 10, 2019

Did you get a prompt to allow connections when it was named crc.exe? Try renaming the file as crc_rc.exe and try to see if this invokes? Application firewall rules are based on the filepath.

@ThomasSchoenbeck
Copy link

I also thought about windows firewall and set a rule specifically for crc.exe to allow everything. But that never changed anything.

Still i just tried what you suggested:

C:\Users\tschoenb                                                                                                  
λ mv ./tools/crc.exe ./tools/crc_rc.exe                                                                        
                                                                                                                   
C:\Users\tschoenb                                                                                                  
λ crc_rc version                                                                                                   
version: 1.0.0-rc.0+34371d3                                                                                        
OpenShift version: 4.2.0-0.nightly-2019-09-26-192831 (embedded in binary)                                          
                                                                                                                   
C:\Users\tschoenb                                                                                                  
λ crc_rc stop                                                                                                      
Stopping CodeReady Containers instance... this may take a few minutes                                              
ERRO Error occurred: Error attempting to get plugin server address for RPC: Failed to dial the plugin server in 10s

@gbraad
Copy link
Contributor

gbraad commented Oct 10, 2019

It might be the way the executable was built. Can you try http://artifacts.ci.centos.org/minishift/crc/pr/694/windows-amd64/ ?

@ThomasSchoenbeck
Copy link

i am missing the correct bundle for that.

C:\Users\tschoenb
λ crc_pr694 version
version: 1.0.0-dev+8f83916
OpenShift version: 4.2.0-rc.0 (not embedded in binary)

C:\Users\tschoenb
λ crc_pr694 start
ERRO Error occurred: File C:\Users\tschoenb\.crc\crc_hyperv_4.2.0-rc.0.crcbundle does not exist
ERRO Error occurred: You must provide the path to a valid bundle using the -b option

C:\Users\tschoenb
λ ls -la ./.crc
total 2205477
drwxr-xr-x 1 tschoenb Domain Users          0 Oct 10 17:30 ./
drwxr-xr-x 1 tschoenb Domain Users          0 Oct 10 17:19 ../
drwxr-xr-x 1 tschoenb Domain Users          0 Oct 10 17:20 bin/
drwxr-xr-x 1 tschoenb Domain Users          0 Oct 10 17:20 cache/
-rw-r--r-- 1 tschoenb Domain Users         22 Oct 10 17:28 crc.json
-rw-r--r-- 1 tschoenb Domain Users      31324 Oct 10 17:51 crc.log
-rw-r--r-- 1 tschoenb Domain Users 2258343400 Oct 10 17:20 crc_hyperv_4.2.0-0.nightly-2019-09-26-192831.crcbundle
drwxr-xr-x 1 tschoenb Domain Users          0 Oct 10 17:30 machines/

so for now i am just making a copy.

C:\Users\tschoenb
λ cp .\.crc\crc_hyperv_4.2.0-0.nightly-2019-09-26-192831.crcbundle .\.crc\crc_hyperv_4.2.0-rc.0.crcbundle

C:\Users\tschoenb
λ crc_pr694 start
WARN A new version (1.0.0-rc.0) has been published on https://cloud.redhat.com/openshift/install/crc/installer-provisioned
INFO Checking if running as normal user
INFO Checking if oc binary is cached
INFO Check Windows 10 release
INFO Hyper-V installed and operational
INFO Is user a member of the Hyper-V Administrators group
INFO Does the Hyper-V virtual switch exist
FATA Bundle 'crc_hyperv_4.2.0-rc.0.crcbundle' was requested, but loaded VM is using 'crc_hyperv_4.2.0-0.nightly-2019-09-26-192831.crcbundle'

C:\Users\tschoenb
λ crc_pr694 delete
Do you want to delete the crc VM? [y/N]: y
CodeReady Containers instance deleted

C:\Users\tschoenb
λ crc_pr694 start --pull-secret-file ./Downloads/openshift-crc/pull-secret.txt
WARN A new version (1.0.0-rc.0) has been published on https://cloud.redhat.com/openshift/install/crc/installer-provisioned
INFO Checking if running as normal user
INFO Checking if oc binary is cached
INFO Check Windows 10 release
INFO Hyper-V installed and operational
INFO Is user a member of the Hyper-V Administrators group
INFO Does the Hyper-V virtual switch exist
INFO Extracting bundle: crc_hyperv_4.2.0-rc.0.crcbundle ...

@ThomasSchoenbeck
Copy link

So since i am able to delete the VM i guess it works.

Only problem is that i don't know where to get the correct RC bundle.

@ThomasSchoenbeck
Copy link

no, the bundle copy didn't work

INFO Extracting bundle: crc_hyperv_4.2.0-rc.0.crcbundle ...
ERRO Error occurred: Error getting bundle metadata: Could not find cached bundle info

@gbraad
Copy link
Contributor

gbraad commented Oct 10, 2019

This release should be the same as the https://mirror.openshift.com/pub/openshift-v4/clients/crc/1.0.0-rc.0/

Perhaps your bundle does not extract since you got bundle set. Verify this with crc config view and use crc config unset bundle to clear this. This should contain the bundle that the binary would accept. I'll compare the versions as likely something during the copy/build failed to produce the same.

@ThomasSchoenbeck
Copy link

ThomasSchoenbeck commented Oct 10, 2019

That's also odd. I always get an empty config

C:\Users\tschoenb
λ crc_pr694 config view


C:\Users\tschoenb
λ crc_pr694 config unset bundle
Successfully removed config for: bundle

C:\Users\tschoenb
λ crc_pr694 start --pull-secret-file ./Downloads/openshift-crc/pull-secret.txt
WARN A new version (1.0.0-rc.0) has been published on https://cloud.redhat.com/openshift/install/crc/installer-provisioned
INFO Checking if running as normal user
INFO Checking if oc binary is cached
INFO Check Windows 10 release
INFO Hyper-V installed and operational
INFO Is user a member of the Hyper-V Administrators group
INFO Does the Hyper-V virtual switch exist
INFO Extracting bundle: crc_hyperv_4.2.0-rc.0.crcbundle ...
ERRO Error occurred: Error getting bundle metadata: Could not find cached bundle info

running the start command again. update will follow soon

update: as shown above the bundle does not like the manually changed name.

@ThomasSchoenbeck
Copy link

ThomasSchoenbeck commented Oct 10, 2019

This release should be the same as the https://mirror.openshift.com/pub/openshift-v4/clients/crc/1.0.0-rc.0/

Perhaps your bundle does not extract since you got bundle set. Verify this with crc config view and use crc config unset bundle to clear this. This should contain the bundle that the binary would accept. I'll compare the versions as likely something during the copy/build failed to produce the same.

but this link also contains the nightly bundle. So the RC bundle just has a different name?

@gbraad
Copy link
Contributor

gbraad commented Oct 10, 2019

Oh, my bad. This sync might not have happened yet.

Anyway, I got the information I want. it seems to be related to the binary. I might get back to you, can you send me an email at gbraad@redhat.com or me@gbraad.nl so I can share files directly without having to talk over GitHUu issue comments.

@ThomasSchoenbeck
Copy link

Alright, done. Thank you very much for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants