zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    调用AsyncTask的excute方法不能立即执行程序的原因分析及改善方案
    辅助
    目录检索
    高斯消元法
    树套树
    珂朵莉树
    卢卡斯定理
    中国剩余定理
    数论基础
    网络流基础
  • 原文地址:https://www.cnblogs.com/hurongpu/p/8565537.html
Copyright © 2011-2022 走看看