Coder Social home page Coder Social logo

Comments (8)

Sithuk avatar Sithuk commented on August 16, 2024

Hi ravenclaw,

The script variables you posted look ok. I'm not familiar with kvm unfortunately, so can't be much help with its setup.

Please could you provide the script installation log? It should be in the /var/log directory of the new installation. Before the first reboot, that would be in the mountpoint where the new installation is created (/mnt/ub_server).

The log would let me check whether anything went wrong during the installation.

from ubuntu-server-zfsbootmenu.

ravenclaw78 avatar ravenclaw78 commented on August 16, 2024

To get it this far with kvm, I had to manually add a serial number to each virtual disk in xml, so your script is able to find them under /dev/disk/by-id. But I don't think that this has something to do with the shell issue. solution

This time I bootet ubuntu 22.04 in EN (instead of DE), checked out current version, and started the initial run. No changes at all. Selected the first disk.
After reboot i get this:
uefi_shell

Here is the log from this run:
ubuntu_setup_zfs_root.log

Thank you for your time.

from ubuntu-server-zfsbootmenu.

Sithuk avatar Sithuk commented on August 16, 2024

I can't see anything obviously wrong in the log. Are you able to manually select the efi file to boot from?

from ubuntu-server-zfsbootmenu.

ravenclaw78 avatar ravenclaw78 commented on August 16, 2024

Yesterday I tried installing in VirtualBox, and it worked flawless (only tested if it could boot, not further).
The only difference I could spot was sda(virtualBox) vs vda(kvm).
So I tried kvm with a sata disk instead of a virtio disk, but this did not work.

This is my first encounter with the uefi shell, could you give me a hint/link on how to boot the efi file?

from ubuntu-server-zfsbootmenu.

Sithuk avatar Sithuk commented on August 16, 2024

Iā€™m glad the script worked in Virtualbox. Hopefully you can test on your hardware server when it arrives too.

For your kvm issue, are you able to select the efi file from a boot menu as part of the kvm boot sequence? Virtualbox has an option to press F12 during boot to select boot device. Does kvm have something similar?

[edit: does setting the boot order help: https://stackoverflow.com/questions/19011159/how-to-set-boot-order-on-kvm-libvirt-virsh ]

from ubuntu-server-zfsbootmenu.

ravenclaw78 avatar ravenclaw78 commented on August 16, 2024

Using from your link I tried all boot options (Sata disk, virtio disk), but only the integrated shell booted.

I found the rEFInd bootloader
grafik

and the zfsbootmenu initrramfs with the refind_linux.conf, this looks ok to me (to an uefi/zfs/zfsbootmenu noob)
grafik

At first, starting refind_x64.efi resulted in a permission denied msg that told me this is not a secure boot signed efi file.
So after choosing a efi bios without secureboot for kvm, (the one I chose earlier linked to a secboot one: OVMF_CODE_4M.ms.fd -> OVMF_CODE_4M.secboot.fd)
I could execute the refind_x64.efi, but it seems there is something missing (maybe it does not find the config file).
grafik

I did a fresh initial install with the secureboot disabled firmware, but all I got again was the uefi shell.

from ubuntu-server-zfsbootmenu.

ravenclaw78 avatar ravenclaw78 commented on August 16, 2024

Seems refind crashes freeing the banner image. link

Adding hideui banner to refind.conf solved the problem.
grafik

At line 757 of your script I simply added:

echo hideui banner >>/boot/efi/EFI/refind/refind.conf

But I still have to manually boot it via efi shell.

from ubuntu-server-zfsbootmenu.

Sithuk avatar Sithuk commented on August 16, 2024

That's good news. I'm glad you finally got the script to work with kvm. Thank you for posting the solution. If you find the solution to having to manually boot the kvm VM each time, please post that here too.

from ubuntu-server-zfsbootmenu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.