侧边栏壁纸
博主头像
学习园地博主等级

行动起来,活在当下

  • 累计撰写 6 篇文章
  • 累计创建 3 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录

甲骨文AMD单机netboot救砖

Administrator
2024-09-04 / 0 评论 / 0 点赞 / 27 阅读 / 4016 字

间接法

因为AMD内存过小,所以需要使用Apline做中继

启动cloud shell

image
image-1711845752957
点击强制重新引导
bios

拉取netboot镜像

efishell

FS0:
ifconfig -s eth0 dhcp

日本

tftp 168.138.192.98 amd.efi
tftp 168.138.192.98 arm.efi

韩国

#Oracle
tftp 152.70.37.174 amd.efi
tftp 152.70.37.174 arm.efi 
#Azure
tftp 4.217.252.35 amd.efi
tftp 4.217.252.35 arm.efi

凤凰城

tftp 129.146.9.206 amd.efi 
tftp 129.146.9.206 arm.efi

如果出现time out,请到甲骨文虚拟云网络-安全列表放通udp请求

net
输入exit

输入amd.efi进入netboot
选择Apline Linux
ap
用户root 无密码 回车
setup

#设置Apline
setup-alpine

一路回车
设置完密码
image-1711853155019
image-1711853220638
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退出到主页面
amdnetboot
3.此时可直接选择Debian进行安装了
4. 软件选择时要选上ssh server ,空格键选择或取消

开启root登录与上同

0

评论区