Created
January 17, 2018 08:11
-
-
Save theirix/514f648fd2fa4addeaef260f06e2f5a2 to your computer and use it in GitHub Desktop.
Bootstrap Windows Development VirtualBox Vm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo IT RUNS SLOW AND IS NOT TESTED ENOUGHT | |
exit 1 | |
echo Download and configure Windows development VM with Visual Studio | |
echo See https://developer.microsoft.com/en-us/windows/downloads/virtual-machines | |
curl -L https://aka.ms/windev_VM_virtualbox | bsdtar -xvf - -C . | |
ISO=$(ls -1t *.iso | head -n1) | |
HOSTIP=$(hostname -i) | |
echo Using iso $ISO | |
vboxmanage import $ISO --vsys 0 --vmname vmmswindev --vsys 0 --memory 4096 | |
vboxmanage modifyvm vmmswindev --vrde on --vrdeaddress $HOSTIP --vrdeport 3300 | |
vboxmanage modifyvm vmmswindev --natpf1 rdc,tcp,$HOSTIP,3389,0.0.0.0,3389 | |
vboxheadless -s vmmswindev --vrde on | |
echo Now connect by virtualbox RDC or VNC to $HOSTIP:3300 and enable native Remote Desktop | |
echo Then connect as usual to $HOSTIP:3389 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment