From cf9b078619fb998a160c0d048839a823e191f94d Mon Sep 17 00:00:00 2001 From: Stephen Fromm Date: Wed, 18 Jul 2012 16:41:55 -0700 Subject: [PATCH] Check if CPU is QEMU via different mechanism The processor fact doesn't exist in LinuxVirtual. Read /proc/cpuinfo and check if it is QEMU. --- setup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup b/setup index 543886e82f8..0395baea367 100755 --- a/setup +++ b/setup @@ -546,7 +546,8 @@ class LinuxVirtual(Virtual): elif 'vboxguest' in modules: self.facts['virtualization_type'] = 'virtualbox' self.facts['virtualization_role'] = 'guest' - if 'processor' in self.facts and 'QEMU' in self.facts['processor'][0]: + data = get_file_content('/proc/cpuinfo') + if 'QEMU' in data: self.facts['virtualization_type'] = 'kvm' self.facts['virtualization_role'] = 'guest' if 'distribution' in self.facts and self.facts['distribution'] == 'VMwareESX':