Hi Pratik

1. Try the following steps


Edit the file /etc/libvirt/qemu.conf and add the following line

nvram = ["/usr/share/OVMF/OVMF_CODE.secboot.fd:/usr/share/OVMF/OVMF_VARS.fd"]

2. Restart the cloud stack agent and libvirtd or force reconnect the host

service libvirtd restart
service cloudstack-agent restart

3. Check the db entry value for host.uefi.enable

mysql> select * from host_details;
+----+---------+----------------------------------------------------+------------------------------------------------------+
| id | host_id | name                                               | value     
                                           |
+----+---------+----------------------------------------------------+------------------------------------------------------+
|  1 |       1 | Host.OS.Kernel.Version                             | 
5.15.0-35-generic                                    |
|  2 |       1 | com.cloud.network.Networks.RouterPrivateIpStrategy | HostLocal 
                                           |
|  3 |       1 | Host.OS.Version                                    | 22.04     
                                           |
|  4 |       1 | host.volume.encryption                             | true      
                                           |
|  5 |       1 | secured                                            | true      
                                           |
|  6 |       1 | Host.OS                                            | Ubuntu    
                                           |
|  8 |       1 | password                                           | 
Nl8+U+aEYhs7XQmf6Jz9Q6b5JmGqbO4fvV3xfDT+KgNYfd19g8us |
| 14 |       1 | username                                           | root      
                                           |
| 28 |       1 | host.uefi.enable                                   | true      
                                           |
+----+---------+----------------------------------------------------+------------------------------------------------------+
9 rows in set (0.00 sec)

3. Register a uefi template

https://repo.almalinux.org/almalinux/8/cloud/x86_64/images/


4. Try to deploy a vm

-------------
If you are still facing the issue, then please try with Centos 8 host/ instead 
of Ubuntu 22.04.2 as i think it could be a limitation

http://docs.cloudstack.apache.org/en/latest/installguide/hypervisor/kvm.html?highlight=uefi#uefi-legacy-secureboot

Please refer the Limitations

https://cwiki.apache.org/confluence/display/CLOUDSTACK/Enable+UEFI+booting+for+Instance



Also, Could you raise a Github issue for this


https://github.com/apache/cloudstack/issues

Regards
Kiran

________________________________
From: Pratik Chandrakar <[email protected]>
Sent: 13 April 2023 18:02
To: [email protected] <[email protected]>
Subject: Error on UEFI Secure boot on 4.18

Hello All,
 I am getting "Guest has not initialized the display (yet)." message on VM
creation on CKS 4.18 on UEFI - Secure boot however there is no issue on
UEFI - Legacy mode. Environment details are
 Cloudstack : 4.18
 Host : Ubuntu 22.04.2
 Content of uefi.properties
       guest.nvram.template.secure=/usr/share/OVMF/OVMF_VARS.fd
       guest.nvram.template.legacy=/usr/share/OVMF/OVMF_VARS.fd
       guest.loader.secure=/usr/share/OVMF/OVMF_CODE.secboot.fd
       guest.loader.legacy=/usr/share/OVMF/OVMF_CODE.fd
       guest.nvram.path=/var/lib/libvirt/qemu/nvram/

Please guide.

--
*Regards,*
*Pratik Chandrakar*

 

Reply via email to