TonyB2929

Install Windows 10 on a Digital Ocean Droplet 2022 - 2023 with RDC

Dec 19th, 2022
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.85 KB | Software | 0 0
  1. Install Windows 10 on a Digital Ocean Droplet 2022 - 2023 with RDC
  2.  
  3. Get $200 free credits with Digital Ocean from here: https://m.do.co/c/cc46f4d93a22
  4.  
  5. You will need a credit/debit card, which Digital Ocean will take a small test payment normally between ($5 - $7) which will be refunded straight away.
  6.  
  7. Software used in this guide:
  8.  
  9. Putty: https://www.putty.org/
  10.  
  11. VNC Viewer: https://www.realvnc.com/en/connect/download/viewer/
  12.  
  13. mediacreationtool.bat for making the ISO (I will be using this tool in my Windows 11 install on a Droplet as well): https://github.com/AveYo/MediaCreationTool.bat/archive/refs/heads/main.zip
  14.  
  15. Drivers: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/
  16. Whichever is the current release, at the time of this guide it was (virtio-win-0.1.225-2)
  17.  
  18.  
  19. Droplet Details:
  20.  
  21. IP Address: Droplet IP Address
  22. Password: Your Password
  23.  
  24. Putty Commands:
  25.  
  26. apt-get update && apt-get install qemu -y
  27. apt install qemu-utils -y
  28. apt install qemu-system-x86-xen -y
  29. apt install qemu-system-x86 -y
  30. apt install qemu-kvm -y
  31. apt install progress
  32.  
  33. qemu-img create -f raw windows10.img 18G
  34.  
  35. wget -O virtio-win.iso 'https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.225-2/virtio-win-0.1.225.iso'
  36.  
  37. https://www.station307.com/#/
  38.  
  39. wget -O windows10.iso 'URL of your windows10.iso'
  40.  
  41. ls
  42.  
  43. Copy all the below txt & paste into Putty.
  44.  
  45. qemu-system-x86_64 \
  46. -m 3G \
  47. -cpu host \
  48. -enable-kvm \
  49. -boot order=d \
  50. -drive file=windows10.iso,media=cdrom \
  51. -drive file=windows10.img,format=raw,if=virtio \
  52. -drive file=virtio-win.iso,media=cdrom \
  53. -device usb-ehci,id=usb,bus=pci.0,addr=0x4 \
  54. -device usb-tablet \
  55. -vnc :0 \
  56.  
  57. And press Enter twice.
  58.  
  59. When you're installing Windows sometimes you may get an oobekeyboard you can just skip this.
  60.  
  61. Also you may get an oobesettingsmultipage error just click try again.
  62.  
  63. Open gpedit.msc
  64.  
  65. Expand Windows Settings
  66.  
  67. Expand Security Settings
  68.  
  69. Expand Local Policies and click on Security Options
  70. Accounts: Limit local account use of blank passwords to console logon only and right click
  71. and select properties and select Disable, click Apply and OK
  72.  
  73. Close the Local Group Policy Editor window
  74.  
  75. Open CMD and run as Administrator
  76.  
  77. gpupdate /force
  78.  
  79. Once the policies have been updated close the CMD window by typing exit
  80.  
  81. Now close VNC Viewer
  82.  
  83. In Putty compress the Windows template.
  84.  
  85. Press ctrl C
  86.  
  87. dd if=windows10.img | gzip -c>windows10.gz | progress -m
  88.  
  89. To download the compressed file.
  90.  
  91. apt install apache2
  92. sudo ufw allow 'Apache'
  93. cp windows10.gz /var/www/html/
  94.  
  95. http://46.101.75.235/windows10.gz
  96.  
  97. Go to your Digital Ocean Droplet & rebuild it, the reason we rebuild it is so that Windows sees the same hardware and won't crash.
  98.  
  99. Recovery Console Commands:
  100.  
  101. Press the number: 6
  102.  
  103. https://www.station307.com/#/
  104.  
  105. wget -O- URL OF YOUR windows10.gz | gunzip | dd of=/dev/vda
  106.  
  107. When you set your droplet to boot from the hard drive and launch the recovery console again you will get quite a bit of lag from your mouse to the console mouse pointer.
  108.  
  109. Just take it slowly to move the console mouse pointer to get to the Internet & network settings once there you can use the.
  110.  
  111. TAB, Spacebar, Arrow & Enter keys to navigate to the correct network adaptor and set the correct details for the.
  112.  
  113. IP Address, Gateway, and Netmask which will be shown at the bottom of your console.
  114.  
  115. You can use any DNS server I just use Google.
  116.  
  117. Once you see you have an Internet connection you can now open RCP and enter the IP Address and password and connect.
  118.  
  119. Once connected you will see you can use your mouse & keyboard as normal with no lag and you can close the recovery console.
  120.  
  121. You have now installed Windows 10 Pro on a Digital Ocean Droplet.
  122.  
  123. You will also notice that you're not getting the full HDD space that your droplet came with, this is because of the image file we made of only 18GB.
  124.  
  125. We did that because that is what Windows needs to be installed on and saves time on compressing that image.
  126.  
  127. So now we need to expand that to take full use of the droplet HDD space which generally you can do in Disk Management but because there is a recovery partition in between the C drive and the unallocated space you can extend the volume.
  128.  
  129. To get over this you can either use a third-party tool to merge the C drive & the unallocated space or personally AOMEI Partition Assistant but use which one you prefer.
  130.  
  131. Or you can delete the recovery partition and then extend the volume in Disk Management, there is a guide here:
  132.  
  133. https://www.diskpart.com/res/extend-volume-blocked-by-a-recovery-partition-on-windows-10-0825.html
  134.  
  135. So once you have done either of the above you'll be able to use all of the HDD space on the droplet and all the resources that came with your droplet of choice, memory and so on.
  136.  
  137. Any comments please leave them below.
Advertisement
Add Comment
Please, Sign In to add comment