Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

packer hyperv-iso refuses to see that I have hyper-v ps commands available #22

@Matty666

Description

@Matty666

It always complains that PS Hyper-V module is not loaded, but it is.

C:\0source\vagrant [master ↑1 +2 ~1 -0 !]> packer build packer.json
hyperv-iso output will be in this color.

Build 'hyperv-iso' errored: Failed creating Hyper-V driver: PS Hyper-V module is not loaded. Make sure Hyper-V feature is on.

==> Some builds didn't complete successfully and had errors:
--> hyperv-iso: Failed creating Hyper-V driver: PS Hyper-V module is not loaded. Make sure Hyper-V feature is on.

==> Builds finished but no artifacts were created.
C:\0source\vagrant [master ↑1 +2 ~1 -0 !]> get-command get-vm

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Cmdlet          Get-VM                                             2.0.0.0    Hyper-V

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions