Super brief How-to - Virt-manager install on Rock 5.0 KDE

Hello,

  • _OpenMandriva Lx version:_5.0

  • Desktop environment (KDE, LXQT…): KDE

  • _Description of the issue (screenshots if relevant):_virt-manager install

  • Relevant informations (hardware involved, software version, logs or output…):

sudo dnf install virt-manager
sudo dnf install qemu-kvm
sudo dnf install qemu-img
sudo dnf install iptables

reboot
open virt-manager
enter admin password
Add new VM

The default virtual network did not start for me so I did the fllowing.
Right click “QEMU/KVM”
Select “details”
select middle tab “virtual networks”
on bottom left select the “+”
Select “Finish”
Now you may need to select this vitual network when you set up new VM -(on Step 5 of new VM setup expand the “Network Selection” towards the bottom)

5 Likes

@corbyr
welcome1

Thank you!

Welcome! We are glad to see you. Thanks for the How-to. Your efforts are appreciated.

now I have not tried it on Rock but this is the way I’ve been doing it on ROME:

sudo dnf install virt-manager qemu qemu-kvm iproute2-tc firewalld
no need to reboot just systemctl start libvirtd
also I try not to use root access for it so I add my user to the libvirt groups and others I might need as ei:
sudo usermod -G lp,wheel,audio,video,users,lpadmin,network,storage,sambashare,libvirt,qemu,kvm {user_name}

replace {user_name} with actual username
open virt-manager, a default network should be created and you can work on that.

I use firewalld because I’ve using it for years now and found out that It offers a easier syntax,it does not requires reloading for changes, is dynamic, allowing changes to be applied without a restart. Also integrates better with NetworkManager, making it more future-proof.

4 Likes

I have never run virt-manager before. I have a whole ssd drive in my PC right now to dedicate to the cause. What type partition should I use on that drive?

Are you asking what file system? If so, I use btrfs and have my VMs saved in my home partition. It works out nicely, as qemu/kvm (aka, virt-manager) saves VMs as qcow2 (qemu copy on write) files and btrfs is a copy on write file system. With that said, I’ve also used ext4 with qcow2 VMs and had no issue in the past, so I’m not really sure that it matters all that much.

1 Like

Thanks Mike. I managed a DELL ESXi server with ~50 VMs on it at my old job, but this is new for me. If it can make use of the BTRFS file system, will go with that. :smiley:

1 Like

While I have no problem with BTRFS, if it is going to be a drive just for VMs I, in my personal experience, will recommend XFS which has better performance with large files and high I/O workloads, and since the VM files or virtual disk are just a large files(qcow2) give you better performance from my experience.

1 Like

I am finally getting around to installing a ISO into virt-manager. Here is what I see as a first time user.

I had to move the ISO from ~/Downloads to /var/lib/libvirt/images

I wanted to store the VMs on another drive. This required some work.
kvm virtualization - How to change the default Storage Pool from libvirt? - Server Fault

I could not find anything but Generic Linux 2022 as the choice for the system I was installing.

Again no expert but you can open the ISO from anywhere by selecting “Browse” at the select ISO dropdown then “Browse Local” from the bottom of the popup and navigate anywhere including Downloads

You can definitely add your pool using the + in the lower left of the same popup but you would have to do a few more steps to create a new VM disk in that pool.
Set the size then “select or create custom storage”

then select your pool on the left of the popup and then “+” under volumes
(you actually might set the size on this next popup only, not entirely sure )

1 Like