Skip to content
This repository was archived by the owner on Sep 26, 2021. It is now read-only.
This repository was archived by the owner on Sep 26, 2021. It is now read-only.

can't create machine as a user that has "Hyper-V Administration" rights #2989

Open
@jtnord

Description

@jtnord

using docker-machine create --driver hyperv should not require administrator rights.

Users who are a member of "Hyper-V Administrators" groups can create/destroy Virtual machines.

C:\Users\luser>docker-machine create --driver hyperv --hyperv-virtual-switch "vEthernet (NAT)" boot2docker
Running pre-create checks...
Error creating machine: Error with pre-create check: Hyper-v commands have to be run as an Administrator

This is the offending code - the check should check the user is an administrator or a member of "Hyper-V administrators"

see this artical for the old gory details for old OSes that are no longer needed with Windows 8+ Server 2012 R2+...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions