Adding oVirt recognition for oVirt guests. oVirt uses KVM.
This commit is contained in:
parent
cc7385d8f7
commit
29cca0191b
1 changed files with 5 additions and 0 deletions
|
@ -2406,6 +2406,11 @@ class LinuxVirtual(Virtual):
|
|||
self.facts['virtualization_role'] = 'guest'
|
||||
return
|
||||
|
||||
if sys_vendor == 'oVirt':
|
||||
self.facts['virtualization_type'] = 'kvm'
|
||||
self.facts['virtualization_role'] = 'guest'
|
||||
return
|
||||
|
||||
if os.path.exists('/proc/self/status'):
|
||||
for line in get_file_lines('/proc/self/status'):
|
||||
if re.match('^VxID: \d+', line):
|
||||
|
|
Loading…
Reference in a new issue