Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed KVM using the instructions given on the wiki. However, when I try to check its version using

kvm --version

what I get as output is this

QEMU emulator version 1.2.0 (qemu-kvm-1.2.0+noroms-0ubuntu2.12.10.5, Debian), Copyright (c) 2003-2008 Fabrice Bellard

which I believe is QEMU's version, not KVM's.

I have tried the method given here, but this does give an output.

I wanted to know what is the correct method to get the version of KVM I am running.

Specifications:

  • Ubuntu 12.10
  • Linux 3.5.0-43-generic
share|improve this question

The command you're looking for is:

dpkg -s qemu-kvm | grep Version

 

You can look up the version of any package using dpkg -s [package name]

Regarding the KVM, a quick Google search returned it is titled qemu-kvm.

 

Example output (if you're running Debian Jessie):

Version: 1:2.1+dfsg-12+deb8u5a

 

As an FYI, the grep command is case-sensitive by default, which is important because Version is upper-case. You can use the parameter -i to ignore case.

share|improve this answer

The kvm version follows the kernel version.

uname -r 

would therefore, in this case give you the correct version.

Look here for more information

share|improve this answer
1  
If you read the page carefully, you'll notice kernel versions and KVM versions mentioned explicitly and separately. uname -r only gives the kernel version. – i08in Dec 2 '13 at 3:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.