Stuck on KVM install

Hi everybody,

I’m giving a try at running KVM. I’m following this guide.

I got my first setback while installing libguestfs

sudo pacman -S libguestfs                                                                                                                                ✔ 
[sudo] password: 
resolving dependencies...
:: There are 3 providers available for qemu:
:: Repository extra
   1) qemu-base  2) qemu-desktop  3) qemu-full

Enter a number (default=1): ^[[B
error: invalid number: 


Enter a number (default=1): 2
looking for conflicting packages...
:: exfatprogs-1.3.1-1 and exfat-utils-1.4.0-4 are in conflict. Remove exfat-utils? [y/N] y

Packages (86) augeas-1.14.1-4  capstone-5.0.7-2  cpio-2.15-3  dtc-1.7.2-5  edk2-ovmf-202508-1  exfat-utils-1.4.0-4 [removal]  exfatprogs-1.3.1-1  gfxstream-0.1.2-2
              hivex-1.3.24-6  iniparser-4.2.6-2  libaemu-0.1.2-5  libcacard-2.8.1-1  libconfig-1.8.2-1  libewf-20140816-1  libgcc-15.2.1+r604+g0b99615a8aef-1
              libldm-0.2.5-3  libnbd-1.24.0-2  libslirp-4.9.1-1  libtraceevent-1:1.8.7-1  libtracefs-1.8.3-1  libvirt-1:12.0.0-2  libxdp-1.6.1-1  lsscsi-0.32-2
              mtools-1:4.0.49-1  ndctl-79-1  pacman-contrib-1.13.1-1  perl-libintl-perl-1.35-2  qemu-audio-alsa-10.2.0-2  qemu-audio-dbus-10.2.0-2
              qemu-audio-jack-10.2.0-2  qemu-audio-oss-10.2.0-2  qemu-audio-pa-10.2.0-2  qemu-audio-pipewire-10.2.0-2  qemu-audio-sdl-10.2.0-2
              qemu-audio-spice-10.2.0-2  qemu-base-10.2.0-2  qemu-block-curl-10.2.0-2  qemu-block-dmg-10.2.0-2  qemu-block-nfs-10.2.0-2  qemu-block-ssh-10.2.0-2
              qemu-chardev-spice-10.2.0-2  qemu-common-10.2.0-2  qemu-desktop-10.2.0-2  qemu-hw-display-qxl-10.2.0-2  qemu-hw-display-virtio-gpu-10.2.0-2
              qemu-hw-display-virtio-gpu-gl-10.2.0-2  qemu-hw-display-virtio-gpu-pci-10.2.0-2  qemu-hw-display-virtio-gpu-pci-gl-10.2.0-2
              qemu-hw-display-virtio-gpu-pci-rutabaga-10.2.0-2  qemu-hw-display-virtio-gpu-rutabaga-10.2.0-2  qemu-hw-display-virtio-vga-10.2.0-2
              qemu-hw-display-virtio-vga-gl-10.2.0-2  qemu-hw-display-virtio-vga-rutabaga-10.2.0-2  qemu-hw-uefi-vars-10.2.0-2  qemu-hw-usb-host-10.2.0-2
              qemu-hw-usb-redirect-10.2.0-2  qemu-hw-usb-smartcard-10.2.0-2  qemu-img-10.2.0-2  qemu-system-x86-10.2.0-2  qemu-system-x86-firmware-10.2.0-2
              qemu-ui-curses-10.2.0-2  qemu-ui-dbus-10.2.0-2  qemu-ui-egl-headless-10.2.0-2  qemu-ui-gtk-10.2.0-2  qemu-ui-opengl-10.2.0-2  qemu-ui-sdl-10.2.0-2
              qemu-ui-spice-app-10.2.0-2  qemu-ui-spice-core-10.2.0-2  qemu-vhost-user-gpu-10.2.0-2  rdma-core-61.0-1  rutabaga-ffi-0.1.75-1  sdl2_image-2.8.8-1
              seabios-1.17.0-2  sleuthkit-4.14.0-1  spice-0.16.0-2  spice-protocol-0.14.5-1  strace-6.19-1  supermin-5.3.5-2  syslinux-6.04.pre3.r3.g05ac953c-4
              usbredir-0.15.0-1  vde2-2.3.3-8  virglrenderer-1.2.0-1  virtiofsd-1.13.3-1  wolfssl-5.8.4-1  yara-4.5.5-1  libguestfs-1.56.2-4

Total Installed Size:  268,62 MiB
Net Upgrade Size:      268,39 MiB

:: Proceed with installation? [Y/n] y
(85/85) checking keys in keyring                                                                     [############################################################] 100%
(85/85) checking package integrity                                                                   [############################################################] 100%
(85/85) loading package files                                                                        [############################################################] 100%
(85/85) checking for file conflicts                                                                  [############################################################] 100%
error: failed to commit transaction (conflicting files)
libgcc: /usr/lib/libgcc_s.so exists in filesystem (owned by gcc-libs)
libgcc: /usr/lib/libgcc_s.so.1 exists in filesystem (owned by gcc-libs)
libgcc: /usr/share/licenses/gcc-libs/RUNTIME.LIBRARY.EXCEPTION exists in filesystem (owned by gcc-libs)
Errors occurred, no packages were upgraded.

I already have VBox installed, could some libs conflict because of it?

Thanks in advance :folded_hands:

Is your system fully up to date? The latest versions of libgcc and gcc-libs should not conflict.

It is either mirror and database are not synced or something from aur. I would start with refreshing mirror and resyncing.
sudo pacman-mirrors -f && sudo pacman -Syu

Solved !!
Fantastic. Thank you so much!!

Then I keep following the guide until I get to

Add your user account to libvirt group.

having to type

sudo usermod -a -G libvirt $(whoami)
newgrp libvirt

I guess I can copy and past both lines at once in the command line. Either way I end up in what I seem to understand a new user group. (I feel like a blind man being walked trough :man_facepalming:)

Next step is

Restart libvirt daemon.

sudo systemctl restart libvirtd.service

Do I need to return to the previous user group before running this line or is irrelevant?

Following the guide…

Step 5: Enable Nested Virtualization (Optional)

here I type

sudo modprobe -r kvm_intel

getting

modprobe: FATAL: Module kvm_intel not found.`

But I guess KVM is installed.

You don’t need a guide to install qemu. That guide does this?

They picked one of the many packages that just pull in all the dependencies of qemu-base.

Just install the one you want. You see your choices here:

These are meta packages, basically a list of other packages.

Most people just want this:

sudo pacman -S qemu-desktop

Or the 2) choice when presented in pacman.

This is qemu-base plus all sorts of extra packages, that can be used if you want to interact with desktops in your guests.

This qemu-desktop meta package includes: virtual video adapters, audio related packages, USB redirection, SPICE, and more. With SPICE, when the tools are also setup in the guest; you can dynamically resize desktops, share the clipboard, and all sorts of neat stuff.

So install this if you want to boot “desktops”.

(virt-manager or Virtual Machine Manager is the GUI interface most people use for the GUI on the host desktop.)

Thank you @Molski, very helpful overview.
I think I just installed qemu-base, I’ll repeat and choose qemu-desktop.

You can install qemu-desktop right after qemu-base.

It is pretty much identical, as the first package in qemu-desktop is qemu-base.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.