Hello, thanks for supporting this Linux distribution, for a couple of years it is my favorite.
What packages should I install to create virtual machines in cachyos with kvm?
Greetings.
Hi,
This would be the same as at archlinux. You can use qemu, libvirt, vmware or equal.
Maybe some tip. I use VirtualBOX for VM on CachyOS.
For info:
- virtualbox has the worst performance compared to kvm & vmware (but is very easy to use, like vmware).
- vmware has the best performance for windows VMs thanks to it’s hardware accelerated GPU driver. KVM can be better only with GPU pass-through (which is complicated to setup on kvm, and vmware can also do it easier).
- vmware workstation pro is now available for FREE for personal use, since last week.
- the vmware driver works great with the linux-cachyos kernel, but fails to build with the lto kernel.
sudo pacman -S --needed qemu-desktop virt-manager virt-viewer vde2 bridge-utils openbsd-netcat dmidecode iptables-nft qemu-img edk2-ovmf libosinfo swtpm;paru -S virtio-win;sudo virt-host-validate qemu
IOMMU is not enabled, to enable it; add intel_iommu=on iommu=pt
sudo nano /etc/default/grub
GRUB_CMDLINE_LINUX=“intel_iommu=on iommu=pt”
sudo systemctl enable libvirtd.service;sudo grub-mkconfig -o /boot/grub/grub.cfg
Reboot
sudo usermod -aG libvirt $USER;echo “export LIBVIRT_DEFAULT_URI=‘qemu:///system’” >> ~/.fishrc;source ~/.fishrc
There is a patch for that in Add vmware-workstation modules with Clang build fixes by ventureoo · Pull Request #320 · CachyOS/CachyOS-PKGBUILDS · GitHub. Sadly won’t be distributed because of license.
Cheers to all and happy new year wherever you are…
Please let me ask a following question to this theme:
The suggestion of @Kosque was the first one that gave me success using Qemu/KVM. All other suggestions in tutorials led to problems, CachyOS was not working properly thereafter.
In all other suggestions, it was mentioned to install “tuned” with Arch Linux. Has anyone did this under CachyOS? Did it work? And do you feel benefits? As I felt, CachyOS was not working properly.
So again: Cheers to all of you, and may 2025 give the world more peace…
Tuned is disabled by power-profiles-daemon that comes installed on CachyOS, I preferred not to install Tuned and let power-profiles-daemon do its job.
Virtualbox-kvm is recently available and is very interesting:
paru -S virtualbox-guest-iso virtualbox-kvm virtualbox-guest-utils;sudo usermod -a -G vboxusers $USER