Instalar Windows en Contabo

Instalar Windows en Contabo


Boot to rescue (Clonzilla)

  1. Connect trough vnc client
  2. Enter shell
  3. Login to root$sudo su —
  4. Make partition(all command in script see bellow)Using parted or fdisk#parted /dev/sda
  5. Make mbr table
  6. Create 3 partition0G -> 8G ntfs 
  7. 8G -> max-size -20GB ntfs 
  8. max-size -20gb > max-size ext4
  9. Make 1 partition bootable and leave parted(parted) set 1 boot on
  10. Format drives#mkfs.ntfs -f /dev/sda1
  11. #mkfs.ntfs -f /dev/sda2
  12. #mkfs.ext4 /dev/sda3
  13. Mount them#mkdir /mnt/sda1 && mount /dev/sda1 /mnt/sda1
  14. #mkdir /mnt/sda3 && mount /dev/sda3 /mnt/sda3
  15. Go to temporary storage#cd /mnt/sda3
  16. Download windows iso#wget https://windows101tricks.com/1903-iso-64
  17. Download virtio drivers #wget https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso
  18. Mount iso#mkdir /mnt/cd
  19. #mount -o loop /mnt/sda3/1903-iso-64 /mnt/cd
  20. Copy all files from cd to first partition amd unmount cd#cp -av /mnt/cd/* /mnt/sda1/
  21. #umount /mnt/cd
  22. Install wimtools#apt install software-properties-common
  23. #add-apt-repository ppa:nilarimogard/webupd8
  24. #apt install wimtools
  25. #mkdir /mnt/wim
  26. Mount virtio iso and copy it to sda1#mount /mnt/sda3/virtio-win.iso /mnt/cd
  27. #mkdir /mnt/sda1/virtio && cp -av /mnt/cd/* /mnt/sda1/virtio
  28.  copy to wim#wimmountrw /mnt/sda1/sources/boot.wim 1 /mnt/wim
  29. #mkdir /mnt/wim/virtio
  30. # cp -av /mnt/cd/* /mnt/wim/virtio
  31. #wimunmount —commit /mnt/wim
  1. Copy to wim 2#wimmountrw /mnt/sda1/sources/boot.wim 2 /mnt/wim
  2. #mkdir /mnt/wim/virtio
  3. # cp -av /mnt/cd/* /mnt/wim/virtio
  4. #wimunmount —commit /mnt/wim
  1. #sync
  2. Unmount all#cd /tmp
  3. #umount /mnt/cd
  4. #umount /mnt/sda1
  5. Download ms-sys app#wget http://prdownloads.sourceforge.net/ms-sys/ms-sys-2.6.0.tar.gz

#chmod +x ms-sys

  1. Make boot sections#ms-sys -n /dev/sda1
  2. #ms-sys -7 /dev/sda

#sync

#reboot

Process installation over vnc as usual

Browse driver in X:/virtio/amd64/w10/

You can delete partition 3 and create new partition 2 with size of part 2+ part 3

Partition 1 is still needed

After windows installed 

You can add first partition in disk manager with letter D:

After perform autosearch network card driver on D:\virtio

Remove D: driver letter

Configure RDP

Note*: to use RDP install atleast win PRO

 5* (Part 5 in short)

Partition (according to disk size 215GB)

#wget http://aknews.ru/win/towin.sh

#chmod +x towin.sh

#./towin.sh

Check partition tables

  • Install

#wget http://aknews.ru/win/towin2.sh

!Probably iso link can be broken so replace it

#chmod +x towin2.sh

#./towin2.sh

#reboot



Report Page