间接法
因为AMD内存过小,所以需要使用Apline做中继
启动cloud shell


点击强制重新引导

拉取netboot镜像

FS0:
ifconfig -s eth0 dhcp
新加坡
tftp 168.138.175.120 amd.efi
巴黎
tftp 141.145.221.202 amd.efi 
圣保罗
tftp 146.235.27.19 amd.efi 
凤凰城
tftp 141.148.165.116 amd.efi
如果出现time out,请到甲骨文虚拟云网络-安全列表放通udp请求

按照下面gif操作

用户root 无密码 回车

#设置Apline
setup-alpine
一路回车
设置完密码


reboot重启,输入root,回车,密码进入Apline
脚本dd
apk update
apk add bash wget
sed -i 's/root:\/bin\/ash/root:\/bin\/bash/g' /etc/passwd
wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh && bash InstallNET.sh -debian 12 -pwd '密码'
结束
手动dd
apk update
apk add wget xz tar
wget "https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-nocloud-amd64.tar.xz" -O - | xz -d | tar -xv 
dd if=./disk.raw of=/dev/sda bs=1M
reboot
回车输入 用户名root 密码为空
设置root登录
apt update
apt purge -y openssh-server
apt install  -y openssh-server
echo root:你的密码 | chpasswd root
sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config
sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config
rm -rf /etc/ssh/sshd_config.d/* && rm -rf /etc/ssh/ssh_config.d/*
/etc/init.d/ssh* restart
结束
直接法
1.前序步骤与间接法一致
2.netboot界面选择 Utilities(UEFI)–Kernel cmdline params,输入console=ttyS0,9600,回车,ESC退出到主页面

3.此时可直接选择Debian进行安装了
4. 软件选择时要选上ssh server ,空格键选择或取消
开启root登录与上同