leitbogioro / Tools

Something about tools
3.06k stars 472 forks source link

阿里云UEFI无法进入系统 #58

Closed 12189108 closed 1 year ago

12189108 commented 1 year ago

若初始系统模板为Ubuntu 22.04 UEFI,则dd后无法进入系统,dd后在vnc界面的bios选择ubuntu引导无法进入,会立即回退到bios界面

leitbogioro commented 1 year ago

使用 UEFI 固件的是 arm64 机型吗?阿里云 ECS arm64 有两种 CPU,一种是倚天 710,还有一种是 Amphere A1,Amphere A1 的兼容性较好,在 Oracle Cloud,Hetzner 的 arm64 机型都采用的是它。倚天 710 的兼容性略次一些,采用原生方式安装的 AlpineLinux/Debian/Ubuntu/红帽系是可以正常安装和运行的,但采用 cloud image 安装的 Ubuntu 在倚天 710 CPU 上无法正常启动。

leitbogioro commented 1 year ago

如果设置了低内存模式,许多固件无法得到加载,导致低于 2.5GB 内存的阿里云 ECS arm64 机型硬盘识别有误,8GB 机型测试通过了,这个阈值需要重新设定一下

12189108 commented 1 year ago

cpu信息如下,2C2G的ECS云服务器,dd的命令为bash InstallNET.sh -ubuntu 22.04 --image 反代的amd的镜像地址

Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         46 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  2
  On-line CPU(s) list:   0,1
Vendor ID:               GenuineIntel
  Model name:            Intel(R) Xeon(R) Platinum
    CPU family:          6
    Model:               85
    Thread(s) per core:  2
    Core(s) per socket:  1
    Socket(s):           1
    Stepping:            4
    BogoMIPS:            5000.00
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constan                         t_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadl                         ine_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms                          invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves arat
Virtualization features: 
  Hypervisor vendor:     KVM
  Virtualization type:   full
Caches (sum of all):     
  L1d:                   32 KiB (1 instance)
  L1i:                   32 KiB (1 instance)
  L2:                    1 MiB (1 instance)
  L3:                    33 MiB (1 instance)
NUMA:                    
  NUMA node(s):          1
  NUMA node0 CPU(s):     0,1
Vulnerabilities:         
  Gather data sampling:  Unknown: Dependent on hypervisor status
  Itlb multihit:         KVM: Mitigation: VMX unsupported
  L1tf:                  Mitigation; PTE Inversion
  Mds:                   Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown
  Meltdown:              Mitigation; PTI
  Mmio stale data:       Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown
  Retbleed:              Vulnerable
  Spec rstack overflow:  Not affected
  Spec store bypass:     Vulnerable
  Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:            Mitigation; Retpolines, STIBP disabled, RSB filling, PBRSB-eIBRS Not affected
  Srbds:                 Not affected
  Tsx async abort:       Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown

初始系统模板选不带UEFI的用一样的命令成功重装

leitbogioro commented 1 year ago

我是拿阿里云 ECS ARM UEFI 机型测试的,外加修复了一些如串行控制台显示、Debian 由于配合低内存参数导致无法加载驱动不认 nvme 硬盘问题。

目前测试通过的系统有:原生安装的 AlmaLinux 9,RockyLinux 9,Debian 12,Kali rolling。

Ubuntu 20.04+ cloud image 因为驱动问题 dd 安装后无法启动,可能在 amd64 机型上兼容性更好一点。