95
submitted 4 days ago by original_reader@lemm.ee to c/linux@lemmy.ml

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?

top 50 comments
sorted by: hot top controversial new old
[-] mvirts@lemmy.world 2 points 1 day 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 58 points 4 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.

[-] original_reader@lemm.ee 2 points 1 day ago

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

[-] Damage@feddit.it 15 points 4 days ago

definitely not as easy as virtualbox

Gnome Boxes is about as easy as virtual box, and wont break your kernel.

[-] perishthethought@lemm.ee 11 points 4 days ago

Yes, I just switched to Qemu. Its great.

This video helped:

https://youtu.be/BgZHbCDFODk

[-] golden_zealot@lemmy.ml 5 points 4 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.

load more comments (1 replies)
[-] foremanguy92_@lemmy.ml 15 points 3 days ago

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

[-] original_reader@lemm.ee 2 points 1 day ago

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

[-] foremanguy92_@lemmy.ml 1 points 1 day ago

Did you use virt-manager with it?

[-] CrabAndBroom@lemmy.ml 4 points 2 days ago

I use Quickemu for mine, makes it really quick and easy to get a new system up and running.

[-] foremanguy92_@lemmy.ml 1 points 2 days ago

Using virt-manager, never tried quickemu

[-] john89@lemmy.ca 1 points 2 days ago

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

[-] original_reader@lemm.ee 3 points 1 day ago* (last edited 1 day 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.

[-] foremanguy92_@lemmy.ml 4 points 2 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

[-] HubertManne@moist.catsweat.com 27 points 3 days ago

works decently enough for me is https://virt-manager.org/ to deal with libvirt. its not quite as nice in some ways but way less resource intensive.

[-] data1701d@startrek.website 3 points 3 days ago

I agree. The only feature where I'd say it's weaker feature-wise is it doesn't have any form of virtual GPU acceleration - either you deal with software rendering or have to pass through a graphics card (I've done it, but it's not easy.).

Otherwise, I'd say it tends to run better than VirtualBox, though it's been years since I last used Vbox anyhow. A plus is Virt Manager comes in most distro repos, whereas VirtualBox doesn't. Also, it allows you to directly edit the XML, so you can do some cool stuff that would be really annoying (not impossible) to do in VirtualBox.

[-] original_reader@lemm.ee 1 points 1 day ago

That's my struggle with this solution as well.

Still, a solid choice.

[-] cole@lemdro.id 5 points 3 days ago

actually, you can do vulkan passthrough if the guest machine is also linux

[-] Filetternavn@lemmy.blahaj.zone 42 points 4 days ago* (last edited 4 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

[-] jet@hackertalks.com 30 points 4 days ago

KVM, QEMU are the most common solutions here

[-] wildbus8979@sh.itjust.works 19 points 4 days ago* (last edited 3 days ago)

https://virt-manager.org/ is a no brainer. Built upon libvirt/Qemu/KVM it's way more powerful and pretty much just as easy to use. There is zero reasons to use anything else.

load more comments (2 replies)
[-] testman@lemmy.ml 14 points 4 days ago* (last edited 4 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.

[-] FrostyPolicy@suppo.fi 12 points 4 days 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@lemmy.ml 3 points 4 days ago

yes, valid point, thank you for the correction

[-] stsquad@lemmy.ml 4 points 4 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.

[-] PureTryOut@lemmy.kde.social 2 points 3 days 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.

[-] sun_is_ra@sh.itjust.works 3 points 4 days ago* (last edited 4 days ago)

for running GUI app, I use flatpak which is a sort of a container / sandbox

[-] vga@sopuli.xyz 1 points 2 days ago* (last edited 2 days ago)

Might be that you really don't need VMs but just lightweight namespace containers. If so, you can use docker/podman, systemd-nspawn or various other tools. The overhead will be less than 1% if you stay within the same architecture as your host.

https://wiki.archlinux.org/title/Systemd-nspawn

[-] Mwa@lemm.ee 6 points 3 days ago* (last edited 3 days ago)

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

[-] some_guy@lemmy.sdf.org 10 points 4 days ago* (last edited 4 days ago)

Vagrant by Hashicorp.

Edit: if the news of IBM acquiring them goes through, I will cry. And we live in the worst timeline, so it'll happen.

[-] eldavi@lemmy.ml 8 points 4 days ago

ibm is going to buy the entire ansible-verse; so be ready.

i will weep with you in solidarity. 😉

[-] milliams@lemmy.world 3 points 3 days ago

While it wasn't a requirement, be aware that Vagrant (along with all Hashicorp products) are no longer free software and are instead under the Business Software Licence.

[-] some_guy@lemmy.sdf.org 1 points 2 days ago

Thanks for the tip!

[-] furrowsofar@beehaw.org 11 points 4 days ago* (last edited 4 days 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.

[-] BrianTheeBiscuiteer@lemmy.world 7 points 4 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.

[-] dinckelman@lemmy.world 6 points 4 days ago

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

[-] 0v0@sopuli.xyz 5 points 4 days ago
[-] original_reader@lemm.ee 1 points 1 day ago

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

[-] OneRedFox@beehaw.org 5 points 4 days ago

I've been using Virt-Manager with KVM/Qemu and don't have any complaints.

[-] elucubra@sopuli.xyz 2 points 3 days 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

[-] original_reader@lemm.ee 1 points 1 day ago

Good tip. Thanks.

[-] jaypatelani@lemmy.ml 3 points 3 days ago
[-] purplemeowanon@lemmy.ml 2 points 3 days ago
[-] original_reader@lemm.ee 1 points 1 day 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 3 points 4 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.

[-] twinnie@feddit.uk 3 points 4 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.

[-] ColdWater@lemmy.ca 3 points 4 days ago* (last edited 4 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

load more comments
view more: next ›
this post was submitted on 26 Jan 2025
95 points (97.0% liked)

Linux

49393 readers
1477 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS