Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-40258

Imported Windows VMs Incorrectly Set to Use SSH Instead of WinRM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Critical Critical
    • CNV v4.16.0
    • None
    • CNV Infrastructure
    • None
    • No

      Description of problem:

      Upon importing Windows VMs using the KubeVirt plugin, the ansible_connection fact uses "ssh" instead of "winrm". This causes a failure to connect to the Windows VMs.

       

      Steps to Reproduce:

      1. Create a Win VM
      2. Import the VM via KubeVirt Plugin
      3. Check the Host Variables and you will see ansible_connection: "ssh"
      

      Expected results:

      ansible_connection: "winrm"

      Additional info:

      In addition, if you attempt to make these changes in the Group level, the variables don't have precedence over Host vars (as expected) so setting ansible_connections: winrm at the group level will not work. The workaround for now is to manually adjust the ansible_connection var at the host level and set to winrm. 

      Also as an FYI, if you are using self-signed certificates you need:

      ansible_winrm_server_cert_validation: ignore 

      We need to make sure if do need this, set it at the Group Level and let users know how to do that. 

            fmatousc@redhat.com Felix Matouschek
            rlopez@redhat.com Roger Lopez
            Roni Kishner Roni Kishner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: