公有云 阿里云自定义安装系统 解决centos版本太高vos安装不上emp问题

#一键安装脚本  https://ssr.tools/693
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -c 6.5 -v 64 -a
默认密码是 MoeClub.org

#想了解具体安装过程可参考如下详解
#先运行:
#Debian/Ubuntu:
apt-get update

#RedHat/CentOS:
yum update

#确保安装了所需软件:
#Debian/Ubuntu:
apt-get install -y xz-utils openssl gawk file

#RedHat/CentOS:
yum install -y xz openssl gawk file


# dist-name: 发行版本代号
# dist-version: 发行版本号
# -apt/-yum/--mirror : 使用定义镜像
# -a/-m : 询问是否能进入VNC自行操作. -a 为不提示(一般用于全自动安装), -m 为提示.

#使用自定义镜像全自动安装
bash InstallNET.sh -c 6.10 -v 64 -a --mirror 'http://mirror.centos.org/centos'


#网络重装系统 centos6.10安装以centos6.5为例
wget http://mirrors.aliyun.com/centos/6.5/os/x86_64/images/pxeboot/vmlinuz -O /boot/vmlinuz.centos.pxe
wget http://mirrors.aliyun.com/centos/6.5/os/x86_64/images/pxeboot/initrd.img /boot/initrd.img.centos.pxe
#编辑启动菜单
vim /boot/grub/menu.lst
title CentOS 6.5 VNC Installation
root (hd0,0)
kernel /vmlinuz.centos.pxe vnc vncpassword=xiaofan@1 headless ip=127.0.0.1 netmask=255.255.255.0 gateway=127.0.0.1 dns=114.114.114.114 ksdevice=eth0 method=http://mirrors.aliyun.com/centos/6.5/os/x86_64/ lang=en_US keymap=us
initrd /initrd.img.centos.pxe
#修改启动项
default=1
reboot
#用vnc链接即可
IP:1



#centos7 安装
wget http://mirrors.aliyun.com/centos/7/os/x86_64/images/pxeboot/initrd.img -O /boot/initrd.img.remote
wget http://mirrors.aliyun.com/centos/7/os/x86_64/images/pxeboot/vmlinuz -O /boot/vmlinuz.remote
vim /etc/grub.d/40_custom
menuentry "remote reinstall" {
        set root=(hd0,1)
        linux /vmlinuz.remote repo=http://mirrors.aliyun.com/centos/7/os/x86_64/ vnc vncpassword=password ip=192.168.100.51 netmask=255.255.255.0 gateway=192.168.100.1 nameserver=223.5.5.5 noselinux headless xfs panic=60
        initrd /initrd.img.remote
}
#追加此选项
vim /etc/default/grub
GRUB_DEFAULT="remote reinstall"
#更新启动项
grub2-mkconfig --output=/boot/grub2/grub.cfg