Hey OP did you give up on Whonix? Well first off are you on Ubuntu or Mint?
So I’m on Ubuntu 24.04 LTS. So I used the whonix installer to install Whonix. The whonix installer will install VirtualBox 7.0.16 if you’re on Ubuntu 24.04 LTS.
I think you should check out this whonix tutorial if you’re on Ubuntu or Mint https://askubuntu.com/questions/1550871/how-do-i-install-whonix-on-ubuntu-24-04-lts
Ok so to my point, so I used Whonix with VirtualBox 7.0.16 for like 3 or 4 months straight with no issues, well it’s not as fast as I’d like, there is some slight lag, but Whonix never once froze up on me during this time. And there is some slight lag cause VirtualBox is a what they call a type 2 hypervisor, also known as a hosted hypervisor, runs on top of an existing operating system as a software application, allowing virtual machines to be created and managed within the host OS. So this is why there is some lag while using Whonix on VirtualBox cause vbox runs on top of the host OS. Well there is some slight lag on my PC at least.
10 year old PC with 4 core AMD CPU and 16 gigs of ram and SSD.
So listen, on vbox 7.0.16 I had no freezing issues and then I installed vbox 7.1.10 (the latest version of vbox) just recently and whonix workstation started freezing on me basically instantaneously.
So I went back to vbox 7.0.16 thinking this would fix the freezing issue and to my utter horror it froze on me on my very first session back.
So I did some research, listen you need to install and use the htop tool to monitor your host OS performance and Whonix workstation performance. Here’s how you install htop
sudo apt update
sudo apt install htop
So I got this from Grok, read this, you’ll see my back and forth conversation with Grok, Grok is a really good teacher, you’ll learn a lot from this, read https://x.com/i/grok/share/fRWCoDBef78pkrDafqMx9ME54
So yeah htop can be used on your host OS and in workstation to monitor your CPU cores and memory usage so you can see where the bottleneck is, is it with the cores or the memory? Just follow that Grok link and read it, Grok explains it beautifully.
So just now I used Whonix for about 7 hours and I watched it’s performance with the htop tool and I had like 60 or 80 tabs open and it did not freeze up on me. It did use about 1.9 gigs of ram (this was what I saw in htop), the cores in workstation would go up in the 90s and then always fall back down, the cores on the host OS would bump into 100% (and then go back down) when doing some tasks but yeah it never froze up on me. So this is a good sign.
And yeah I went months using Whonix on vbox 7.0.16 and I don’t remember it freezing on me, so maybe coming back to vbox 7.0.16 after using vbox 7.1.10 for a couple of weeks, maybe that had something to do with it, it’s almost like the computer has adapted and is used to the work load, I don’t know…
So yeah using htop is a game changer though and I was able to monitor core and memory usage looking for bottlenecks.
I’m currently giving gateway 512 MB of ram (it opens in CLI mode) and 1 core. I give workstation 5 GB of ram (though I think next time I’ll go back down to 4 GB) and 2 cores and this leaves just 1 core for the host OS.
So yeah I’ll just continue to use Whonix on vbox 7.0.16 and see if it freezes up on me. I don’t think it will though. That must have been a fluke. I think using vbox 7.1.10 there for a couple of weeks had something to do with that.
Now listen, both your CPU and GPU use something called thermal paste and you have to replace this thermal paste after about 5 years cause the thermal paste drys out and cracks and just isn’t effective anymore. My PC is 10 years old and I’ve never replaced the thermal paste on my CPU so I’m going to do that here very soon and that should probably increase the performance of my CPU by a significant amount, especially during the hot summer months which we are about to enter. I don’t have air conditioning (can’t afford it) This is the thermal paste I got off Amazon Amazon.com
I replaced my nvidia GPU with an AMD GPU just a few years ago so I don’t need to replace the thermal paste on my GPU just yet. Linux gets along a lot better with AMD GPUs.
If you’re on Ubuntu you’re supposed to install VirtualBox using the apt command which installs it from the Ubuntu repository, packages in the Ubuntu repo are tested by the Ubuntu developers and are stable. So vbox 7.0.16 is the one that’s been tested by the Ubuntu developers and is “stable” on Ubuntu 24.04 LTS. You can read this thread here for more info on that https://www.reddit.com/r/Ubuntu/comments/1lm4mib/ok_so_if_i_use_the_apt_command_to_install/
I’ve got a question, so is it common for Whonix to freeze up on vbox, this only happens to a small minority of Whonix users right? I guess I’m just one of the unlucky ones right? The vast majority of users using whonix on vbox do not have this random freezing issue right?
Here within a week or so, I am gonna attempt to install KVM and the virt-manager, I’m curious how that compares to vbox performance wise. KVM is a type 1 hypervisor built into the Linux kernel, it runs directly on the hardware so it is supposed to have much better performance than vbox, almost native performance they say.
So I’m going to sit down and put in the hard work and figure out how to install KVM and virt-manager on Ubuntu, figure out how to get Whonix up and running on it and then I’ll go over to askubuntu and make a tutorial that shows you how to do this. This is just my way of giving back to the community and helping whonix grow. From all the tutorials I’ve read so far on KVM, they say it runs right on the hardware and it can achieve near native performance when running a VM. So I think KVM is gonna have much better performance compared to vbox so I’m excited to try it out. And then yeah I’ll make a tutorial on askbuntu and show you how to do this on Ubuntu. I mean I wish I had an easy to understand tutorial that would hold my hand and walk me through this, but I’ll create this kind of tutorial once I figure this out. Again just my way of giving back to the community. It’s a team effort right? This is a group effort. It’s a think tank, we’re all pooling our brains together to figure this out.
I mean if you’ve got a modern PC and whonix keeps freezing on you, well, have you tried KVM? In fact, you’ll notice in this thread https://www.reddit.com/r/Ubuntu/comments/1lm4mib/ok_so_if_i_use_the_apt_command_to_install/ someone said to me “Sincere question, out of curiosity. Why use virtualbox over kvm?” and I’ve seen KVM recommended elsewhere too.
So yeah, actually, I’ll only stick with vbox just a little while longer (just to see if it freezes on me again) and then I’m going to install KVM. And then I’ll be very helpful to the community and make a tutorial that shows you how to install and use whonix with KVM on Ubuntu cause there is no such tutorial on the internet I’ve looked.
So yeah, if you have a modern PC and Whonix keeps freezing up on you, well, have you tried KVM instead? I’ve seen many experts recommend KVM over vbox. KVM is supposedly a lot better than VirtualBox performance wise. I’m curious so I’m gonna try it out.
p.s. So yeah even when I got rid of the HDD and installed the SSD in my PC, it greatly sped up Whonix workstation but it’s still just slightly laggy and I think VirtualBox being a type 2 hypervisor is the reason why so I’m very curious to see if KVM will solve this. KVM is supposed to achieve near native performance.