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?

  • mvirts@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 days ago

    Virt-manager with qemu-system, although if you use the kvm driver for both performance should be about the same I think.

    Don’t forget virtualbox has a lot of configuration options that may improve performance, Ive never had a problem with it but also never need high performance from a VM.

  • Eugenia@lemmy.ml
    link
    fedilink
    English
    arrow-up
    41
    ·
    5 days ago

    Under Linux, the recommended route is KVM/Qemu, with Virt-Manager as the GUI front-end for them. You will need to follow tutorials to install it correctly, as it requires special steps, e.g. adding them to specific usergroups. But once it works, it works well.

    • golden_zealot@lemmy.ml
      link
      fedilink
      English
      arrow-up
      4
      ·
      5 days ago

      Yea, the installation isn’t too difficult. Looking at my groups as well I think it’s only the libvirt group that you have to add a user to for KVM/QEMU with Virt-Manager, but the same could be said for VirtualBox as I believe you have to still add the user to the vboxusers group if you were to install it instead.

  • foremanguy@lemmy.ml
    link
    fedilink
    arrow-up
    10
    ·
    4 days ago

    Definitely if you’re on Linux, use Qemu (and the best is to install a GUI to use it after)

    • john89@lemmy.ca
      link
      fedilink
      arrow-up
      3
      arrow-down
      2
      ·
      3 days ago

      Really wish we could get in the habit of recommending GUIs first, not last.

      • Einar@lemm.eeOP
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        3 days ago

        Really wish we wouldn’t have to separate the two. This adds a complication layer for exiting Windows users.

        Ideally: install app (insert name). Run and enjoy.

      • foremanguy@lemmy.ml
        link
        fedilink
        arrow-up
        3
        ·
        3 days ago

        Without any kind of software behind GUI this is almost useless and I think that CLI (or even TUI) are today so underrated that we should give more and more power to them instead of GUI

  • Filetternavn@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    25
    arrow-down
    1
    ·
    edit-2
    5 days ago

    virt-manager is my go-to. There’s also Gnome Boxes, but I’ve never used it myself. virt-manager is the best I’ve tried, personally. Both use KVM, so they should be much more resource efficient

  • testman@lemmy.ml
    link
    fedilink
    arrow-up
    11
    ·
    edit-2
    5 days 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.

    • Alex@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      5 days 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.

  • Mwa@lemm.ee
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    4 days ago

    Qemu/Kvm or VMware(Sadly only works on some distros and vmware works best with Windows)

  • BrianTheeBiscuiteer@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    5 days ago

    I haven’t used it nearly as much as VirtualBox but Boxes (flatpak) is definitely a breeze to use. It uses KVM under the hood I think. If your use cases are complicated it might abstract away too much though.

  • dinckel@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    5 days ago

    Especially on Linux, libvirt/qemu on kvm is a no-brainer. It works, it’s fast, the setup is practically effortless

    • Einar@lemm.eeOP
      link
      fedilink
      arrow-up
      1
      ·
      3 days ago

      This “Beginners Guide” they have there is a serious turnoff. They might want to consider a more lightweight and friendly intro to their software. 😄

      Still, if I find the time to go through this massive wall of text, I will.

  • Jestzer@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    5 days ago

    I don’t know if it’s more resource-efficient, but when I wanted to start using VMs for work, I knew VirtualBox would not be a viable choice (thanks to Oracle and their horrible licensing), so I chose GNOME Boxes and have been pretty happy with it. I didn’t do any tests so I can’t say for certain , but it doesn’t seem like the resource consumption is that much different.

  • ColdWater@lemmy.ca
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    edit-2
    5 days ago

    VMware workstation is free, it’s not open source but it’s faster than VirtualBox, if you want GPU passthrough KVM is the only choice but require quite bit of effort to setup

  • twinnie@feddit.uk
    link
    fedilink
    arrow-up
    0
    ·
    5 days ago

    What about VMware Workstation Pro? Or are you looking for something FOSS? It’s easy to download without creating an account and I found it easier to setup that VB. I actually switched because I’d been having connectivity issues with VB and it took me a year to realise it was a VB issue.

  • atzanteol@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    4
    ·
    5 days ago

    There’s nothing better than virtual box for desktop environments, especially after you install the guest tools.

    I don’t know what you mean by “it eats resources” - of course it does, you’re emulating and entire system. What are your expectations?

    • limonfiesta@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      5 days ago

      Virtual Box is a Type 2 hypervisor, which means it’s running on top of the OS, and not directly on the hardware.

      KVM is a Type 1, which runs directly on the hardware itself.

      There are pros and cons to each, and VBOX is a great piece of software, but it is more resource intensive than other options available.

      • atzanteol@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        2
        ·
        5 days ago

        And it performs very well, especially for gui applications. It even supports multiple monitors for the guest.

        For running a desktop it’s clearly superior and “fast enough”. I used it to run my primary development environment for years.