When attempting to install Qubes, I get a black screen with the text: error out of memory

Hi dwpk20 :slight_smile:

I got a bit of time and took a look at Fedora v40, GRUB and USB-stick. :slight_smile:

I’ve included the first steps, to help the next person to read these posts – you should already have a working Fedora v40 and can skip to step 5 ..

It will be optimal, if you have 3 USB stick

  • one for Qubes OS v4.3.2 (> 8GB)
  • one for Fedora Workstation (> 2GB)
  • one for GRUB, as a bootloader for Qubes OS with multiboot modules (>=2GB)

Steps:

  1. Download an Fedora v40 ISO from
    https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/40/Workstation/x86_64/iso/

  2. Write the ISO to an USB stick - just like with a Qubes OS - eg

    dd if=Fedora-Workstation-Live-x86_64-40-1.14.iso  of=/dev/sdY status=progress bs=1M conv=fsync
    

    For other platforms, see Installation guide — Qubes OS 4.3.2 documentation

  3. Try to boot from the USB stick

    • if it boots, just install a Fedroa v40
    • if it still doesn’t boot, there is a different problem with the machine ..
  4. Once Fedora v40 is up an running, install the package called grub2-efi-x64-modules:

    dnf install grub2-efi-x64-modules
    
  5. Plug in an USB stick you can erase without problem and locate it

    lsblk
    

    – if you run the command before inserting the USB stick and again afterwards, you should see a difference! :slight_smile:

  6. Wipe the informatoin from the drive:
    WARNING: Check twice that you don’t need anything from the drive – where will be no undo!!

    dd if=/dev/zero of=/dev/sdY bs=1M count=100
    

    WARNING: Check twice that you don’t need anything from the drive – where will be no undo!!

    Note: You will (probably?) need to replace sdY with the device name you found in the step before!

  7. Add partitions to the drive

    fdisk /dev/sdY
    

    by typing:

    • n (new parition)

    • p (primary)

    • enter (accept default number)

    • enter (accept default first sector)

    • +500M (make the partition 550MB)

    • n (new partition)

    • p (primary)

    • enter (accept default number)

    • enter (accept default first sector)

    • +1G (make the partition 1GB)

    • t (change the type)

    • 1 (of the 1 partition)

    • ef (to EFI)

    • w (write the net partition table to the stick)

  8. Create filesystems to the USB stick and mount them

    mke2fs /dev/sdY1
    mke2fs /dev/sdY2
    mount /dev/sdY2 /mnt/
    mkdir -p /mnt/boot/efi
    mount /dev/sdY1 /mnt/boot/efi/
    
  9. Install GRUB on the USB stick:

    grub2-install /dev/sdY --boot-directory=/mnt/boot/ --efi-directory=/mnt/boot/efi/
    
  10. Unmount the USB

    umount /mnt/
    
  11. Try and reboot – can you now get a GRUB prompt from the USB?
    If you get something like:

                               GRUB version 2.12                                
                                                                                
    Minimal BASH-like line editing is supported. For the first word, TAB         
    lists possible command completions. Anywhere else TAB lists possible         
    device or file completions. To enable less(1)-like paging, "set              
    pager=1".                                                                    
    
    
    grub> 
    

    the next step is to insert both the new USB stick and the Qubes OS v4.3.2 USB at the same time and see if the BOOT-USB can read the config from the Qubes USB – something like the:

    configfile (hd
    

    from before. If it complains about missing modules, try with:

    insmod multiboot2
    

    before loading the configuration.

I hope this will allow you to run the installer on your MB .. :crossed_fingers:

:slight_smile: