Guest User

Create Custom Windows Image for Digital Ocean - Rean's Web (2022 Update)

a guest
Jan 19th, 2022
18,396
1
Never
3
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.63 KB | None | 1 0
  1. Reans Web - Creating Custom Image on Digital Ocean '(2022 Update)'
  2.  
  3. Click here to watch on youtube : https://youtu.be/wtHBDEl5DIw
  4.  
  5. Why create your own image?
  6.  
  7. - Extremely Safe (No Keylogger software that you might get from downloading random windows image online)
  8. - You can choose which OS you want (fully customize it)
  9.  
  10. Get Digital Ocean Special $100 Credit : https://reansweb.com/specialoffer
  11.  
  12. You need 3 things on your pc
  13. 1. Browser
  14. 2. Putty : https://putty.org
  15. 3. VNC Viewer : https://www.realvnc.com/en/connect/download/viewer/
  16.  
  17. Commands :
  18.  
  19. Step 1 : Necessary stuff :
  20.  
  21. copy then paste on putty by right clicking.
  22.  
  23. apt-get update && apt-get install qemu -y
  24. apt install qemu-utils -y
  25. apt install qemu-system-x86-xen -y
  26. apt install qemu-system-x86 -y
  27. apt install qemu-kvm -y
  28.  
  29.  
  30. Step 2 : Creating the empty image file (Edit name with your OS Version):
  31.  
  32. qemu-img create -f raw windows2019.img 16G
  33.  
  34.  
  35. Step 3 : Drivers and Windows Download (Input your own link for custom windows server)
  36.  
  37. Download Drivers : https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio
  38. Download Windows : https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server
  39.  
  40. Custom Updated DRIVER LINK : INPUT YOUR LINK HERE
  41. Custom Windows LINK : INPUT YOUR LINK HERE
  42.  
  43. wget -O virtio-win.iso 'https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.215-1/virtio-win-0.1.215.iso'
  44. wget -O windows2019.iso 'https://software-download.microsoft.com/download/pr/17763.737.190906-2324.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us_1.iso'
  45.  
  46. Check if you have all the files with the command : ls
  47.  
  48. Step 4 : Virtualize the image:
  49.  
  50. qemu-system-x86_64 \
  51.   -m 3G \
  52.   -cpu host \
  53.   -enable-kvm \
  54.   -boot order=d \
  55.   -drive file=windows2019.iso,media=cdrom \
  56.   -drive file=windows2019.img,format=raw,if=virtio \
  57.   -drive file=virtio-win.iso,media=cdrom \
  58.   -device usb-ehci,id=usb,bus=pci.0,addr=0x4 \
  59.   -device usb-tablet \
  60.   -vnc :0 \
  61. (PRESS ENTER TWICE AFTER PASTING)
  62.  
  63. It will restart a few times
  64.  
  65. Once done, hold ctrl+c to exit in putty.
  66.  
  67. Step 5 : Compress The Image File :
  68.  
  69. dd if=windows2019.img | gzip -c>windows2019.gz
  70.  
  71. heck if you have all the files with the command : ls
  72.  
  73.  
  74. Step 6 : Hosting the image on droplet :
  75.  
  76. apt install apache2
  77. sudo ufw allow 'Apache'
  78. cp windows2019.gz /var/www/html/
  79.  
  80. Check if it works with typing : http://YOUR-IP-HERE/windows2019.gz
  81.  
  82. You can also download it on your own computer and host it in Google Drive to store it.
  83.  
  84. Get Digital Ocean Special $100 Credit : https://reansweb.com/specialoffer
  85.  
  86. Watch on youtube here : https://youtu.be/wtHBDEl5DIw
Advertisement
Comments
  • joopman
    2 years
    # text 0.08 KB | 0 0
    1. I have to keep putty running for the server to start is there away around it?
    • TonyB2929
      2 years
      # text 0.15 KB | 0 0
      1. You should use the 2nd video, really this s only a template to make first. Then you won't need to keep Putty open and can access the new install via RDC
  • forculate
    2 years
    # text 0.20 KB | 0 0
    1. can you explain how to make/create this custom link ends with .iso
    2. 'https://software-download.microsoft.com/download/pr/17763.737.190906-2324.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us_1.iso'
    3.  
Add Comment
Please, Sign In to add comment