• Use UEFI as the default boot for AArch64


    Queens版本之前存在此bug

    Method 1:

    bug修复patch:

    http://git.openstack.org/cgit/openstack/nova/commit/?id=9d1a909bfebc8040c37109bce46e4d7a9a88a245

    具体添加:

    Pike or Ocata:

    在nova/virt/libvirt/driver.py中def _configure_guest_by_virt_type(self, guest, virt_type, caps, instance,
                                          image_meta, flavor, root_device_name)
    添加如下红色部分代码,
                    guest.sysinfo = self._get_guest_config_sysinfo(instance)
                    guest.os_smbios = vconfig.LibvirtConfigGuestSMBIOS()
                hw_firmware_type = image_meta.properties.get('hw_firmware_type')
                if caps.host.cpu.arch == fields.Architecture.AARCH64:
                    if not hw_firmware_type:
                        hw_firmware_type = fields.FirmwareType.UEFI
                if hw_firmware_type == fields.FirmwareType.UEFI:
                    if self._has_uefi_support():

    Newton:

    4372             if caps.host.cpu.arch == arch.AARCH64:
    4373                 if not hw_firmware_type:
    4374                     hw_firmware_type = fields.FirmwareType.UEFI

    Method 2:

    设置image的hw_firmware_type,detail information: https://docs.openstack.org/glance/pike/admin/troubleshooting.html

    $ openstack image create --container-format bare --disk-format qcow2 
      --property hw_firmware_type=uefi --file /tmp/cloud-uefi.qcow --name uefi
  • 相关阅读:
    Javascript 与 c# 数据加密互通 DEC
    Auto.js 隐藏日志信息、定时器
    Auto.js 检测开启无障碍
    Auto.js 初学碰到的坑
    SmartAssembly 汉化说明
    espcms 表结构说明
    处理器调度
    进程死锁与避免
    并发程序设计
    Mysql性能调优
  • 原文地址:https://www.cnblogs.com/hurongpu/p/8565537.html
Copyright © 2020-2023  润新知