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?

  • Eugenia
    link
    fedilink
    English
    424 months 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
      44 months 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.

    • EinarOP
      link
      fedilink
      24 months ago

      Not for the faint of heart, but I’ll keep it in mind.

  • @testman@lemmy.ml
    link
    fedilink
    10
    edit-2
    4 months 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
      link
      fedilink
      34 months 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.

  • flatbield
    link
    fedilink
    English
    9
    edit-2
    4 months ago

    Virtualbox should not run slowly in terms of compute. Make sure your allocating enough cores and memory, and VT/AMD-V is enabled in the BIOS of the host. Also Guest additions should be installed. Not sure but that might help IO speeds.

    What might be slow, Graphics may not be acceralerated. Exactly what VM software to use, what it works with, and actually getting it to work can be challanging. Installing guest drivers though is probably required.

    For Linux KVM solutions are probably preferred and more native solution but more technical to use. Getting graphics acceleration with KVM has been challenging, though may be possible. KVM is used widely on servers, but is not that desktop friendly.

    All VM solutions are resource intensive. Use containers and/or native software to reduce/avoid that.

    Edit: I myself have used VirtualBox but these days I use KVM including on my workstation.

  • foremanguy
    link
    fedilink
    94 months ago

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

    • EinarOP
      link
      fedilink
      24 months ago

      I’ve looked at it. It comes up a lot. Thank you.

      • foremanguy
        link
        fedilink
        44 months 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

      • EinarOP
        link
        fedilink
        2
        edit-2
        4 months 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.

  • 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.

    • EinarOP
      link
      fedilink
      14 months ago

      This has been mentioned a few times here. Didn’t know that. Thank you.

  • dinckel
    link
    fedilink
    44 months ago

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

  • @Mwa@lemm.ee
    link
    fedilink
    English
    3
    edit-2
    4 months ago

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

  • @elucubra@sopuli.xyz
    link
    fedilink
    24 months ago

    You can specify the virtualization engine in VirtualBox, including KVM.

    A couple of easy virtualization tools that allow you to create VMs in a few clicks are Gnome Boxes and QuickEmu, which leverages Qemu and KVM

  • @ColdWater@lemmy.ca
    link
    fedilink
    1
    edit-2
    4 months 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

    • EinarOP
      link
      fedilink
      24 months 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.

      • @purplemeowanon@lemmy.ml
        link
        fedilink
        English
        13 months ago

        To be clear, I don’t recommend it. But it was once favored over KVM for a variety of applications and it works in a fundamentally different way. I’m just surprised how quickly it’s lost favor among techies.