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.
This commit is contained in:
parent
6e4e39f285
commit
cf9b078619
1 changed files with 2 additions and 1 deletions
3
setup
3
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':
|
||||
|
|
Loading…
Reference in a new issue