You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "ahmedali6 (via GitHub)" <gi...@apache.org> on 2024/03/13 23:59:32 UTC

[I] Guest has not initialized the display (yet). When UEFI is enabled. [cloudstack]

ahmedali6 opened a new issue, #8784:
URL: https://github.com/apache/cloudstack/issues/8784

   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   API
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main branch.
   -->
   
   ~~~
   4.19.0
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
   -->
   
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   
   OS:
   
   ```bash 
   PRETTY_NAME="Ubuntu 22.04.3 LTS"
   NAME="Ubuntu"
   VERSION_ID="22.04"
   VERSION="22.04.3 LTS (Jammy Jellyfish)"
   VERSION_CODENAME=jammy
   ID=ubuntu
   ID_LIKE=debian
   HOME_URL="https://www.ubuntu.com/"
   SUPPORT_URL="https://help.ubuntu.com/"
   BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
   PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
   UBUNTU_CODENAME=jammy
   ```
   
   uefi.properties:
   
   ```
   guest.nvram.template.secure=/usr/share/OVMF/OVMF_CODE.secboot.fd
   guest.nvram.template.legacy=/usr/share/OVMF/OVMF_VARS.fd
   guest.loader.secure=/usr/share/OVMF/OVMF_CODE.secboot.fd
   guest.nvram.path=/var/lib/libvirt/qemu/nvram/
   guest.loader.legacy=/usr/share/OVMF/OVMF_CODE.secboot.fd
   ```
   
   ```
   -> ls /usr/share/OVMF/
   OVMF_CODE_4M.fd     OVMF_CODE_4M.secboot.fd   OVMF_CODE.fd     OVMF_CODE.secboot.fd  OVMF_VARS_4M.ms.fd        OVMF_VARS.fd
   OVMF_CODE_4M.ms.fd  OVMF_CODE_4M.snakeoil.fd  OVMF_CODE.ms.fd  OVMF_VARS_4M.fd       OVMF_VARS_4M.snakeoil.fd  OVMF_VARS.ms.fd
   ```
   
   Host:
   
   ![image](https://github.com/apache/cloudstack/assets/87921765/c3efe0b7-c0df-4235-ba93-7d3c48ddb08a)
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   When deploying any VM with UEFI enable I keep getting this message:
   
   ```
   Guest has not initialized the display (yet).
   ```
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   Deploy a VM with UEFI enabled.
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   The VM should boot successfully.
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   The VM does not boot.
   ~~~
   ![image](https://github.com/apache/cloudstack/assets/87921765/1c2fa65a-106e-4cf3-bbac-6fe65529c70f)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Guest has not initialized the display (yet). When UEFI is enabled. [cloudstack]

Posted by "ahmedali6 (via GitHub)" <gi...@apache.org>.
ahmedali6 commented on issue #8784:
URL: https://github.com/apache/cloudstack/issues/8784#issuecomment-1996734962

   @kiranchavala Yes I did that. Here is the VM settings:
   
   ![image](https://github.com/apache/cloudstack/assets/87921765/df3a8d67-b7b6-48ca-8f5e-8a95a668b06d)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Guest has not initialized the display (yet). When UEFI is enabled. [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #8784:
URL: https://github.com/apache/cloudstack/issues/8784#issuecomment-1996749098

   @ahmedali6 
   the uefi.properties is misconfigured
   ```
   guest.nvram.template.secure=/usr/share/OVMF/OVMF_CODE.secboot.fd
   ```
   it should be set to `OVMF_VARS.xxx.fd`, not `OVMF_CODE.secboot.fd`
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Guest has not initialized the display (yet). When UEFI is enabled. [cloudstack]

Posted by "ahmedali6 (via GitHub)" <gi...@apache.org>.
ahmedali6 commented on issue #8784:
URL: https://github.com/apache/cloudstack/issues/8784#issuecomment-1996791184

   @weizhouapache
   Do you know which one should I put? there is multiple ones starting with OVMF_VARS
   
   ```
   -> ls /usr/share/OVMF/
   OVMF_CODE_4M.fd     OVMF_CODE_4M.secboot.fd   OVMF_CODE.fd     OVMF_CODE.secboot.fd  OVMF_VARS_4M.ms.fd        OVMF_VARS.fd
   OVMF_CODE_4M.ms.fd  OVMF_CODE_4M.snakeoil.fd  OVMF_CODE.ms.fd  OVMF_VARS_4M.fd       OVMF_VARS_4M.snakeoil.fd  OVMF_VARS.ms.fd
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Guest has not initialized the display (yet). When UEFI is enabled. [cloudstack]

Posted by "ahmedali6 (via GitHub)" <gi...@apache.org>.
ahmedali6 commented on issue #8784:
URL: https://github.com/apache/cloudstack/issues/8784#issuecomment-1996847775

   @weizhouapache 
   
   I tried both of them and restarted the agent but still not working. Maybe worth knowing that even when I set UEFI to LEGACY I have the same issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Guest has not initialized the display (yet). When UEFI is enabled. [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #8784:
URL: https://github.com/apache/cloudstack/issues/8784#issuecomment-1996798093

   > @weizhouapache Do you know which one should I put? there is multiple ones starting with OVMF_VARS
   > 
   > ```
   > -> ls /usr/share/OVMF/
   > OVMF_CODE_4M.fd     OVMF_CODE_4M.secboot.fd   OVMF_CODE.fd     OVMF_CODE.secboot.fd  OVMF_VARS_4M.ms.fd        OVMF_VARS.fd
   > OVMF_CODE_4M.ms.fd  OVMF_CODE_4M.snakeoil.fd  OVMF_CODE.ms.fd  OVMF_VARS_4M.fd       OVMF_VARS_4M.snakeoil.fd  OVMF_VARS.ms.fd
   > ```
   
   @ahmedali6 
   you can use `OVMF_VARS.ms.fd` or `OVMF_VARS_4M.ms.fd`
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Guest has not initialized the display (yet). When UEFI is enabled. [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #8784:
URL: https://github.com/apache/cloudstack/issues/8784#issuecomment-1996873239

   > This is how the uefi.properties looks now:
   > 
   > ```
   > guest.nvram.template.secure=/usr/share/OVMF/OVMF_VARS_4M.ms.fd
   > guest.nvram.template.legacy=/usr/share/OVMF/OVMF_VARS.fd
   > guest.loader.secure=/usr/share/OVMF/OVMF_CODE.secboot.fd
   > guest.nvram.path=/var/lib/libvirt/qemu/nvram/
   > guest.loader.legacy=/usr/share/OVMF/OVMF_CODE.secboot.fd
   > ```
   
   try with the following, it worked for me
   ```
   guest.nvram.template.secure=/usr/share/OVMF/OVMF_VARS_4M.ms.fd
   guest.nvram.template.legacy=/usr/share/OVMF/OVMF_VARS_4M.fd
   guest.nvram.path=/var/lib/libvirt/qemu/nvram/
   guest.loader.secure=/usr/share/OVMF/OVMF_CODE_4M.secboot.fd
   guest.loader.legacy=/usr/share/OVMF/OVMF_CODE_4M.fd
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Guest has not initialized the display (yet). When UEFI is enabled. [cloudstack]

Posted by "dtorressn (via GitHub)" <gi...@apache.org>.
dtorressn commented on issue #8784:
URL: https://github.com/apache/cloudstack/issues/8784#issuecomment-2759309609

   Thank you all. The following `/etc/cloudstack/agent/uefi.properties` works on Ubuntu 24.04 LTS too.
   ```
   guest.nvram.template.secure=/usr/share/OVMF/OVMF_VARS_4M.ms.fd
   guest.nvram.template.legacy=/usr/share/OVMF/OVMF_VARS_4M.fd
   guest.nvram.path=/var/lib/libvirt/qemu/nvram/
   guest.loader.secure=/usr/share/OVMF/OVMF_CODE_4M.secboot.fd
   guest.loader.legacy=/usr/share/OVMF/OVMF_CODE_4M.fd
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Guest has not initialized the display (yet). When UEFI is enabled. [cloudstack]

Posted by "tdtmusic2 (via GitHub)" <gi...@apache.org>.
tdtmusic2 commented on issue #8784:
URL: https://github.com/apache/cloudstack/issues/8784#issuecomment-2451784791

   > > This is how the uefi.properties looks now:
   > > ```
   > > guest.nvram.template.secure=/usr/share/OVMF/OVMF_VARS_4M.ms.fd
   > > guest.nvram.template.legacy=/usr/share/OVMF/OVMF_VARS.fd
   > > guest.loader.secure=/usr/share/OVMF/OVMF_CODE.secboot.fd
   > > guest.nvram.path=/var/lib/libvirt/qemu/nvram/
   > > guest.loader.legacy=/usr/share/OVMF/OVMF_CODE.secboot.fd
   > > ```
   > 
   > try with the following, it worked for me
   > 
   > ```
   > guest.nvram.template.secure=/usr/share/OVMF/OVMF_VARS_4M.ms.fd
   > guest.nvram.template.legacy=/usr/share/OVMF/OVMF_VARS_4M.fd
   > guest.nvram.path=/var/lib/libvirt/qemu/nvram/
   > guest.loader.secure=/usr/share/OVMF/OVMF_CODE_4M.secboot.fd
   > guest.loader.legacy=/usr/share/OVMF/OVMF_CODE_4M.fd
   > ```
   
   Hi Wei. In my case there is no OVMF_VARS-4M.ms.fd file in that location, only the files bellow. Also the nvram folder is empty, don't know if something is supposed to be there. The edk2-ovmf package is installed.
   
   `OVMF_CODE.secboot.fd  OVMF_VARS.fd  OVMF_VARS.secboot.fd  UefiShell.iso`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Guest has not initialized the display (yet). When UEFI is enabled. [cloudstack]

Posted by "ahmedali6 (via GitHub)" <gi...@apache.org>.
ahmedali6 closed issue #8784: Guest has not initialized the display (yet). When UEFI is enabled.
URL: https://github.com/apache/cloudstack/issues/8784


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Guest has not initialized the display (yet). When UEFI is enabled. [cloudstack]

Posted by "ahmedali6 (via GitHub)" <gi...@apache.org>.
ahmedali6 commented on issue #8784:
URL: https://github.com/apache/cloudstack/issues/8784#issuecomment-1996883660

   @weizhouapache 
   
   The VM now works! Thank you.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Guest has not initialized the display (yet). When UEFI is enabled. [cloudstack]

Posted by "ahmedali6 (via GitHub)" <gi...@apache.org>.
ahmedali6 commented on issue #8784:
URL: https://github.com/apache/cloudstack/issues/8784#issuecomment-1996868676

   This is how the uefi.properties looks now:
   
   ```
   guest.nvram.template.secure=/usr/share/OVMF/OVMF_VARS_4M.ms.fd
   guest.nvram.template.legacy=/usr/share/OVMF/OVMF_VARS.fd
   guest.loader.secure=/usr/share/OVMF/OVMF_CODE.secboot.fd
   guest.nvram.path=/var/lib/libvirt/qemu/nvram/
   guest.loader.legacy=/usr/share/OVMF/OVMF_CODE.secboot.fd
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Guest has not initialized the display (yet). When UEFI is enabled. [cloudstack]

Posted by "kiranchavala (via GitHub)" <gi...@apache.org>.
kiranchavala commented on issue #8784:
URL: https://github.com/apache/cloudstack/issues/8784#issuecomment-1996384413

   @ahmedali6 
   
   Could you please let us know if you selected  boot mode as UEFI, when deploying the vm ?
   
   ![Screenshot 2024-03-14 at 10 00 22 AM](https://github.com/apache/cloudstack/assets/1401014/fa133b43-7bf1-4327-9eda-b2fc8fe895d4)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org