#!/bin/bash # 2015 Chris J Arges <[email protected]> # 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 -- Ubuntu-server-bugs mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
