VirtualBox is ridiculously simple to set up and get virtual machines going. Shared folders, shared clipboard and much more are no issue.

But.

It eats resources. The installed virtual machines (VM) run relatively slow. What have you found to be feature comparable - and most importantly more resource-efficient - alternatives for running VMs under Linux?

  • testman
    link
    fedilink
    arrow-up
    13
    ·
    edit-2
    22 hours ago

    As jet points out, QEMU for actual hardware virtualisation.

    There is one relevant thing, which is not exactly in the same category, but does somewhat similar thing:
    containers
    most popular example being Docker
    https://en.wikipedia.org/wiki/Containerization_(computing)
    containers don’t emulate whole hardware stack like virtual machines do, they just run the guest OS on top of host OS.
    so because they don’t put resources towards emulating hardware, they are much more resource efficient.
    so if your problem is “I’m running Fedora but I want to run something that for some reason runs just on Ubuntu”, then you could use containers for that.
    containers are mostly used in headless environments (as in servers, no GUI), so running and displaying desktop Linux inside them is a bit tricky, but it can be done.

    • FrostyPolicy@suppo.fi
      link
      fedilink
      arrow-up
      11
      ·
      22 hours ago

      they emulate just the OS

      Containers don’t emulate anything. They have an OS installed within them. Typically you use Alpine Linux which super minimalistic and lightweight.

      • testman
        link
        fedilink
        arrow-up
        2
        ·
        22 hours ago

        yes, valid point, thank you for the correction

    • Alex
      link
      fedilink
      arrow-up
      4
      ·
      1 day ago

      I’ve been using https://containertoolbx.org/ recently to manage my “other distro” requirements. It doesn’t do anything special but works nicely as a wrapper around podman and does all the bind mounts and uid mappings so you can just enter your $HOME as though you have set up your account in a new OS.

      • PureTryOut@lemmy.kde.social
        link
        fedilink
        arrow-up
        2
        ·
        7 hours ago

        Distrobox is Toolbx but more portable (packaged on basically all distributions) and supports way more distributions as guests. I recommend using that if not on Fedora or you want to run a different guest than Fedora.