This script is used to reinstall the Linux OS of a KVM-based VPS or a Hyper-V virtual machine to Debian 10 Buster.
/boot directorysudo bash -c "$(curl -fsSL https://github.com/bohanyang/debian-network-reinstall/raw/master/netinst.sh)" -- <OPTIONS>
--preset (china/cloud)--ip--netmask--gateway--dns '8.8.8.8 8.8.4.4'--hostname debian--installer-password--authorized-keys-url--suite buster--mirror-protocol http (http/https/ftp)--mirror-host deb.debian.org--mirror-directory /debian--security-repository http://security.debian.org/debian-security--skip-account-setup--username debian--password--timezone UTC https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List--ntp 0.debian.pool.ntp.org--skip-partitioning--partitioning-method regular--disk--force-gpt Create a GUID Partition Table (Default)--no-force-gpt--bios Don't create EFI system partition. If GPT is being used, create a BIOS boot partition (bios_grub partition). Default if /sys/firmware/efi is absent. See--efi Create an EFI system partition. Default if /sys/firmware/efi exists--filesystem ext4--kernel Choose an package for the kernel image--cloud-kernel Choose linux-image-cloud-amd64 as the kernel image--no-install-recommends--install--safe-upgrade--full-upgrade--eth Disable Consistent Network Device Naming to get eth0, eth1, etc. back--bbr--power-off--architecture--boot-partition--dry-runchina--dns '223.5.5.5 223.6.6.6'--protocol https--mirror mirrors.aliyun.com--security true--ntp ntp.aliyun.comcloud--dns '1.1.1.1 1.0.0.1'--protocol https--mirror deb.debian.org--security true--ntp 0.debian.pool.ntp.org