Issue #9482 has been reported by Kent Holloway.
----------------------------------------
Bug #9482: Fact virtual and is_virtual wrong for Solaris VM inside KVM/QEMU
https://projects.puppetlabs.com/issues/9482
Author: Kent Holloway
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Keywords:
Branch:
Affected Facter version: 1.5.8
Solaris VM's show up as physical when running inside a KVM/QEMU hypervisor.
# facter virtual is_virtual
is_virtual => false
virtual => physical
# facter -v
1.5.8
# uname -a
SunOS myhostname 5.10 Generic_142910-17 i86pc i386 i86pc
# prtdiag
System Configuration: Red Hat KVM
BIOS Configuration: Seabios 0.5.1 01/01/2007
Attached is a one line fix which uses the already gathered output from prtdiag
and fixes the output of both virtual and is_virtual when run.
--- virtual.rb Tue Sep 13 15:53:06 2011
+++ virtual_new.rb Tue Sep 13 15:56:55 2011
@@ -61,6 +61,7 @@
if not output.nil?
output.each_line do |pd|
result = "vmware" if pd =~ /VMware|Parallels/
+ result = "kvm" if pd =~ /KVM/
end
end
end
--After patch applied--
# facter virtual is_virtual
is_virtual => true
virtual => kvm
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.