[Solved] Problems installing qemu-kvm on LM21.3

Questions about virtualization software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
Limifo
Level 1
Level 1
Posts: 3
Joined: Fri Feb 09, 2024 11:13 am

[Solved] Problems installing qemu-kvm on LM21.3

Post by Limifo »

Hi, I also want to try out Qemu/Kvm and have problems installing it.
Might I join this thread?

For me it is i7-2600k + GTX 960, 16 GB RAM, Gigabyte Z68X-UD3H-B3 (maybe to old for PCIe passthrough?)

Code: Select all

$ lsmod | grep kvm
kvm_intel             368640  0
kvm                  1032192  1 kvm_intel
And I'm running Linux Mint 21.3.

There are multiple guides but all I found (including the guide powerhouse posted) use 'qemu-kvm'
This does not show up for me. I only have:

Code: Select all

$ sudo apt-get install qemu
qemu                     qemu-system-common       qemu-system-x86-microvm
qemu-block-extra         qemu-system-data         qemu-system-x86-xen
qemubuilder              qemu-system-gui          qemu-user
qemu-efi                 qemu-system-mips         qemu-user-binfmt
qemu-efi-aarch64         qemu-system-misc         qemu-user-static
qemu-efi-arm             qemu-system-ppc          qemu-utils
qemu-guest-agent         qemu-system-s390x        qemu-web-desktop
qemu-system              qemu-system-sparc        
qemu-system-arm          qemu-system-x86   
Might be some recent change.
Which packages do I need to install now?
Last edited by Limifo on Fri Feb 09, 2024 9:49 pm, edited 1 time in total.
weedeater64
Level 1
Level 1
Posts: 44
Joined: Mon Jun 08, 2015 6:23 pm

Re: Problems installing qemu-kvm on LM21.3

Post by weedeater64 »

Use search, some examples..

Code: Select all

$ apt-cache search qemu
or

Code: Select all

$ apt-cache search qemu | grep qemu
or

Code: Select all

apt-cache search qemu-kvm
Limifo
Level 1
Level 1
Posts: 3
Joined: Fri Feb 09, 2024 11:13 am

Re: Problems installing qemu-kvm on LM21.3

Post by Limifo »

weedeater64 wrote: Fri Feb 09, 2024 12:13 pm

Code: Select all

apt-cache search qemu-kvm
This returns

Code: Select all

qemu-system-x86 - QEMU full system emulation binaries (x86)
This seems to work (trying it with running linux client).Thanks!

I did

Code: Select all

$ sudo apt-get install qemu-system-x86 libvirt-daemon-system libvirt-clients bridge-utils virt-manager qemu-user-static
$ sudo usermod -aG libvirt $USER
$ sudo usermod -aG kvm $USER
And I had to change the config file. Else I got some 'no permission' error. Shown here

Code: Select all

sudo nano /etc/libvirt/qemu.conf
and changed '#user = "root" , #group = "root", to my username and and group libvirt. (and removed '#' at the start)
Post Reply

Return to “Virtual Machines”