Installing a Virtual Machine on Ubuntu 24.04
Check virtualization support
LC_ALL=C.UTF-8 lscpu | grep Virtualization
Load KVM (Kernel-based Virtual Machine)
lsmod | grep kvm # check if KVM is loaded
If not loaded, type:
sudo modprobe -a kvm kvm_intel
# or
sudo modprobe -a kvm kvm_amd # for AMD processor
Intall QEMU ( command line and graphical tool, e.g., Virtual Machine Manager )
sudo apt install qemu-system
Install QEMU/KVM virtual machines: Virtual Machine Manager
sudo apt install virt-manager
add user to libvirt group and start the sevice:
sudo gpasswd --add $USER libvirt
sudo systemctl start libvirtd
virtual graphical interface installation and configuring user ownership
editing the libvirtd config (to uncomment unix_sock_group and unix_sock_rw_perms):
sudo nano /etc/libvirt/libvirtd.conf
editing qemu config (to set “user = " and “group = " to current user), then restart service:
sudo nano /etc/libvirt/qemu.conf
# after editing and saving
sudo systemctl restart libvirtd.service
Finally installed virtual machine on ubuntu 24.04 after trying VMware WorkStation and Virtualbox.The above approach is from ubuntuhandbook. I just installed a Windows system and I haven’t tried more such as sharing folders. More configuration and illustration is on the link page.