3 points
*

Virtual box is slow and buggy and it probably will always be that way. It is simply the nature of its design.

permalink
report
reply
10 points

Quemu+KVM is the way to go.

permalink
report
parent
reply
0 points

*virtual manager

Qemu is pretty much an emulator.

permalink
report
parent
reply
1 point

Qemu can also be used with KVM, without emulating the entire hardware. My preferred way to virtual machinery.

From linux-kvm.org:

The kernel component of KVM is included in mainline Linux, as of 2.6.20. The userspace component of KVM is included in mainline QEMU, as of 1.3.

permalink
report
parent
reply
1 point
*

Virt-manager uses QEMU and KVM on the backend. The only difference is how you’re managing the VM.

permalink
report
parent
reply
8 points

Odd, since in my experience, it’s the most consistently reliable, performant, and easy to setup / use desktop vm package I’ve used. It always seems to “just work” when others don’t

permalink
report
parent
reply
2 points

Just work? Maybe. Performance? Not great.

permalink
report
parent
reply
3 points

I guess that depends on what we are using it for. I use it for CAD / CAM software that only works in Windows (Vectric Aspire). Nothing else has been able to give me 3d previews with any kind of usable performance.

permalink
report
parent
reply
-5 points

Had to run linux VM at previous job. Dreadful experience. Glad I can run natively now.

permalink
report
reply
2 points

What was dreadful about it?

permalink
report
parent
reply
0 points

I assume you are talking about Virtualbox. Yes, it is slow

permalink
report
parent
reply
2 points

I’ve been running my main desktop as a VM since 2009. I make a new VM for every client and plenty of others.

I have no what you are talking about.

permalink
report
parent
reply
1 point

You don’t have the same hardware, drivers and software as him. Off course you would not know what he is talking about then.

permalink
report
parent
reply
1 point

Hardware was why I went virtual. Before that, for a decade, I ran Linux bare metal, but was spending days recompiling kernels and drivers and futzing around with non-productive activities. Every upgrade would start the cycle again.

Once I went to VMware all those issues went away.

Now that new owners have taken over, it appears that I’m going to have to find a new solution.

permalink
report
parent
reply
25 points

I’m genuinely curious, why does VB continue to somehow remain in use, when it’s lacking in features, or behind in usability, in basically every way imaginable? If you’re on a Linux host, you have plenty of 1-click solutions that are incomprehensibly better than this. On Windows, Hyper-V boxes aren’t horribly difficult to get running either, although from my experience, they require the same janky and hacky patches as VB does

permalink
report
reply
16 points

Virtual box (for me) is the only app that has always been plug and play when I needed a VM. I’ve had issues with all the other ones. I still can’t figure out how to get GPU passthrough to work on kvm. I tried so much the other day and failed miserably. Gave up and went back to VB.

permalink
report
parent
reply
2 points

In boxes there is a toggle that is labeled “3D acceleration” if you flip the toggle your VM will have GPU acceleration.

permalink
report
parent
reply
11 points

That’s not GPU passthrough. That just enables VirGL, which is a translation layer that passes some OpenGL calls through to the host’s Mesa installation. It has rather poor performance though, it’s extremely limited and is rather buggy too. You certainly can’t use it for cutting edge gaming.

GPU passthrough is when you pass through an entire GPU device as-is to the virtual machine. That is: if you have an Nvidia RTX 3060, the guest operating system will see an Nvidia RTX 3060 and it can use the native drivers for it. This gives you near-native performance for gaming.

Now, I didn’t even know this was possible with VirtualBox (if so: cool!), but it’s certainly doable with KVM if you have the right motherboard and GPU combination. I have done it, but it is quite the hassle indeed though that isn’t really KVM’s fault.

permalink
report
parent
reply
5 points

Hyper-V is not really better than Virtualbox on Windows. Virtualbox will run anywhere and that is its strength.

On Linux, you should use KVM. I assume that’s what your advocating for.

permalink
report
parent
reply
2 points

what are those options?

virtualbox is a simple gui i can get working fast whenever i need it to.

permalink
report
parent
reply
10 points

What are the other solutions?

permalink
report
parent
reply
8 points

Vm manager, gnome boxes

permalink
report
parent
reply
4 points

Boxes

permalink
report
parent
reply
9 points

Virt-manager

permalink
report
parent
reply
2 points

Does it still need to reboot the guest in order to connect an USB device?

permalink
report
parent
reply
3 points

How share folder host-guest without network access? Last time try need to use samba (did not get working) and then impossible to turn off vm network access. Used qemu for win 10 guest.

VB just install guest addition and disable network interface.

permalink
report
parent
reply
0 points
*

Just… Use virt manager or if you like me hate it’s UI, gnome boxes. They are different UIs for the same thing. And are both infinitely better than virtualbox.

permalink
report
reply
44 points

Let me add one more voice to say, why oh why would you do that to yourself and suffer subpar virtualization when you have world class type 1 virtualization built straight into the kernel. And an incredibly capable UI, around since 2009, in the form of virt-manager?

permalink
report
reply
2 points
*

Tried for days to get a windows 11 guest to work on KVM with virt manager. Couldn’t get very good performance at all. Virtual box with guest drivers is pretty close to bare metal for me. I’d love to use KVM but can’t get good performance

permalink
report
parent
reply
1 point
Deleted by creator
permalink
report
parent
reply
6 points
*

It is also really slow. I can’t play games in it and doing any CPU or GPU heavy work takes for ever.

Meanwhile KVM runs VMs pretty much like they are native. (1-2% slower technically)

permalink
report
parent
reply
8 points

KVM runs VMs pretty much like they are native

Well, it is a type 1 hypervisor…

permalink
report
parent
reply
15 points
*
Deleted by creator
permalink
report
parent
reply
10 points
*

and suffer subpar virtualization

Meh I can get a Win11 guest that interacts well and conveniently with the host and its peripherals and if all I’m doing is running tax software, office365 or compile my Rust app to test it cross platform - vbox is perfectly fine. I’m not running anything demanding.

I’m not taking a stance against KVM it’s great, but rather saying that for some of us it’s not that big of an issue which solution to use, it just needs to be convenient.

permalink
report
parent
reply
6 points
*

But like… why? It’s not even more convenient, virt-manager is literally zero setup (in Debian at least) and you don’t need to deal with DKMS.

The kvm-guest-agent tool and some virtio drivers even exist for winblows.

permalink
report
parent
reply
4 points

When I run virt-manager on Bookworm, all it does is tell me that “xen is not connected”. There is nothing to indicate that KVM is anything that virt-manager might support, or why it currently doesn’t.

The best I can do is to make a VM in gnome boxes, use “ps” to capture its command line to qemu, re-format that into something that I can put into a bash script, and edit in additional options that Boxes/libvirt absolutely refuse to support.

Most of the host integration features are better in Virtualbox. On the other hand, with qemu I don’t have to look at VB filling the journal with ubsan errors (and wonder if its crappy driver is corrupting shit). If VB supported KVM, I would go right back to it.

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

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

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

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

Community stats

  • 7.4K

    Monthly active users

  • 6.6K

    Posts

  • 180K

    Comments