Comments (10)
Hey @msft-mbrant , the reason why we prompt you to be added into the Hyper-V administrators group is because Dev Home does not run as admin. In order for the Hyper-V extension to use Hyper-V functionality like the Hyper-V powershell cmdlets (like the Hyper-V extension uses) or the Hyper-V WMI apis, the extensions process needs to be running with administrative privileges or the user needs to be in the Hyper-V Administrators group. (Then either reboot or log off/on again as the change won't take effect for the users logon session until the users security token is updated). That is why we prompt you to be added into the group and ask for you to reboot.
The Hyper-V Manager for example actually runs with elevated privileges: E.g if you change your UAC settings to the following:
you'll see that the next time you launch the Hyper-V manager you'll be prompted with a UAC prompt even though you are an admin to your computer. Under the hood with normal UAC settings the Hyper-V manager is auto elevating and using a mechanism we can't use in Dev Home. I hope that answers your question.
When users are added to this group, they will be able to view and manage their VMs from Dev Home or any software that uses the Hyper-V apis outside of the Hyper-V manager without being in an elevated process.
from devhome.
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Open similar issues:
- Hyper-V not enabled message confusing (#2784), similarity score: 0.75
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
from devhome.
As a workaround for the Computer Management GUI not allowing non-local users in the local Hyper-V Admin group, Marc-André on social media pointed me to this piece of code:
$CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name if (-Not (Get-LocalGroupMember -Group "Hyper-V Administrators" -Member $CurrentUser -ErrorAction SilentlyContinue)) { Add-LocalGroupMember -Group "Hyper-V Administrators" -Member @($CurrentUser) }
from devhome.
I figured as much when I saw the function of the Hyper-V group. The "Add me" button however doesn't work in the DevHome (for me at least) and the Computer Management MMC GUI won't let me add non-local users. So we need to figure out a way we can get non-local users into that group but from a nice GUI. Ideally the button should work or perhaps a note "Run Dev Home as Admin to see Hyper-V Envs" but I guess that has security implications.
from devhome.
@btueffers @jsidewhite @bbonaby @nieubank @EricJohnson327 @krschau this is another scenario where we'd want to be leveraging some standard UAC flow in Dev Home. I have a task in the Dependencies tasklist under this issue - #2920. I think we should probably convert that to an issue and sync to ensure we are covering all of the necessary scenarios.
from devhome.
Ideally the button should work or perhaps a note "Run Dev Home as Admin to see Hyper-V Envs" but I guess that has security implications.
I tried running Dev Home as an admin but it seems there are more issues with that ... I get an error stating that I have to "Install an extension that supports environments and refresh the page"
I do have extensions that support environments installed, and I can see those in the "Provider" dropdown when I open Dev Home with my usual (domain) account.
from devhome.
@msft-mbrant I haven't been able to repro this issue. Could you confirm if when you run Hyper-V Manager, you can create a VM and when you run DevHome it doesn't show that VM.
from devhome.
@msft-mbrant I haven't been able to repro this issue. Could you confirm if when you run Hyper-V Manager, you can create a VM and when you run DevHome it doesn't show that VM.
Not sure what you mean. I've added my domain account to the local Hyper-V Admins group via the workaround and I can see the VMs created in Hyper-V Manager in my Dev Home Preview install.
from devhome.
@msft-mbrant I mean that I have tested this scenario and it works as expected. We would need more info, but you have already used the workaround as you stated. You shouldn't have needed this because DevHome uses the same commands in the background. Do you have a repro?
P.S. - I have reached out to you on IM as well. We can continue the conversation there and update here when we have a resolution.
from devhome.
Discussed offline; this feature exists and works as expected.
from devhome.
Related Issues (20)
- Remove collapsed vertical mode
- Remove the docking feature
- Rename "WER Reports" to "Crash reports"
- When we change target process, we clear the insights list but we don't reset the badge opacity
- Update the Hyper-V VM gallery Json to include accurate diskspace requirements for each extracted vhdx file
- Search terms for Dev Insights
- Clipboard monitor window doesn't honor theme settings
- Update the Dev Insights name and icon to approved name
- Environments sometime don't load and clicking 'Create new environment' causes a crash HOT 3
- Implement GPO policies
- Dev Home hangs on first launch HOT 4
- Dev Home reporting Hyper-V error when Hyper-V is not installed HOT 1
- Pin to start menu doesn't work HOT 1
- Dev Home extensions do not have a configuration friendly name HOT 2
- Custom Config
- Error creating environment HOT 1
- [Environments reliability] DevBox conflict during creation HOT 2
- Windows customization dialogs always don't override system theme with Dev Home settings theme
- Git Extension (FileExplorerGitIntegration) is missing telemetry
- The delete environment dialog does not respect Dev Homes theme
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devhome.