debian-autoinstall
auto install debian for kvm vps with netboot.
Sample
# use default options: debian10 amd64 user:root password:HelloDebian ssh_port:22
wget -Odi.sh https://github.com/fcying/debian-di/raw/master/di.sh && bash di.sh
Dependence
apt-get update
apt-get install -y wget gawk cpio libpcre3 openssl ca-certificates
Min Memory Requirement (free -m)
debian 10 >= 285M
debian 11 >= 440M
debian 12 >= 440M
Options
--help
-d/--debian [value]
10 or strtch
debian version, default10
-a/--arch [value]
architecture version:amd64
i386
arm64
defaultamd64
-m/--mirror [value]
apt mirror, ex:-m https://opentuna.cn/debian
or-m china
, use mirrorhttps://opentuna.cn/debian
--dns [value]
default8.8.8.8
-u/--user [value]
user name, default:root
-p/--password [value]
user password, default:HelloDebian
--port [value]
ssh port-b/--biosdevname
interface name not useethx
--hostname
default use$(hostname)
-6/--ipv6
enable ipv6--dhcp [value]
1: use DHCP 0: static ip from current system default1
--ip-addr [value]
if not set, get current system ip addr--ip-gate [value]
if not set, get current system ip gate--ip-mask [value]
if not set, get current system ip mask