[Bug 1414153] Re: qemu should not enable KSM on nested guests

Chris J Arges 1414153 at bugs.launchpad.net
Sat Jan 24 04:16:02 UTC 2015


#!/bin/bash
# 2015 Chris J Arges <chris.j.arges at canonical.com>
# Detect if we are running inside KVM
NESTED_VM=0
VM_STRINGS="KVM QEMU VMware VirtualBox Xen"
VM_DETECT=$(dmesg | egrep -e '(Hypervisor detected|Booting paravirtualized kernel)')
VM_DMIDECODE=$(sudo dmidecode | egrep -i 'manufacturer|product|vendor')
for vm_string in $VM_STRINGS; do
  if [[ ${VM_DETECT}${VM_DMIDECODE} == *"${vm_string}"* ]]; then
    NESTED_VM=1; break;
  fi
done
echo "NESTED_VM = $NESTED_VM"

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu in Ubuntu.
https://bugs.launchpad.net/bugs/1414153

Title:
  qemu should not enable KSM on nested guests

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1414153/+subscriptions



More information about the Ubuntu-server-bugs mailing list