citizenple.blogg.se

Box vagrant
Box vagrant












$ mkdir ~/test_project & cd ~/test_project $ vagrant box add windows/10 Win10圆4.boxĬreate and run a test project: # create project folder $ vagrant package -base -output Win10圆4.box # shutdown windowsĭon't forget to remove unnecessary hardware like audio, usb and CD/DVD and set CPU and RAM to the bare minimum.Ĭreate the base box: # create base box from VM > del /F /S /Q %APPDATA%\Microsoft\Windows\Recent\* > Set-ExecutionPolicy -Force -ExecutionPolicy Unrestrictedĭownload SDelete and open the Command Prompt as Admin and execute: # remove recents > Get-Childitem "C:\Windows\Logs\dosvc" | Remove-Item -Verbose > Get-AppXPackage -AllUsers | Remove-AppXPackage Open the PowerShell as Admin and execute: # remove all of the metro apps > winrm set winrm/config/winrs winrm set winrm/config winrm set winrm/config/service winrm set winrm/config/service/auth sc config WinRM start=auto Open the Command Prompt as Admin and execute: > winrm quickconfig -q Open secpol.msc and go to Network List Manager Policies > Network and set Network Location to Private. > C:\Windows\system32\netsh.exe advfirewall firewall set rule group="remote desktop" new enable=Yes

box vagrant

> C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f Open the Command Prompt as Admin and execute: # enable remote desktop

box vagrant

> C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\UIPI /ve /t REG_SZ /d "0x00000001" /f

box vagrant

> C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v FilterAdministratorToken /t REG_DWORD /d "0x00000001" /f > C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d "0x00000000" /f Open the Command Prompt as Admin and execute: # disable uac The following settings are necessary for managing your VM with Vagrant. A short how-to on creating a Windows 10 base box for use with Vagrant and VirtualBox.














Box vagrant