Merge pull request #10409 from mriedelumab/devel

Adding oVirt recognition for oVirt guests. oVirt uses KVM.
pull/9477/merge
Brian Coca 10 years ago
commit 876383f60c

@ -2406,6 +2406,11 @@ class LinuxVirtual(Virtual):
self.facts['virtualization_role'] = 'guest' self.facts['virtualization_role'] = 'guest'
return return
if sys_vendor == 'oVirt':
self.facts['virtualization_type'] = 'kvm'
self.facts['virtualization_role'] = 'guest'
return
if os.path.exists('/proc/self/status'): if os.path.exists('/proc/self/status'):
for line in get_file_lines('/proc/self/status'): for line in get_file_lines('/proc/self/status'):
if re.match('^VxID: \d+', line): if re.match('^VxID: \d+', line):

Loading…
Cancel
Save