hyper-v 2016 - vm can not install windows feature on vhdx onto hyper-v host

nebulaIT

New Member
Joined
Apr 5, 2020
Messages
9
hi,

i have win 10 hyper-v host --> (H1 - 192.168.1.200)

i have created to VMs, viz. 1} hv-nug1, 2}gui-nug, 3}core-nug --> "gui-nug" & "core-nug" are Clonned from "hv-nug1".

when i try to install windows feature from "core-nug" OR "gui-nug" on Offline VHDX(core-nug.vhdx OR gui-nug-) residing on Host i.e. H1 - 192.168.1.200, i get following Error---->

location of VHDXs ---->c:\VMs\core-nug\Virtual Hard Disks\hv-nug1.vhdx' --> on 192.168.200 - Host



------------------^-----------------

Install-WindowsFeature -Name web-server -Vhd '\\192.168.1.200\c$\VMs\core-nug\Virtual Hard Disks\hv-nug1.vhdx'
Install-WindowsFeature : You do not have adequate user rights to the specified path:
\\192.168.1.200\c$\VMs\core-nug\Virtual Hard Disks\hv-nug1.vhdx. Verify that the folder grants Read and
Write permissions to the computer account of the server that you specified to mount the VHD. Error:
0x80070005.
At line:1 char:1
+ Install-WindowsFeature -Name web-server -Vhd '\\192.168.1.200\c$\VMs\ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (@{Vhd=\\192.168...Name=localhost}:PSObject) [Install-Wind
owsFeature], DeploymentProviderException
+ FullyQualifiedErrorId : DeploymentImage_InitializeImagePath_GetFileAttributes_AccessDenied,Microsoft
.Windows.ServerManager.Commands.AddWindowsFeatureCommand

-------------------^--------------

kindly respond ASAP. Thanks in advance.
 


Solution
The error clearly tells you what the problem is
Install-WindowsFeature : You do not have adequate user rights to the specified path:
I'm assuming these are non-domain joined devices, in which case you would need to pass credentials that are valid on the remote host
The error clearly tells you what the problem is
Install-WindowsFeature : You do not have adequate user rights to the specified path:
I'm assuming these are non-domain joined devices, in which case you would need to pass credentials that are valid on the remote host
 


Solution
nice to see you back. thanks for reply.

i am using single Laptop for my Lab. my VM are in WorkGroup.(core-nug VM + gui-nug VM)

win 10 hyper-v host (name = "H1", ip address =192.168.1.200) --->

"gui-nug" (VM) + "core-nug" (VM) residing on win 10 hyper-v(192.168.1.200).

gui-nug.vhdx + core-nug.vhdx are stored on win 10 Host(192.168.1.200)--> running windows 2016 server(data center).

so when i connect to core-nug VM & tries to install windows feature on Offline "gui-nug.vhdx" it gives me following Error.

so basically "core-nug" VM is trying to access "gui-nug.vhdx" on VMHost 192.168.1.200 -->

thank again, hope to see you again.
 


Attachments

  • vhdxError.webp
    vhdxError.webp
    62.2 KB · Views: 246
  • vhdxError1.webp
    vhdxError1.webp
    64.2 KB · Views: 237
Back
Top