Skip to content

VM cannot run normally in kvm UEFI LEGACY mode #4245

@div8cn

Description

@div8cn
ISSUE TYPE
  • Bug Report
COMPONENT NAME
KVM 
UEFI
CLOUDSTACK VERSION
4.14.0.0
CONFIGURATION
OS / ENVIRONMENT

Hypervisor: CentOS7.6
Compiled against library: libvirt 4.5.0
Using library: libvirt 4.5.0
Using API: QEMU 4.5.0
Running hypervisor: QEMU 2.12.0

OVMF: OVMF-20180508-6.gitee3198e672e2.el7.noarch

SUMMARY

Under KVM Hypervisor
In UEFI LEGACY mode, the VM cannot enter the system normally, and "Guest has not initialized the display (yet)." is displayed in the console.

image
VM starts normally in UEFI Secure mode

After comparison, we found that:
In UEFI LEGACY mode, the VM uses pc-i440f chip,
In UEFI Secure mode, the Q35 chip is used.

After I switched the VM chip from pc-i440fx-rhel7.6.0 to pc-q35-rhel7.6.0 (manually modify the configuration file), the VM can enter the system normally.

so. UEFI under CentOS7 should run under Q35 chip (UEFI LEGACY AND UEFI SECURE)

STEPS TO REPRODUCE
1.Deploy VM through template, boot type select UEFI.Boot Mode select LEGACY 
2.After the VM runs successfully, open the console

EXPECTED RESULTS
The console displays guest OS information, or UEFI shell.
ACTUAL RESULTS
Guest has not initialized the display (yet).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions