microsoft / windows-dev-box-setup-scripts

Scripts to simplify setting up a Windows developer box
MIT License
1.5k stars 367 forks source link

Hyper V didnt get installed when running dev_web.ps1 #80

Open ddieppa opened 5 years ago

ddieppa commented 5 years ago

boxstarter.log Was running dev_web.ps1 script and didn't get Hyper V installed, here is what I found in the Boxstarter log;

Installing the following packages:
Microsoft-Hyper-V-All
By installing you accept licenses for the packages.
Microsoft-Hyper-V-All not installed. The package was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "C:\Users\ddieppa\AppData\Local\Apps\2.0\073JBC6P.X42\WGX1XDKD.9PO\boxs..tion_c786fcdd1652c60a_0002.000c_efda7cf3ed105942\BuildPackages;https://chocolatey.org/api/v2"

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - Microsoft-Hyper-V-All - Microsoft-Hyper-V-All not installed. The package was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "C:\Users\ddieppa\AppData\Local\Apps\2.0\073JBC6P.X42\WGX1XDKD.9PO\boxs..tion_c786fcdd1652c60a_0002.000c_efda7cf3ed105942\BuildPackages;https://chocolatey.org/api/v2"
Sending message 'PostRunMessage' out if there are subscribers...
[2018-11-20T08:39:36.2356583-05:00:::PID 6456] Boxstarter: restoring current directory location to C:\Windows\system32
VERBOSE: Boxstarter: restoring current directory location to C:\Windows\system32
[2018-11-20T08:39:36.2512840-05:00:::PID 6456] Boxstarter: Exit Code: 1
VERBOSE: Boxstarter: Exit Code: 1

Attached is the entire Boxstarter log file

Also noticed that after failing running the HyperV.ps1 script, apparently none of the following scripts run: Docker.ps1, WSL.ps1, Browsers.ps1. Didn't get installed any browser or docker or WSL

yodurr commented 5 years ago

Hmm, I wonder since we have two possible ways of installing optional features if one is preferred over the other.

gep13 commented 5 years ago

@ddieppa can you confirm what Operating System you are running this on?

scadu commented 5 years ago

I reproduced this issue on Windows 10 Pro 10.0.17134.

When running

choco install -y Microsoft-Hyper-V-All --source="'windowsFeatures'"

or

choco install -y Microsoft-Windows-Subsystem-Linux --source="'windowsfeatures'"

outside the Boxstarter it works correctly -- package is being found, feature installed. The issue occurs when running with Boxstarter. Since it fails silently, the installation has finished with a broken Docker and WSL.

ddieppa commented 5 years ago

sorry for the late response, I am using this: Microsoft Windows Version 1809 (OS Build 17763.134)

kuranai commented 5 years ago

Seems to work when you use choco install -y Microsoft-Hyper-V-All -source windowsFeatures in the HyperV.ps1 file.