super 发表于 2024-3-18 23:15:00

甲骨文云利用 netboot.xyz 救砖重装任意系统

注意arm机器可直接按流程救砖,amd请看后面部分AMD救砖说明前期准备打开出问题的机器,左侧找到并打开 “控制台连接”
https://3dm.pw/upload/2024/03/0-4.png
等待 shell 终端加载完成后重新引导系统,并在 shell 空白后按键盘上的 Esc 键进入 BIOS
https://3dm.pw/upload/2024/03/3.gif
依次选择 Boot Manager —-> EFI Internal ShellFS0:
ifconfig -s eth0 dhcp
ping 1.1.1.1
TFTP拉取netboot镜像(多节点分流)东京
#AMD
tftp 168.138.192.92 amd.efi amd.efi
#ARM
tftp 168.138.192.92 arm.efi arm.efi

凤凰城
#AMD
tftp 129.146.9.206 amd.efi amd.efi
#ARM
tftp 129.146.9.206 arm.efi arm.efi

引导镜像下载好 netboot 的镜像包之后,输入exit并按 Esc 进入 BIOS 中
Boot Maintenance Manager –> Boot from File–> 选择硬盘回车–> 选择镜像文件回车–> 成功进入 netboot.xyz
https://3dm.pw/upload/2024/03/0-1.gif
netboot.xyz 中选择相应的系统安装
https://3dm.pw/upload/2024/03/0-1-1.png
以Debain为例
https://3dm.pw/upload/2024/03/1.gif
至此流程完毕。
AMD救砖说明amd机器内存较小,因此需要通过apline中转救砖
首先,选择alpine系统
https://3dm.pw/upload/2024/03/2.gif
setup-alpine
Enter system hostname (fully qualified form,e.g.'foo.example.org') 回车
#直接一路回车
Changing password for root:
#输入密码,重复密码
Allow root ssh login? ('?' for help) yes
Which disk(s) would you like to use? (or '?' for help or 'none')sda
How would you like to use it? ('sys','data','crypt','lvm'or '?'for help)[?] sys
WARNING:Erase the above disk(s) and continue?(y/n) y
#等2分钟
reboot

apk update
apk add bash wget
sed -i 's/root:\/bin\/ash/root:\/bin\/bash/g' /etc/passwd
wget--no-check-certificate-qOInstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/lnstallNET.sh' && chmod a+x InstallNET.sh
bash InstallNET.sh -debian 11 -pwd '密码'
等待10-20分钟,安装完毕手动dd
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/sdb bs=1M

需要在cloudshell中设置root登录
用户名root,无密码,直接回车#重装ssh
sudo apt update -y
sudo apt remove -y --purge openssh-server
sudo apt install-y openssh-server
#设置root密码和root登录
echo root:密码 |sudo chpasswd root
sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo service sshd restart

页: [1]
查看完整版本: 甲骨文云利用 netboot.xyz 救砖重装任意系统