|
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | +Reans Web - Creating Custom Image on Digital Ocean '(2022 Update)' |
| 6 | + |
| 7 | +Click here to watch on youtube : https://youtu.be/wtHBDEl5DIw |
| 8 | + |
| 9 | +Why create your own image? |
| 10 | + |
| 11 | +- Extremely Safe (No Keylogger software that you might get from downloading random windows image online) |
| 12 | +- You can choose which OS you want (fully customize it) |
| 13 | + |
| 14 | +Get Digital Ocean Special $100 Credit : https://reansweb.com/specialoffer |
| 15 | + |
| 16 | +You need 3 things on your pc |
| 17 | +1. Browser |
| 18 | +2. Putty : https://putty.org |
| 19 | +3. VNC Viewer : https://www.realvnc.com/en/connect/download/viewer/ |
| 20 | + |
| 21 | +Commands : |
| 22 | + |
| 23 | +Step 1 : Necessary stuff : |
| 24 | + |
| 25 | +copy then paste on putty by right clicking. |
| 26 | + |
| 27 | +apt-get update && apt-get install qemu -y |
| 28 | +apt install qemu-utils -y |
| 29 | +apt install qemu-system-x86-xen -y && |
| 30 | +apt install qemu-system-x86 -y && |
| 31 | +apt install qemu-kvm -y |
| 32 | + |
| 33 | +apt install qemu-system-x86-xen -y && apt install qemu-system-x86 -y && apt install qemu-kvm -y |
| 34 | + |
| 35 | + |
| 36 | +Step 2 : Creating the empty image file (Edit name with your OS Version): |
| 37 | + |
| 38 | +qemu-img create -f raw windows2019.img 16G |
| 39 | + |
| 40 | + |
| 41 | +Step 3 : Drivers and Windows Download (Input your own link for custom windows server) |
| 42 | + |
| 43 | +Download Drivers : https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio |
| 44 | +Download Windows : https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server |
| 45 | + |
| 46 | +Custom Updated DRIVER LINK : INPUT YOUR LINK HERE |
| 47 | +Custom Windows LINK : INPUT YOUR LINK HERE |
| 48 | + |
| 49 | +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' |
| 50 | +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' |
| 51 | + |
| 52 | +Check if you have all the files with the command : ls |
| 53 | + |
| 54 | +Step 4 : Virtualize the image: |
| 55 | + |
| 56 | +qemu-system-x86_64 \ |
| 57 | + -m 3G \ |
| 58 | + -cpu host \ |
| 59 | + -enable-kvm \ |
| 60 | + -boot order=d \ |
| 61 | + -drive file=windows2019.iso,media=cdrom \ |
| 62 | + -drive file=windows2019.img,format=raw,if=virtio \ |
| 63 | + -drive file=virtio-win.iso,media=cdrom \ |
| 64 | + -device usb-ehci,id=usb,bus=pci.0,addr=0x4 \ |
| 65 | + -device usb-tablet \ |
| 66 | + -vnc :0 \ |
| 67 | +(PRESS ENTER TWICE AFTER PASTING) |
| 68 | + |
| 69 | +It will restart a few times |
| 70 | + |
| 71 | +Once done, hold ctrl+c to exit in putty. |
| 72 | + |
| 73 | +Step 5 : Compress The Image File : |
| 74 | + |
| 75 | +dd if=windows2019.img | gzip -c>windows2019.gz |
| 76 | + |
| 77 | +heck if you have all the files with the command : ls |
| 78 | + |
| 79 | + |
| 80 | +Step 6 : Hosting the image on droplet : |
| 81 | + |
| 82 | +apt install apache2 |
| 83 | +sudo ufw allow 'Apache' |
| 84 | +cp windows2019.gz /var/www/html/ |
| 85 | + |
| 86 | +Check if it works with typing : http://YOUR-IP-HERE/windows2019.gz |
| 87 | + |
| 88 | +You can also download it on your own computer and host it in Google Drive to store it. |
| 89 | + |
| 90 | +Get Digital Ocean Special $100 Credit : https://reansweb.com/specialoffer |
| 91 | + |
| 92 | +Watch on youtube here : https://youtu.be/wtHBDEl5DIw |
| 93 | + |
0 commit comments