Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

  1. #1
    Join Date
    Aug 2023
    Beans
    1

    Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

    I have been trying to install Ubuntu 22.04.3 on Virtualbox 7.0 and I am facing the following issue:


    So I tried to install Ubuntu 20.04.6 after that and faced the same error (but a different memory size):



    Earlier I has installed Ubuntu 20.04 on Virtualbox on my Lenovo ideapad and it worked fine but I am facing the above error while installation on my new Asus TUF laptop. It would be great if anyone can guide me through this.
    Last edited by ajgreeny; August 23rd, 2023 at 11:22 AM. Reason: Large images removed

  2. #2
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

    Usually if the system is getting "Freeing _____ memory" errors and VirtualBox is not starting its a low memory error.

    First question would be, what is the HOST OS ad release version?
    Second would be how much memory does the system have?
    How much memory is being allocated to the Guest VM?
    How long has the Host been online? (Since the last boot...)
    What else is running at the time?

    Here is why I am asking theses types of questions... When VirualBox starts a VM Guest, the way is does that, it doesn't just need the ampunt of memory allocate to the VM, the "block" of memory is required to be contiguous (no gaps or fragmentation).

    The longer the host runs, the more of a chance that things running in memory are not in a contiguous blocks...

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  3. #3
    Join Date
    May 2008
    Location
    Bucharest, Romania
    Beans
    63
    Distro
    Ubuntu

    Re: Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

    Exactly the same error on win11 host with wsl2. Theoretically it should work, slow but it should.
    I have allocated 2vcpu and 16GB ram.
    I have tried 20.04, 22.04, 23.04 of Ubuntu. After line Freeing initrd memory ...nothing.
    Did you found any solution for this?

  4. #4
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

    Found this in passing.

    VirtualBox allocates memory in lazy mode, which means that RAM is dynamically allocated by the host as the guest uses an increasing quantity of memory. To get around that, try this command:
    Code:
    VBoxManage setextradata "VM name" "VBoxInternal/RamPreAlloc" 1
    That command forces VirtualBox to "grab" all of the guest's memory at startup that is possible. This will attempt to allocate the entire guest memory from the host. If that memory isn't really free, then the guest will not start at all.

    That command is per VM, you must use the name of the VM in that command.
    Last edited by MAFoElffen; September 16th, 2023 at 03:25 AM.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  5. #5
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

    Are you running VirtualBox on a Linux machine? I'd use KVM instead.

    https://www.tecmint.com/install-kvm-on-ubuntu/
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  6. #6
    Join Date
    Sep 2023
    Beans
    4

    Re: Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

    im also having the exact same problem on the same laptop, i have tried everything but it still doesnt work

  7. #7
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

    And is it capable of running KVM? That has been my Virtual Host preference for over a decade now.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  8. #8
    Join Date
    May 2008
    Location
    Bucharest, Romania
    Beans
    63
    Distro
    Ubuntu

    Re: Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

    Hi @MAFoElffen,

    VBoxManage setextradata "VM name" "VBoxInternal/RamPreAlloc" 1
    With this setting the VM fails to start at all .. :/

    Attemted illegal operation in simplified memory management mode. (VERR_PGM_NOT_SUPPORTED_FOR_NEM_MODE).
    Result Code:
    E_FAIL (0X80004005)
    Component:
    ConsoleWrap
    Interface:
    IConsole {6ac83d89-6ee7-4e33-8ae6-b257b2e81be8}
    Any more ideas? Thanks
    Last edited by mdalacu; September 18th, 2023 at 02:26 PM.

  9. #9
    Join Date
    Sep 2023
    Beans
    4

    Re: Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

    i think so yea, it has a ryzen 9 7940hs and 16gb of ddr5 ram

  10. #10
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

    Please post the results of this within CODE Tags:
    Code:
    grep . /proc/meminfo

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

Page 1 of 3 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •