# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1

en:
  vagrant_hyperv:
    choose_switch: |-
      Please choose a switch to attach to your Hyper-V instance.
      If none of these are appropriate, please open the Hyper-V manager
      to create a new virtual switch.
    message_already_running: |-
      Hyper-V instance already running.
    message_not_created: |-
      VM not created. Moving on...
    message_not_running: |-
      Hyper-V machine isn't running. Can't SSH in!

    config:
      invalid_auto_start_action: |-
        The requested auto start action for the Hyper-V VM is not a
        valid action. Please provide a valid action and run the command
        again.

          Received: %{action}
          Allowed: %{allowed_actions}
      invalid_auto_stop_action: |-
        The requested auto stop action for the Hyper-V VM is not a
        valid action. Please provide a valid action and run the command
        again.

          Received: %{action}
          Allowed: %{allowed_actions}
      invalid_integration_services_type: |-
        Invalid type provided for `vm_integration_services`. Type received
        is `%{received}` but `Hash` was expected.
      invalid_integration_services_entry: |-
        The `%{entry_name}` entry in the `vm_integration_services` is set
        to an unexpected value.

          Received: %{entry_value}
          Allowed: true, false
      differencing_disk_deprecation: |-
        The `differencing_disk` configuration option is deprecated and should
        no longer be used. The `linked_clone` configuration option should
        be used instead.
    errors:
      admin_required: |-
        The Hyper-V provider requires that Vagrant be run with
        administrative privileges. This is a limitation of Hyper-V itself.
        Hyper-V requires administrative privileges for management
        commands. Please restart your console with administrative
        privileges and try again.
      box_invalid: |-
        The box you're using with the Hyper-V provider ('%{name}')
        is invalid. A Hyper-V box should contain both a
        "Virtual Machines" and a "Virtual Hard Disks" folder that are
        created as part of exporting a Hyper-V machine.

        Within these directories, Vagrant expects to find the
        virtual machine configuration as well as the root hard disk.

        The box you're attempting to use is missing one or both of
        these directories or does not contain the files expected. Verify
        that you added the correct box. If this problem persists,
        please contact the creator of the box for assistance.
      ip_addr_timeout: |-
        Hyper-V failed to determine your machine's IP address within the
        configured timeout. Please verify the machine properly booted and
        the network works. To do this, open the Hyper-V manager, find your
        virtual machine, and connect to it.

        The most common cause for this error is that the running virtual
        machine doesn't have the latest Hyper-V integration drivers. Please
        research for your operating system how to install these in order
        for the VM to properly communicate its IP address to Hyper-V.
      no_switches: |-
        There are no virtual switches created for Hyper-V! Please open
        the Hyper-V Manager, go to the "Virtual Switch Manager", and create
        at least one virtual switch.

        A virtual switch is required for Vagrant to create a Hyper-V
        machine that is connected to a network so it can access it.

        For more help, please see the documentation on the Vagrant website
        for Hyper-V.
      powershell_features_disabled: |-
        The Hyper-V cmdlets for PowerShell are not available! Vagrant
        requires these to control Hyper-V. Please enable them in the
        "Windows Features" control panel and try again.
      powershell_error: |-
        An error occurred while executing a PowerShell script. This error
        is shown below. Please read the error message and see if this is
        a configuration error with your system. If it is not, then please
        report a bug.

        Script: %{script}
        Error:

        %{stderr}
      powershell_required: |-
        The Vagrant Hyper-V provider requires PowerShell to be available.
        Please make sure "powershell.exe" is available on your PATH.
      windows_required: |-
        The Hyper-V provider only works on Windows. Please try to
        use another provider.
      system_access_required: |-
        Hyper-V access check has failed for the configured destination. This
        is usually caused by running on a non-system drive which is missing
        required permissions. Running the following command may resolve the
        problem:

          icacls.exe %{root_dir} /T /Q /grant "NT AUTHORITY\SYSTEM:(IO)(CI)(F)"
