Skip to content

Instantly share code, notes, and snippets.

@theirix
Created January 17, 2018 08:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theirix/514f648fd2fa4addeaef260f06e2f5a2 to your computer and use it in GitHub Desktop.
Save theirix/514f648fd2fa4addeaef260f06e2f5a2 to your computer and use it in GitHub Desktop.
Bootstrap Windows Development VirtualBox Vm
#!/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