← Back to team overview

kernel-packages team mailing list archive

[Bug 1557327] [NEW] kvm-ok script gives syntax error when running on kvm

 

Public bug reported:

While debugging something, I ran the kvm-ok script on a VM running on
openstack, and got an interesting error:

ubuntu@juju-bradm-lcy02-machine-0:~$ sudo kvm-ok
INFO: /dev/kvm does not exist
HINT:   sudo modprobe kvm_intel
INFO: Your CPU supports KVM extensions
/usr/sbin/kvm-ok: 120: /usr/sbin/kvm-ok: Syntax error: "else" unexpected (expecting "then")
ubuntu@juju-bradm-lcy02-machine-0:~$ echo $?
2

The code in question just needs a ; then added at the end of it.

Please let me know if you need any further information.

$ dpkg-query -W cpu-checker
cpu-checker	0.7-0ubuntu6

$ lsb_release -d
Description:	Ubuntu Xenial Xerus (development branch)

** Affects: cpu-checker (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: canonical-bootstack

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to cpu-checker in Ubuntu.
https://bugs.launchpad.net/bugs/1557327

Title:
  kvm-ok script gives syntax error when running on kvm

Status in cpu-checker package in Ubuntu:
  New

Bug description:
  While debugging something, I ran the kvm-ok script on a VM running on
  openstack, and got an interesting error:

  ubuntu@juju-bradm-lcy02-machine-0:~$ sudo kvm-ok
  INFO: /dev/kvm does not exist
  HINT:   sudo modprobe kvm_intel
  INFO: Your CPU supports KVM extensions
  /usr/sbin/kvm-ok: 120: /usr/sbin/kvm-ok: Syntax error: "else" unexpected (expecting "then")
  ubuntu@juju-bradm-lcy02-machine-0:~$ echo $?
  2

  The code in question just needs a ; then added at the end of it.

  Please let me know if you need any further information.

  $ dpkg-query -W cpu-checker
  cpu-checker	0.7-0ubuntu6

  $ lsb_release -d
  Description:	Ubuntu Xenial Xerus (development branch)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cpu-checker/+bug/1557327/+subscriptions


Follow ups